Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ldapsource "x" hack results in "pam_acct_mgmt: 7" (Authentication failure) #27

Closed
jaqx0r opened this issue Mar 14, 2015 · 3 comments
Closed

Comments

@jaqx0r
Copy link
Contributor

jaqx0r commented Mar 14, 2015

Original issue 26 created by jaqx0r on 2012-06-11T04:42:37.000Z:

What steps will reproduce the problem?

  1. setup nsscache on debian squeeze
  • with kerberos and unix pam modules (via pam-auth-update)
  • with ldap nsscache source
  • only syncing passwd and group
    1. nsscache update --full
    2. modify nsswitch.conf to include "passwd: files db"
    3. getent passwd

What is the expected output? What do you see instead?

  • expected: passwd entries with a "*" in the password field
  • actual: passwd entries with a "x" in the password field

What version of the product are you using? On what operating system?

  • nsscache 0.21.17
  • debian 6.0.5

Please provide any additional information below.

It seems "x" is sometimes wanted and "" other times, so this should be configurable in nsscache.conf. In my setup I'm using kerberos for auth and ldap for account information, and PAM apparently expects "" vs "x"... with "passwd: files ldap" I see "*".

Changing "x" to "*" here solves it:

@jaqx0r
Copy link
Contributor Author

jaqx0r commented Mar 14, 2015

Comment #1 originally posted by jaqx0r on 2014-04-30T13:21:35.000Z:

Thanks to that comment that I probably wrote many years ago, there's no way to know why we used 'x' instead of '*'. I'm submitting the change; please try it out.

@jaqx0r
Copy link
Contributor Author

jaqx0r commented Mar 14, 2015

Comment #2 originally posted by jaqx0r on 2014-04-30T13:21:43.000Z:

This issue was closed by revision 0fbbf2b6aa71.

@jaqx0r
Copy link
Contributor Author

jaqx0r commented Mar 14, 2015

Comment #3 originally posted by jaqx0r on 2014-10-20T04:52:15.000Z:

This change was done in error. The documentation (passwd(5)) states that * marks locked accounts, and 'x' or other indicates that /etc/shadow should be used.

See # 35

@jaqx0r jaqx0r closed this as completed Mar 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant