citadel.git
15 years agoThe before-save hook which is called when saving a calendar
Art Cancro [Tue, 10 Jun 2008 19:58:46 +0000 (19:58 +0000)]
The before-save hook which is called when saving a calendar
event now populates message headers from the calendar object without
the use of an intermediate data structure.

15 years agoAdded an aide_message() when an OpenID is claimed
Art Cancro [Tue, 10 Jun 2008 02:31:56 +0000 (02:31 +0000)]
Added an aide_message() when an OpenID is claimed

15 years agoAdded a link on the OpenID login page, that points to a new
Art Cancro [Sat, 7 Jun 2008 04:44:11 +0000 (04:44 +0000)]
Added a link on the OpenID login page, that points to a new
page on www.citadel.org describing what OpenID is and how
Citadel is using it.

15 years ago* When not using native auth mode, do not enable the OpenID server command set.
Art Cancro [Fri, 6 Jun 2008 03:50:43 +0000 (03:50 +0000)]
* When not using native auth mode, do not enable the OpenID server command set.
* When self-service new user account creation is disabled, do not allow account creation via OpenID.

15 years agoPopulate vCard from SREG even when there was a name conflict
Art Cancro [Thu, 5 Jun 2008 17:37:16 +0000 (17:37 +0000)]
Populate vCard from SREG even when there was a name conflict
and we had to hold on to the SREG data for a while

15 years agoAuto-populate vCard using Simple Registration Extension data
Art Cancro [Thu, 5 Jun 2008 17:09:37 +0000 (17:09 +0000)]
Auto-populate vCard using Simple Registration Extension data

15 years ago* Completed the code for creating a new account, manually specifying
Art Cancro [Thu, 5 Jun 2008 02:32:46 +0000 (02:32 +0000)]
* Completed the code for creating a new account, manually specifying
  the account name, when an OpenID was verified but the desired nickname
  either was not supplied or conflicts with an existing user.
* The SETP command can now be passed a special string that tells it the
  client wants the server to auto-generate a random password.

15 years ago* forgot -i in the initscript
Wilfried Göesgens [Wed, 4 Jun 2008 23:04:12 +0000 (23:04 +0000)]
* forgot -i in the initscript

15 years agoopenid blah blah blah
Art Cancro [Tue, 3 Jun 2008 16:30:35 +0000 (16:30 +0000)]
openid blah blah blah

15 years agoAdded a 'verify_only' result to OIDF, indicating the account
Art Cancro [Tue, 3 Jun 2008 15:45:13 +0000 (15:45 +0000)]
Added a 'verify_only' result to OIDF, indicating the account
creation via SRI failed and we need to specify a username
manually.

15 years ago* Removed some cruft from the login code. Combined the
Art Cancro [Tue, 3 Jun 2008 03:41:51 +0000 (03:41 +0000)]
* Removed some cruft from the login code.  Combined the
  do_login() and session_startup() functions.  Moved more duplicated
  code into a single code path.
* Completed the OpenID signin process for existing users, and for new
  users who have made their preferred nickname available via Simple
  Registration Extension (assuming this nickname is available on the
  Citadel system).  Other sign in flows are forthcoming...

15 years agoIf an Internet email is sent by a logged in user,
Art Cancro [Mon, 2 Jun 2008 21:41:15 +0000 (21:41 +0000)]
If an Internet email is sent by a logged in user,
create bounceto address from the user record, not from
the message.

15 years agomore openid work
Art Cancro [Mon, 2 Jun 2008 21:36:02 +0000 (21:36 +0000)]
more openid work

15 years agoBegan laying the framework for creating new users with OpenID
Art Cancro [Mon, 2 Jun 2008 18:07:15 +0000 (18:07 +0000)]
Began laying the framework for creating new users with OpenID

15 years ago* convert RSS Subject line into plaintext with our html to text function; this remove...
Wilfried Göesgens [Mon, 2 Jun 2008 18:05:45 +0000 (18:05 +0000)]
* convert RSS Subject line into plaintext with our html to text function; this removes the entities ./ sometimes gives.

15 years agoExport format has changed due to the addition of a new
Art Cancro [Mon, 2 Jun 2008 16:09:00 +0000 (16:09 +0000)]
Export format has changed due to the addition of a new
table, so the version number has changed.  Also added a serv_info field to
advise the client (e.g. WebCit) whether the server supports OpenID.  The
main reason is because we can only do OpenID in native auth mode -- but we
can also use this to temporarily shut off all OpenID features if we need
to complete a new software release before OpenID is finished.

15 years agoCompleted artv import/export of openids
Art Cancro [Mon, 2 Jun 2008 15:14:05 +0000 (15:14 +0000)]
Completed artv import/export of openids

15 years ago* Began implenmenting OpenID table import/export
Art Cancro [Mon, 2 Jun 2008 15:03:45 +0000 (15:03 +0000)]
* Began implenmenting OpenID table import/export
* Disabled the code to automatically learn the highest message/user/room numbers
  in the event that citadel.control is missing, because if you run it on a virgin
  server, it CRASHES.

15 years agoFixed a double free error in serv_openid_rp.c
Art Cancro [Mon, 2 Jun 2008 14:24:40 +0000 (14:24 +0000)]
Fixed a double free error in serv_openid_rp.c

15 years agoWhen doing an ARTV IMPORT, call rebuild_usersbynumber() afterward
Art Cancro [Mon, 2 Jun 2008 03:06:47 +0000 (03:06 +0000)]
When doing an ARTV IMPORT, call rebuild_usersbynumber() afterward

15 years agoCompleted the delete-user hook to remove any associated
Art Cancro [Mon, 2 Jun 2008 03:04:23 +0000 (03:04 +0000)]
Completed the delete-user hook to remove any associated
OpenID records.  Also completed an auto-purger function to delete any
stale OpenID associations.  Still need to add dump/load code.  Now I
remember why I tend to avoid adding top-level database tables.

15 years agoFixed a potential memory leak (not to worry, it's
Art Cancro [Sun, 1 Jun 2008 04:36:26 +0000 (04:36 +0000)]
Fixed a potential memory leak (not to worry, it's
in new, unreleased code)

15 years agoImplemented the code to detach an OpenID from an account.
Art Cancro [Sun, 1 Jun 2008 04:19:38 +0000 (04:19 +0000)]
Implemented the code to detach an OpenID from an account.

15 years agoSuccess! We can now log in an existing user with OpenID.
Art Cancro [Sat, 31 May 2008 05:06:24 +0000 (05:06 +0000)]
Success!  We can now log in an existing user with OpenID.
We still have to write the code to create a new user using OpenID.

15 years agoRe-enable OpenID development code
Art Cancro [Sat, 31 May 2008 04:30:22 +0000 (04:30 +0000)]
Re-enable OpenID development code

15 years agoOops, don't rebuild usersbynumber every time
Art Cancro [Fri, 30 May 2008 22:10:27 +0000 (22:10 +0000)]
Oops, don't rebuild usersbynumber every time

15 years ago* separate content-type header fields by ';' ; thanks Guido for pointing this out.
Wilfried Göesgens [Fri, 30 May 2008 20:57:12 +0000 (20:57 +0000)]
* separate content-type header fields by ';' ; thanks Guido for pointing this out.

15 years ago* allow debs to build against libcurl 3 + 4
Wilfried Göesgens [Fri, 30 May 2008 13:24:56 +0000 (13:24 +0000)]
* allow debs to build against libcurl 3 + 4

15 years agoOops ... libcitadel should be version 1.14, not 1.11
Art Cancro [Fri, 30 May 2008 04:03:22 +0000 (04:03 +0000)]
Oops ... libcitadel should be version 1.14, not 1.11

15 years agoUpdated version numbers.
Art Cancro [Fri, 30 May 2008 03:20:30 +0000 (03:20 +0000)]
Updated version numbers.

15 years agoTemporarily disable OpenID functionality for release
Art Cancro [Fri, 30 May 2008 03:12:38 +0000 (03:12 +0000)]
Temporarily disable OpenID functionality for release

15 years agomore openid work
Art Cancro [Thu, 29 May 2008 22:00:45 +0000 (22:00 +0000)]
more openid work

15 years agoBegan writing some code to associate OpenIDs with Citadel accounts
Art Cancro [Thu, 29 May 2008 20:16:11 +0000 (20:16 +0000)]
Began writing some code to associate OpenIDs with Citadel accounts

15 years agoMoved a variable off the stack and into session state
Art Cancro [Thu, 29 May 2008 19:34:58 +0000 (19:34 +0000)]
Moved a variable off the stack and into session state

15 years agogetuserbynumber() now uses a proper indexed database
Art Cancro [Thu, 29 May 2008 16:49:28 +0000 (16:49 +0000)]
getuserbynumber() now uses a proper indexed database

15 years ago* lock the list just while adding the new piece into it.
Wilfried Göesgens [Wed, 28 May 2008 22:08:57 +0000 (22:08 +0000)]
* lock the list just while adding the new piece into it.

15 years agoAdded some glue code for attachment of an OpenID to
Art Cancro [Wed, 28 May 2008 21:30:13 +0000 (21:30 +0000)]
Added some glue code for attachment of an OpenID to
an existing Citadel account.

15 years agoFix for bugzilla #364
Dave West [Wed, 28 May 2008 17:17:21 +0000 (17:17 +0000)]
Fix for bugzilla #364
If an Aide edits a user there is no need to require the user to be
re-validated nor should we require the Aide be re-validated.

15 years agoI there are users requiring validation when an Aide logs in the Aide now
Dave West [Wed, 28 May 2008 16:37:36 +0000 (16:37 +0000)]
I there are users requiring validation when an Aide logs in the Aide now
starts at the validate new users screen.
This fixes half of bugzilla #383

15 years agoPrevent boom at shutdown that results from trying to purge a user 0
Dave West [Wed, 28 May 2008 16:05:28 +0000 (16:05 +0000)]
Prevent boom at shutdown that results from trying to purge a user 0

15 years agoAdded a step to setup to get a password for the admin user.
Dave West [Wed, 28 May 2008 15:15:02 +0000 (15:15 +0000)]
Added a step to setup to get a password for the admin user.
Now when setup is run after it starts the server it will attempt to
create the admin user and set its password. This makes things a little
more obvious for new users setting up a Citadel system for the first
time.
Also it has the added effect of closing the small security hole.
On a new installation setup will grab user 1 before anyone else can thus
ensuring user 1 priviledges and/or it will set the password and user for
whoever the system admin is set to thus preventing the unlikely
situation where some attacker gets there first.

15 years agoNow we name the 0 user that exists prior to a client logging in. This is
Dave West [Wed, 28 May 2008 13:23:43 +0000 (13:23 +0000)]
Now we name the 0 user that exists prior to a client logging in. This is
in preperation for not logged in public features.

15 years agoNow we name all the private contexts.
Dave West [Wed, 28 May 2008 00:40:47 +0000 (00:40 +0000)]
Now we name all the private contexts.
Auto purger will complain if a user 0 has no name or does not have a
SYS_* type name as this is considered a bug.
upgrade module will try to fix up names of user 0 and will delete any
user 0 that does not fit the criteria without warning.
User name Citadel is no longer reserved but all usernames starting SYS_*
are.

15 years agoNow IMAP posts Aide messages when a room is created.
Dave West [Wed, 28 May 2008 00:26:36 +0000 (00:26 +0000)]
Now IMAP posts Aide messages when a room is created.
This is in line with what happens if the CRE8 command had been used.

15 years agoRemoved unused variables.
Dave West [Tue, 27 May 2008 20:57:17 +0000 (20:57 +0000)]
Removed unused variables.

15 years agoRemoved unused variables.
Dave West [Tue, 27 May 2008 20:56:45 +0000 (20:56 +0000)]
Removed unused variables.

15 years agoRemoved an unused S_ mutex enum that is no longer in use
Art Cancro [Tue, 27 May 2008 14:45:32 +0000 (14:45 +0000)]
Removed an unused S_ mutex enum that is no longer in use

15 years agoSet CURLOPT_USERAGENT and CURLOPT_INTERFACE in the RSS reader
Art Cancro [Tue, 27 May 2008 14:40:31 +0000 (14:40 +0000)]
Set CURLOPT_USERAGENT and CURLOPT_INTERFACE in the RSS reader

15 years agoWorked around a bug in phpMyID. I *think* this completes the
Art Cancro [Tue, 27 May 2008 03:51:38 +0000 (03:51 +0000)]
Worked around a bug in phpMyID.  I *think* this completes the
implementation of OpenID 1.1 protocol (though I'm sure we'll find some edge
cases), and now the only thing left to be done is to write the code to glue
it into Citadel and WebCit authentication.

15 years agoRemember the last version of Berkeley DB that touched the
Art Cancro [Tue, 27 May 2008 01:43:37 +0000 (01:43 +0000)]
Remember the last version of Berkeley DB that touched the
database.  Abort execution if someone tries to start up Citadel using
an older version.

15 years agoNow the escaping of a single dot on a line of its own is done in CtdlOutputPreloadedMsg()
Dave West [Sun, 25 May 2008 19:01:17 +0000 (19:01 +0000)]
Now the escaping of a single dot on a line of its own is done in CtdlOutputPreloadedMsg()

15 years ago* use iconv in citserver too
Wilfried Göesgens [Sat, 24 May 2008 17:18:52 +0000 (17:18 +0000)]
* use iconv in citserver too
* DE-QP and IConv translate harvested mail addresses

15 years ago* make QP encoding of senders optional, so we can flag it if we need it.
Wilfried Göesgens [Sat, 24 May 2008 14:37:02 +0000 (14:37 +0000)]
* make QP encoding of senders optional, so we can flag it if we need it.

15 years ago* depend on curl
Wilfried Göesgens [Sat, 24 May 2008 14:36:28 +0000 (14:36 +0000)]
* depend on curl

15 years ago* add include to libcitadel
Wilfried Göesgens [Sat, 24 May 2008 14:17:27 +0000 (14:17 +0000)]
* add include to libcitadel

15 years agoWe use test instead of [] since not all shells/systems support use of []
Dave West [Sat, 24 May 2008 13:49:47 +0000 (13:49 +0000)]
We use test instead of [] since not all shells/systems support use of []

15 years agoopenid hacks
Art Cancro [Sat, 24 May 2008 06:24:29 +0000 (06:24 +0000)]
openid hacks

15 years agoMore openid hacks
Art Cancro [Sat, 24 May 2008 06:03:54 +0000 (06:03 +0000)]
More openid hacks

15 years agolibcurl is teh r0x0r, it gives us access to the 'effective' URL
Art Cancro [Sat, 24 May 2008 04:14:51 +0000 (04:14 +0000)]
libcurl is teh r0x0r, it gives us access to the 'effective' URL
after normalization and redirects, which happens to be exactly what we need
in order to use the URL as a Claimed ID.  Implemented the code to do this.

15 years agoBegin caching OpenID data in the session; we'll need it later
Art Cancro [Fri, 23 May 2008 22:26:24 +0000 (22:26 +0000)]
Begin caching OpenID data in the session; we'll need it later

15 years agoIn order to circumvent AOL's broken OpenID server, and save
Art Cancro [Fri, 23 May 2008 19:42:42 +0000 (19:42 +0000)]
In order to circumvent AOL's broken OpenID server, and save
some time in the process, we're going to implement stateless mode
instead.  Began implementation...

15 years agoAOL's OpenID implementation sucks.
Art Cancro [Fri, 23 May 2008 03:02:09 +0000 (03:02 +0000)]
AOL's OpenID implementation sucks.

15 years ago* fix handling of post vars
Wilfried Göesgens [Thu, 22 May 2008 21:07:01 +0000 (21:07 +0000)]
* fix handling of post vars

15 years agohmmph. adjusted string lengths again
Art Cancro [Thu, 22 May 2008 20:08:59 +0000 (20:08 +0000)]
hmmph.  adjusted string lengths again

15 years agoMade the assoc_handle field bigger, but we may still have a problem
Art Cancro [Thu, 22 May 2008 19:30:15 +0000 (19:30 +0000)]
Made the assoc_handle field bigger, but we may still have a problem

15 years ago* add more CSS'es to the top
Wilfried Göesgens [Thu, 22 May 2008 19:28:28 +0000 (19:28 +0000)]
* add more CSS'es to the top

15 years ago* add expires: header with 2 days in future, as YSlow sugests
Wilfried Göesgens [Thu, 22 May 2008 19:25:28 +0000 (19:25 +0000)]
* add expires: header with 2 days in future, as YSlow sugests

15 years ago* wait for the right socket, just to be shure.
Wilfried Göesgens [Thu, 22 May 2008 18:00:58 +0000 (18:00 +0000)]
* wait for the right socket, just to be shure.

15 years agoMore work on OpenID 1.1 support
Art Cancro [Thu, 22 May 2008 16:45:07 +0000 (16:45 +0000)]
More work on OpenID 1.1 support

15 years agoFetch assoc_handles and use them in checkid_setup requests
Art Cancro [Thu, 22 May 2008 14:36:37 +0000 (14:36 +0000)]
Fetch assoc_handles and use them in checkid_setup requests

15 years agomore openid 1.1 hacks
Art Cancro [Thu, 22 May 2008 02:58:14 +0000 (02:58 +0000)]
more openid 1.1 hacks

15 years ago* More work on OpenID 1.1 Relying Party support
Art Cancro [Wed, 21 May 2008 21:43:26 +0000 (21:43 +0000)]
* More work on OpenID 1.1 Relying Party support
* Changed the startup order to put the citadel.control lock check happen *before* the databases
  are opened.  Otherwise it can corrupt the databases before the lock check shuts it down.

15 years ago* Commented out the 'PrintFlat' and 'PrintFile' functions
Art Cancro [Wed, 21 May 2008 17:24:41 +0000 (17:24 +0000)]
* Commented out the 'PrintFlat' and 'PrintFile' functions
  because they are only used in debug tests that are also commented
  out.  Silences a compiler warning.
* Removed parse_url() from libcitadel.  No longer necessary because
  libcurl handles all this stuff for us now.

15 years ago* pre-loading the nifty corners CSS makes the jumping of the boxes while rendering...
Wilfried Göesgens [Tue, 20 May 2008 22:00:34 +0000 (22:00 +0000)]
* pre-loading the nifty corners CSS makes the jumping of the boxes while rendering go away.

15 years ago* remove hacked kerboros flag
Wilfried Göesgens [Tue, 20 May 2008 17:55:46 +0000 (17:55 +0000)]
* remove hacked kerboros flag

15 years ago* fixed wrong select() call
Wilfried Göesgens [Tue, 20 May 2008 06:49:02 +0000 (06:49 +0000)]
* fixed wrong select() call

15 years ago* give the server some time to start up before sending the welcome mail.
Wilfried Göesgens [Mon, 19 May 2008 23:01:39 +0000 (23:01 +0000)]
* give the server some time to start up before sending the welcome mail.

15 years agoBegan writing associate request
Art Cancro [Mon, 19 May 2008 22:00:09 +0000 (22:00 +0000)]
Began writing associate request

15 years agoInitial support for Simple Registration Extension
Art Cancro [Mon, 19 May 2008 21:08:56 +0000 (21:08 +0000)]
Initial support for Simple Registration Extension

15 years agoMoved all the OpenID Relying Party code that I've written so far
Art Cancro [Mon, 19 May 2008 03:33:03 +0000 (03:33 +0000)]
Moved all the OpenID Relying Party code that I've written so far
into the Citadel server, with only glue code in WebCit.  This
will allow Relying Party support to be implemented without requiring
a highly trusted webcit client, and it also eliminates the need to
link libcurl into webcit.

15 years agoRSS client now uses libcurl instead of the crappy built-in
Art Cancro [Mon, 19 May 2008 01:36:58 +0000 (01:36 +0000)]
RSS client now uses libcurl instead of the crappy built-in
HTTP client I wrote for this purpose.  Not only is it more robust,
but it should be able to handle HTTPS as well.  Please note that
because of this change, libcurl is now a dependency.

15 years ago* made hash implementation NULL pointer safe.
Wilfried Göesgens [Sun, 18 May 2008 19:29:18 +0000 (19:29 +0000)]
* made hash implementation NULL pointer safe.

15 years agoSome more tinkering with OpenID.
Art Cancro [Sun, 18 May 2008 04:42:58 +0000 (04:42 +0000)]
Some more tinkering with OpenID.
Also changed webcit.c so that if DEBUG_URLSTRINGS is defined,
all urlstrings will be displayed for each transaction, eliminating
the need to uncomment that code.

15 years agomore tinkering with openid
Art Cancro [Sat, 17 May 2008 03:01:42 +0000 (03:01 +0000)]
more tinkering with openid

15 years agoSort address book popup forward, not reverse
Art Cancro [Sat, 17 May 2008 02:47:29 +0000 (02:47 +0000)]
Sort address book popup forward, not reverse

15 years agoAdded code to report Aide messages if there appears to be something
Dave West [Fri, 16 May 2008 23:22:22 +0000 (23:22 +0000)]
Added code to report Aide messages if there appears to be something
wrong with IGNet configuration.
It now reports connection attempts from unknown nodes or bad passwords.

It also attempts to validate the nodename of the node it is attempting
to connect to by checking the greeting message. In this case the
connection will proceed with an Aide warning message if they differ.
Situations such as this WILL result in duplication of messages but at
least we now get a warning.

15 years agoSieve will now only process messages that are newer than its script.
Dave West [Fri, 16 May 2008 22:07:46 +0000 (22:07 +0000)]
Sieve will now only process messages that are newer than its script.
This fixes bug #297

To impliment this I created a new API call CtdlGetCurrentMessageNumber()
this returns the message number currently in use IE the last one
allocated. This is good enough for Sieve in this case and probably good
enough for other things too.

15 years agomore openid setup
Art Cancro [Fri, 16 May 2008 19:17:46 +0000 (19:17 +0000)]
more openid setup

15 years agoRemoved the on_exit from sendcommand.c
Dave West [Fri, 16 May 2008 19:05:30 +0000 (19:05 +0000)]
Removed the on_exit from sendcommand.c
Why didn't I do it properly the first time 8-)

15 years agoNow we have all the data we need to compose the redirect.
Art Cancro [Fri, 16 May 2008 18:33:19 +0000 (18:33 +0000)]
Now we have all the data we need to compose the redirect.

15 years agofinished code to extract link rel tags
Art Cancro [Fri, 16 May 2008 17:27:11 +0000 (17:27 +0000)]
finished code to extract link rel tags

15 years agosome html parsing for link rel tags
Art Cancro [Fri, 16 May 2008 15:00:02 +0000 (15:00 +0000)]
some html parsing for link rel tags

15 years agoFirst try curl and wget, fall back to mini handler if both fail
Art Cancro [Fri, 16 May 2008 14:38:02 +0000 (14:38 +0000)]
First try curl and wget, fall back to mini handler if both fail

15 years agoPrefix 'citmail:' to all error messages generated by citmail
Art Cancro [Fri, 16 May 2008 13:22:44 +0000 (13:22 +0000)]
Prefix 'citmail:' to all error messages generated by citmail

15 years agoFinished the mini http fetcher
Art Cancro [Thu, 15 May 2008 20:49:31 +0000 (20:49 +0000)]
Finished the mini http fetcher

15 years agoAdded a mini http fetcher into webcit
Art Cancro [Thu, 15 May 2008 17:00:35 +0000 (17:00 +0000)]
Added a mini http fetcher into webcit

15 years agoGet the login screen ready for OpenID support
Art Cancro [Thu, 15 May 2008 04:27:24 +0000 (04:27 +0000)]
Get the login screen ready for OpenID support

15 years agoWhen printing a message, the page title is now the user's
Art Cancro [Thu, 15 May 2008 02:54:23 +0000 (02:54 +0000)]
When printing a message, the page title is now the user's
display name instead of 'Printable view'.  This seems to be the
standard practice, presumably to designate the owner of a print
job when using a shared printer.

15 years agoMore logging for split horizon algorithm.
Art Cancro [Wed, 14 May 2008 18:44:04 +0000 (18:44 +0000)]
More logging for split horizon algorithm.
DAVEW PLEASE INSTALL THIS AND HOLD ON TO YOUR LOGS

15 years agoMinor cleanup of comments
Art Cancro [Wed, 14 May 2008 14:59:22 +0000 (14:59 +0000)]
Minor cleanup of comments