On 2006-04-01, at 0547, Rick Widmer wrote:
John Simpson wrote:
let me suggest an alternative- instead of "login user pass compact", how about "login/compact user pass"? this allows the password to be the last thing on the line, and therefore contain spaces, and still allows for a "compact" option.

What do you think about login | clogin | slogin?

sounds good to me, as long as it's consistent and documented somewhere- both in README.vpopmaild and in the "vpopmaild" wiki entry.

I was planning if you would like a way to see if a user exists without returning anything else...

that's certainly a possibility, easy enough to add... should that be available to any client without authenticating first? or if it requires an authenticated session, should it be available to any user, or just the domain-admin for that domain, or only for a system- admin?

any thoughts? if needed, i will write the patch to make this happen- let me know.

If you write it and send it to me I'll make sure it gets into 5.5. You can choose between login/compact | clogin | login "password with spaces" compact. I like clogin best because I'm lazy... :)

i'll go with "clogin" and "slogin". i'm also going to look at the code which parses the line and make sure that when it's looking for a password, it doesn't stop on spaces.

i would also like to see the output from the "help" command trim itself to the set of commands which are actually available to the client- before login, for example, the list would have "login", "help", and "quit", and would not disconnect the client (as it does now.) for a normal user it would only show the commands relating to their own mailbox without any admin-level commands, for a domain admin it would show the domain-level commands but not the system- admin level stuff, and so forth. this is also a patch i am willing to write, if there is any interest in it.

That sounds like a good idea too. If you do it, please consider making it so help before login is allowed, and only lists the three login commands. Then once you are logged in expand the help list based on the user's rights. Right now help before login sends the help list and disconnects.

i've written what i call the "cslogin" patch, which does the following:

- adds the "clogin" and "slogin" commands

- fixes the parsing so passwords in the "login", "add_user", "add_domain", and "mod_user" commands include everything out to the end of the line

- makes the "help" command adjust itself to the access level that the client currently has.

and since i now have two different patches for vpopmail, it's time to create a new web page to hold them. both patches are available from this page, which includes basic documentation for the new features.


| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/           <[EMAIL PROTECTED]> |
| Mac OS X proves that it's easier to make UNIX  |
| pretty than it is to make Windows secure.      |

Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to