Great, all encouraging answers. This means that using authtest to change passwords should work, right? It doesn't.
I'm using authdaemon to handle authentication chores. My authmodulelist parameter in the authdaemonrc file looks like this: authmodulelist="authcustom authcram authuserdb authpam" Authpam is used to authenticate system accounts and authuserdb is used for virtual mail accounts. Using authtest to test authentication works for both system and virtual accounts. This is the sort of thing I get: authtest <username> <password> Authenticated: module authdaemon <user info follows> If I try to use authtest to change a password, again either a system or virtual account, I get this: authtest <username> <password> <newpassword> Authentication FAILED! If I use a bogus username or password, authentication always fails so it seems like authtest is accessing the proper user databases. Any ideas why the password change is failing? The reason I'm harping on authtest is that I'm under the impression that it should work for password changes and why should I go to the trouble of writing my own program if I can't even get the test program working. Andrew Sam Varshavchik wrote: > Andrew writes: > >> I would like to write a program that changes a user's mail account >> password using whichever courier authentication module is configured. >> What I would like to know is: >> >> 1. Is this possible? > > > Yes. > >> 2. Do the standard authentication modules that come with courier IMAP >> have working change password functions? > > > Yes. > >> 3. Do I need to modify the existing authentication modules to make >> this work? > > > No. > >> 4. I've been looking at the authtest program as the prototype for how >> one would invoke the change password functionality of an arbitrary >> authentication module. Is this an example of the Right Way to do it or >> is there another, better way? > > > That's the Right Way[tm]. > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
