SCM

[#1010307] NSS won't use libnss-pgsql

View Trackers | Bugs | Download .csv | Monitor

Date:
2008-03-03 06:46
Priority:
3
State:
Open
Submitted by:
John Gallai (p166)
Assigned to:
Russell Smith (mr-russ)
Category:
Group:
NSS & PAM
Resolution:
None
 
Summary:
NSS won't use libnss-pgsql

Detailed description
Hi All!

I'm using the openSuse 10.3 distro and I'd like to use pam-pgsql and libnss-pgsql to be a backend for login, smbmount, kde, etc. I've installed them but it seems that libnss-pgsql doesn't work at all or nss (pam_unix.so) doesn't use it.

/etc/nsswitch.conf contains these lines

...
passwd: compat pgsql
...

The getent passwd lists all records from /etc/passwd but from the pgsql db comes nothing. There are no error message or any issue at all to manage this problem. If I try to login, pam-pgsql is used to authenticate the user ( it is found in the log of pg ) and it is successful but login says:

login[PID]: Unable to obtain uid (user=xxxxx) for audit system
login[PID]: Failed tz look up user 'xxxxx'

Please help what to do now.

Thanks,
John

Followup

Message
Date: 2008-03-08 06:05
Sender: Russell Smith

Your PAM is working perfectly. It only authenticates users. You nss is not working. You will need to debug why. It's not even connecting to PostgreSQL, so is /etc/nss-pgsql.conf configured correctly?

Attached Files:

Changes:

Field Old Value Date By
assigned_tonone2008-03-08 06:05mr-russ
Powered By FusionForge