Operating System - HP-UX
1827706 Members
2991 Online
109967 Solutions
New Discussion

PAM NTLM Authentication Failing - Repost

 
Michael Lange
Occasional Contributor

PAM NTLM Authentication Failing - Repost

I haven't received a reply on this one yet, so I'm hoping reposting it will bring some help along.

I'm having a problem getting a sample application on HP-UX 11.00 to authenticate against a PDC using the PAM NTLM module.

This is my first shot at using the PAM NTLM module, so I've never had it working before on this box or any other box in house.

In short, my call to pam_authenticate is failing with a "Error in underlying service module" message and the following messages are written to my debug syslog:

Jul 30 09:40:27 marten syslog: Entering ntlm pam_sm_authenticate: flags 0
Jul 30 09:40:27 marten syslog: ntlm pam_sm_authenticate(dlx, mlange), flags = 0
Jul 30 09:40:27 marten syslog: pam_ntlm: mlange Succesfully logged is as mlange
Jul 30 09:40:27 marten syslog: ntlm authenticate passed!
Jul 30 09:40:27 marten syslog: setCred failed; returned: 13
Jul 30 09:40:27 marten syslog: ntlm_pam_authenticate: returning FAILURE
Jul 30 09:40:27 marten syslog: pam_authenticate: error Error in underlying service module

I can't find anything about setCred( ) on Google, here, etc... I do know that it is definitely not calling pam_sm_setcred( ). I wrote my own little service module that did nothing more than dump messages to stdout when each function was called and pam_sm_setcred( ) was never called.

Knowing that error 13 from the debug syslog is EACCESS, I tried running my sample application as setuid to root and it works just fine. I can't believe that my application would have to run as setuid to root, though, in order for this to work.

Am I missing something real simple here?

Thanks for any help!

Mike