Hello Wayne, Thiago,
This is Hong. Recently, I started testing iRODS for our organization in the Netherlands. For the simplicity, we just installed the RPMs of iRODS 4.0 on a CentOS 6.5 server. When configuring the PAM authentication with LDAP, we got stuck with an issue that looks to me similar to the original report of this discussion thread. Therefore, I try to report our issue here and ask for your advice.
After following the iRODS document and tweaking pam_ldap to work with Active Directory, I have managed to make PamAuthCheck work. For instance, if I just run
===
/var/lib/irods/iRODS/server/bin/PamAuthCheck honlee
===
I got "Authenticated". Therefore, I suppose the pam_ldap part should be properly configured.
However, if I do 'iinit' from the client using the same user id. I got the following error:
===
[-] libpam.cpp:246:pam_auth_client_request : status [PAM_AUTH_PASSWORD_FAILED] errno [] -- message [call to rcAuthRequest failed.]
failed with error -993000 PAM_AUTH_PASSWORD_FAILED
===
In the server log, I see the error
===
Jun 2 10:16:43 pid:17637 NOTICE: Agent process 26930 started for puser=honlee and cuser=honlee from xx.xx.xx.xx
Not Authenticated
Jun 2 10:16:47 pid:26930 ERROR:
[-] iRODS/server/api/src/rsAuthPluginRequest.cpp:91:rsAuthPluginRequest : status [PAM_AUTH_PASSWORD_FAILED] errno [] -- message []
[-] libpam.cpp:419:pam_auth_agent_request : status [PAM_AUTH_PASSWORD_FAILED] errno [] -- message [pam auth check failed]
Jun 2 10:16:47 pid:26930 ERROR:
[-] iRODS/server/core/src/rsApiHandler.cpp:483:readAndProcClientMsg : status [SYS_HEADER_READ_LEN_ERR] errno [] -- message []
[-] iRODS/lib/core/src/sockComm.cpp:196:readMsgHeader : status [SYS_HEADER_READ_LEN_ERR] errno [] -- message [failed to call 'read header']
[-] libtcp.cpp:240:tcp_read_msg_header : status [SYS_HEADER_READ_LEN_ERR] errno [] -- message [read 0 expected 4]
====
By requiring "pam_warn.so" in /etc/pam.d/irods, I can get the following message in /var/log/secure (exactly the same for both "PamAuthCheck" and "iinit")
===
Jun 2 10:52:23 pl-squid PamAuthCheck: pam_warn(irods:auth): function=[pam_sm_authenticate] service=[irods] terminal=[<unknown>] user=[honlee] ruser=[<unknown>] rhost=[<unknown>]
===
Thanks in advance for any good suggestions!
Hong
Wayne Schroeder於 2014年1月2日星期四UTC+1下午6時54分10秒寫道: