LDAP users not able to change their password using passwd command

Krishnamurthy Dasari

I have a basic LDAP setup without SSL configured. Users are able to login but not able to change their password using passwd command. I have gone though many blogs but no luck. I have disabled selinux and iptables.

Any help on this will be much appreciated.

Details below,

  • OS: CentOS6.5
  • LDAP version: openldap-servers-2.4.23-34.el6_5.1.x86_64
  • Client version: openldap-clients-2.4.23-34.el6_5.1.x86_64

Output from the terminal when trying to change the password:

[servername ~]$ passwd
Changing password for user dkrishna.
Enter login(LDAP) password:
New password:
Retype new password:
LDAP password information update failed: Insufficient access
passwd: Authentication token manipulation error

Below are the logs,

==> /var/log/secure <==

Oct  8 09:31:33  passwd: pam_unix(passwd:chauthtok): user "dkrishna" does not exist in /etc/passwd
Oct  8 09:31:42  passwd: pam_unix(passwd:chauthtok): user "dkrishna" does not exist in /etc/passwd

==> /var/log/messages <==

Oct  8 09:31:42  passwd: pam_ldap: ldap_modify_s Insufficient access

ACL's configured as below,

database config
access to *
        by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
        by * none

database monitor
access to *
        by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" read
        by dn.exact="cn=admin,dc=tibbr,dc=com" read
        by * none

access to attrs=userPassword
        by self write
        by anonymous auth
        by users none

access to * by * read
Thomas

I found the solution:

Add the following two lines to the end of the file: oclDatabase\=\{2\}bdb.ldif

olcAccess: {0}to attrs=userPassword by self write by dn.base="cn=Manager,dc=domain,dc=com" write by anonymous auth by * none

olcAccess: {1}to * by dn.base="cn=Manager,dc=domain,dc=com" write by self write by * read

bye

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

non-root users can run passwd command as root, why can't they change password of root?

From Dev

Not able to reset AD password from Java using LDAP

From Dev

Change user password in LDAP using unboundid

From Dev

Laravel 5.5 - Change users password using API

From Dev

prioritize LDAP when using passwd and group

From Dev

How to change password using Spring LDAP and Spring security

From Dev

show entered new password in unix "passwd" command

From Dev

Why does passwd command show "UNIX password"?

From Dev

How to change the git password using command prompt?

From Dev

Gerrit is not able to authenticate using LDAP

From Dev

How to set password for users in AIX using single line command?

From Dev

Change keyring password after resetting password with "passwd" : Ubuntu 13.10

From Dev

Windows 7 how to change the LDAP user's password from command line

From Dev

Using LDAP to find Users in Active Directory - no Users?

From Dev

Not able to redirect users using javascript

From Dev

Not able to redirect users using javascript

From Dev

Is it there any way to force "Passwd" command to ask existing password everytime?

From Dev

Can't change root password, passwd doesn't do anything

From Dev

How to allow LDAP user to change password?

From Dev

How to allow LDAP user to change password?

From Dev

Prevent root password change in ldap - debian

From Dev

Change password or add user in LDAP with PHP

From Dev

Securely send password to LDAP server using PHP

From Dev

NodeJS LDAP authentication using Passport and password encryption

From Dev

Add password user using LDAP PHP

From Dev

users not found in /etc/passwd

From Dev

Is it possible for users not to be in passwd?

From Dev

/etc/passwd shortest password

From Dev

Find users who cannot change their password

Related Related

  1. 1

    non-root users can run passwd command as root, why can't they change password of root?

  2. 2

    Not able to reset AD password from Java using LDAP

  3. 3

    Change user password in LDAP using unboundid

  4. 4

    Laravel 5.5 - Change users password using API

  5. 5

    prioritize LDAP when using passwd and group

  6. 6

    How to change password using Spring LDAP and Spring security

  7. 7

    show entered new password in unix "passwd" command

  8. 8

    Why does passwd command show "UNIX password"?

  9. 9

    How to change the git password using command prompt?

  10. 10

    Gerrit is not able to authenticate using LDAP

  11. 11

    How to set password for users in AIX using single line command?

  12. 12

    Change keyring password after resetting password with "passwd" : Ubuntu 13.10

  13. 13

    Windows 7 how to change the LDAP user's password from command line

  14. 14

    Using LDAP to find Users in Active Directory - no Users?

  15. 15

    Not able to redirect users using javascript

  16. 16

    Not able to redirect users using javascript

  17. 17

    Is it there any way to force "Passwd" command to ask existing password everytime?

  18. 18

    Can't change root password, passwd doesn't do anything

  19. 19

    How to allow LDAP user to change password?

  20. 20

    How to allow LDAP user to change password?

  21. 21

    Prevent root password change in ldap - debian

  22. 22

    Change password or add user in LDAP with PHP

  23. 23

    Securely send password to LDAP server using PHP

  24. 24

    NodeJS LDAP authentication using Passport and password encryption

  25. 25

    Add password user using LDAP PHP

  26. 26

    users not found in /etc/passwd

  27. 27

    Is it possible for users not to be in passwd?

  28. 28

    /etc/passwd shortest password

  29. 29

    Find users who cannot change their password

HotTag

Archive