atom feed3 messages in net.sourceforge.lists.courier-imap[Courier-imap] Authpwd and NIS on Sol...
FromSent OnAttachments
Chris JonesJan 31, 2006 2:45 pm 
Brian CandlerFeb 1, 2006 5:24 am 
Chris JonesFeb 1, 2006 10:21 am 
Subject:[Courier-imap] Authpwd and NIS on Solaris 10
From:Chris Jones (cdjo@cs.ualberta.ca)
Date:Jan 31, 2006 2:45:45 pm
List:net.sourceforge.lists.courier-imap

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