Answer the question
In order to leave comments, you need to log in
How can a user change their own password in openldap/slapd?
Good afternoon. There is an ldap domain example.org. It creates (via phpldapadmin/apache ds studio) new users. How to make the user password be able to set / change the initial password (as in MS AD) and how (maybe there is already a ready-made solution)?
Answer the question
In order to leave comments, you need to log in
The passwd option helps, but I had to edit /etc/pam.d/common-password:
it was:
became:
at the same time, I also had to fix slapd.conf:
# The admin dn has full write access, everyone else
# can read everything.
access to *
by dn="@[email protected]" write
by * read
# The admin dn has full write access, everyone else
# can read everything.
access to *
by dn="@[email protected]" write
by self write
by * read
If accounts are logged in via shell, and ldap is bound via PAM, then it usually changes via passwd, the rest will be done by the system itself.
If accounts are somehow used differently, then it is possible through ldappasswd directly through ldap.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question