I'm having problems getting the authpwd module (from authlib 0.58) to work on Solaris 10: when I try authtest with my password, the password check fails; when I try it with the crypt()ed password, the check succeeds. The machine is configured so that users and passwords come from NIS, but home directories are overwritten from the local passwd file ('passwd: compat' in nsswitch and prepending "+" to the entry in passwd).

When I try '/usr/host/sbin/authtest -s imap cdjones PASSWORD', I get "Authentication FAILED: Not owner" and the following in syslog:

   Jan 31 15:43:00 setup23c authdaemond: [ID 702911 mail.debug]
   received auth request, service=imap, authtype=login
   Jan 31 15:43:00 setup23c authdaemond: [ID 702911 mail.debug]
   authpwd: trying this module
   Jan 31 15:43:00 setup23c authdaemond: [ID 702911 mail.debug]
   authpwd: sysusername=cdjones, sysuserid=<null>, sysgroupid=1019,
   homedir=/export/users/cdjones, address=cdjones, fullname=Chris Jones
   2, maildir=<null>, quota=<null>, options=<null>
   Jan 31 15:43:00 setup23c authdaemond: [ID 702911 mail.debug]
   authpwd: clearpasswd=<null>, passwd=glXXXXXXX
   Jan 31 15:43:00 setup23c authdaemond: [ID 702911 mail.debug]
   supplied password 'PASSWORD' does not match encrypted password
   'glXXXXXXX'
   Jan 31 15:43:00 setup23c authdaemond: [ID 702911 mail.debug]
   authpwd: REJECT - try next module
   Jan 31 15:43:00 setup23c authdaemond: [ID 702911 mail.debug] FAIL,
   all modules rejected

Next, '/usr/host/sbin/authtest -s imap cdjones glXXXXXXX' (where 'glXXXXXXX' is the crypt()'d version of 'PASSWORD') gives the expected output from authtest, and the following in syslog:

   Jan 31 15:44:01 setup23c authdaemond: [ID 702911 mail.debug]
   received auth request, service=imap, authtype=login
   Jan 31 15:44:01 setup23c authdaemond: [ID 702911 mail.debug]
   authpwd: trying this module
   Jan 31 15:44:01 setup23c authdaemond: [ID 702911 mail.debug]
   authpwd: sysusername=cdjones, sysuserid=<null>, sysgroupid=1019,
   homedir=/export/users/cdjones, address=cdjones, fullname=Chris Jones
   2, maildir=<null>, quota=<null>, options=<null>
   Jan 31 15:44:01 setup23c authdaemond: [ID 702911 mail.debug]
   authpwd: clearpasswd=<null>, passwd=glXXXXXX
   Jan 31 15:44:01 setup23c authdaemond: [ID 702911 mail.debug]
   password matches successfully
   Jan 31 15:44:01 setup23c authdaemond: [ID 702911 mail.info]
   Authenticated: sysusername=cdjones, sysuserid=<null>,
   sysgroupid=1019, homedir=/export/users/cdjones, address=cdjones,
   fullname=Chris Jones 2, maildir=<null>, quota=<null>, options=<null>
   Jan 31 15:44:01 setup23c authdaemond: [ID 702911 mail.info]
   Authenticated: clearpasswd=glXXXXXXX, passwd=glXXXXXXX


What's up with this, and how can I fix it?

Cheers,

Chris


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to