Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running LDAP Samba PDC on Ubuntu 10.04 server. By default the LDAP account pasword expires in 45 days. I want to change it.

I've tried hard to find this setting in the LDAP conf files but I couldn't.
What conf file needs to be edited to make this change?

share|improve this question

The configuration parameter you are looking for is pwdMaxAge as described here. However, you need to observe that this parameter is given in seconds. Hence you need to calculate number_of_days * 86400 if you want to specify a particular number of days.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.