# password policies on ldap users

**URL:** <https://forums.suse.com/t/password-policies-on-ldap-users/25954>\
**Category:** SLES Configure-Administer\
**Created:** [August 11, 2014, 3:38pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954 "2014-08-11T15:38:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharfuddin](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sharfuddin](https://forums.suse.com/u/sharfuddin)\
**Post date:** [August 11, 2014, 3:38pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/1 "2014-08-11T15:38:17Z")

</div>

Hello,

SLES 11 SP 3 running openldap server.

applying password policies via “yast2 security” or by editing /etc/login.defs applies on ldap accounts too ? if not then please guide how to enable password policies(aging, warning, complexity) on ldap users

Regards,

---

<div class="post-metadata">

**Author:** ![sharfuddin](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sharfuddin](https://forums.suse.com/u/sharfuddin)\
**Post date:** [August 11, 2014, 3:48pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/2 "2014-08-11T15:48:50Z")

</div>

there is an option to configure password policies for ldap under yast2 ldap \> Advanced Configuration \> Administration Settings, but on my system its disabled.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [August 11, 2014, 6:56pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/3 "2014-08-11T18:56:15Z")

</div>

Hi sharfuddin,

two questions in response first:

1. Are you trying to connect to NetIQ eDirectory, formerly known as “Novell Directory Services”, short NDS?

2. Shouldn’t the admin DN be without the “Append Base DN” activated, I’d have assumed that YaST would make it “cn=Administrator,dn=nds,dc=local,ou=ldapconfig,dc=nds,dc=local” the way the screen shot shows your settings?

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![sharfuddin](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sharfuddin](https://forums.suse.com/u/sharfuddin)\
**Post date:** [August 11, 2014, 9:55pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/4 "2014-08-11T21:55:44Z")

</div>

Hello Jens,

[color=blue]

> 1. Are you trying to connect to NetIQ eDirectory, formerly known as “Novell Directory Services”, short NDS?

[/color]  
No. Its openldap server running atop SLES 11 SP 3.  
[color=blue]

> 1. Shouldn’t the admin DN be without the “Append Base DN” activated

[/color]  
Yast automatically enabled the “Append Base DN” option.

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [August 12, 2014, 1:52pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/5 "2014-08-12T13:52:35Z")

</div>

Hi sharfuddin,

[QUOTE=sharfuddin;23047]Hello Jens,  
[COLOR=blue]

> 1. Are you trying to connect to NetIQ eDirectory, formerly known as “Novell Directory Services”, short NDS?

[/COLOR]  
No. Its openldap server running atop SLES 11 SP 3.[/QUOTE]  
OK, I got confused by the DN 😉  
[COLOR=blue]  
[/COLOR][QUOTE=sharfuddin;23047][COLOR=blue] \>2. Shouldn’t the admin DN be without the “Append Base DN” activated

> 

[/COLOR]  
Yast automatically enabled the “Append Base DN” option.[/QUOTE]

But is the resulting URL correct? No matter if that flag was set automatically, the result has to fit your situation 😉

It might be that the settings dialog is disabled because YaST could not get write access to the according LDAP section, because of a wrong DN.

Regards,  
Jens

---

<div class="post-metadata">

**Author:** ![sharfuddin](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sharfuddin](https://forums.suse.com/u/sharfuddin)\
**Post date:** [August 12, 2014, 3:52pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/6 "2014-08-12T15:52:58Z")

</div>

I did it, shortly I’ll update the forums with steps on how to implement the password policy on openldap users

---

<div class="post-metadata">

**Author:** ![sharfuddin](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sharfuddin](https://forums.suse.com/u/sharfuddin)\
**Post date:** [August 21, 2014, 1:30pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/7 "2014-08-21T13:30:28Z")

</div>

sorry for coming too late ;(.

“Password Policy” is available for openldap, and via YaST it could be enabled as “yast ldap-server \> Schema Files \> Add \> ppolicy.schema” once done, under your openldap tree, you will see the “Password Policy”, enable it and configure the policies(aging, lockout, complexity).

---

<div class="post-metadata">

**Author:** ![sharfuddin](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sharfuddin](https://forums.suse.com/u/sharfuddin)\
**Post date:** [August 21, 2014, 1:34pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/8 "2014-08-21T13:34:28Z")

</div>

the settings shown on above screenshot is of openldap client, and “Password Policy” seems disabled because “Password Policy” is not available/enabled on openldap server. To enable the Password Policy on openldap Server, “yast ldap-server \> Schema Files \> Add \> ppolicy.schema” once done, under your openldap tree, you will see the “Password Policy”, enable it and configure the policies(aging, lockout, complexity).

---

<div class="post-metadata">

**Author:** ![maikcat](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@maikcat](https://forums.suse.com/u/maikcat)\
**Post date:** [August 21, 2014, 2:49pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/9 "2014-08-21T14:49:42Z")

</div>

are you using the check\_password.so module from ltb ?

Michael.

---

<div class="post-metadata">

**Author:** ![sharfuddin](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sharfuddin](https://forums.suse.com/u/sharfuddin)\
**Post date:** [August 21, 2014, 3:23pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/10 "2014-08-21T15:23:25Z")

</div>

[color=blue]

> are you using the check\_password.so module from ltb ?

[/color]  
No. seriously I didn’t get you,… excuse me for being so dumb 😕

---

<div class="post-metadata">

**Author:** ![MoserHans](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@MoserHans](https://forums.suse.com/u/MoserHans)\
**Post date:** [August 26, 2014, 5:36pm UTC](https://forums.suse.com/t/password-policies-on-ldap-users/25954/11 "2014-08-26T17:36:09Z")

</div>

LTB = LDAP Tool Box; [http://ltb-project.org/wiki/](http://ltb-project.org/wiki/)
