On Thu, May 31, 2007 at 07:26:46AM +0200, Martin Schmitt wrote:
> Brian Candler schrieb:
> The problem wasn't that I couldn't authenticate but that I wasn't able
> to enter the username into userdb in the first place, using the userdb tool:
> 
> # userdb "[EMAIL PROTECTED]" set home=/var/vmail/example.com/foo uid=500
> gid=500
> # userdb "bar%example.com" set home=/var/vmail/example.com/bar uid=500
> gid=500
> Invalid name: bar%example.com

See userdb/userdb.pl[.in]

        die "Invalid name: $name\n"
                unless $name =~ /[EMAIL PROTECTED]/;

Personally I think this is a tad restrictive. Just add % into there.

> This is cool. But why does the userdb tool try to keep me from entering
> that user? Am I playing against some rule? Will I lose % sign support in
> some later version?

AFAIK there's no particular reason why usernames can't contain any
characters at all, except perhaps for spaces. In IMAP,
   x LOGIN username password
relies on a space between the username and password. Some fields in
the authdaemon protocol are space-separated too, I believe.

Regards,

Brian.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to