| Summary: | Sun's pam_ldap account management is not working | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Anton Solovyev <solovam> | ||||
| Component: | PAM support | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | major | ||||||
| Priority: | P2 | ||||||
| Version: | 3.7.1p1 | ||||||
| Hardware: | UltraSPARC | ||||||
| OS: | Solaris | ||||||
| Attachments: |
|
||||||
|
Description
Anton Solovyev
2003-10-10 08:34:26 AEST
Oh, yes, if the "account" part is disabled in the /etc/pam.conf, it is working fine. So, the authentication works, only the account management does not. According to the man page, pam_ldap doesn't support account management.
$ man pam_ldap
[snip]
The pam_ldap.so.1 module supports two components: the
Authentication component and the Password management com-
ponent.
Account management most definitely works with pam_ldap. Please see native telnet and natiive Solaris 9 ssh. The man pages ol Solaris are outdated and do not get updates with patches. Created attachment 504 [details]
Call do_pam_account and pam_chauthtok() from authentication thread.
Looking at this, my guess is that pam_ldap dislikes being called from a
different process than the one that called pam_authenticate.
Please try this patch, which calls do_pam_account from the authentication
thread.
It still fails on my system but that seems to be only because I don't have LDAP
set up:
testsshd[23488]: libsldap: Status: 2 Mesg: Unable to load configuration
'/var/ldap/ldap_client_file'
Attachment id #504 has been committed. Please reopen if you have further information. Mass change of RESOLVED bugs to CLOSED |