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

Prohibited pw modification message is shown for non-ldap users #67

Open
ion201 opened this issue May 2, 2024 · 0 comments
Open

Prohibited pw modification message is shown for non-ldap users #67

ion201 opened this issue May 2, 2024 · 0 comments

Comments

@ion201
Copy link

ion201 commented May 2, 2024

I have a nslcd.conf file with a section like this:

pam_password_prohibit_message "Local password change is prohibited for LDAP login"
validnames /^.*@company.com$/
nss_min_uid 100000

When I try to change a password with a local user, I get an unexpected message from ldapd:

$ passwd local_user
Changing password for local_user.
Current password: [ENTER WRONG PASSWORD]
Local password change is prohibited for LDAP login
passwd: Authentication token manipulation error
passwd: password unchanged

The message indicates the wrong error to the user, suggesting that ldapd blocked this request. In actuality, this user does not pass the criteria specified by validnames or nss_min_uid, so ldapd doesn't have anything to do with it. In that case, I don't think ldapd should print any messages at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant