Quantcast
Channel: Planet Ubuntu
Viewing all articles
Browse latest Browse all 17727

Stephan Hermann: [SOLVED] OpenLDAP, passwd and CRYPT passwords

$
0
0
Ok, the problem is solved.

You have to do three simple steps to get what I wanted:


  1. openldap server:
    1. add under global dn cn=config group:
      1. olcPasswordCryptSaltFormat: "$6$%.86s"
    2. add under DN: olcDatabase={-1}frontend,cn=config
      1. olcPasswordHash: {CRYPT}
  2. ldap clients, ldap.conf:
    1. search for the "pam_password" entry and change it to "exop"
"pam_password exop" in ldap.conf means:

The directive "pam_password exop" tells pam-ldap to change passwords in a way that allows OpenLDAP to apply the hashing algorithm specified in /etc/ldap/slapd.conf, instead of attempting to hash locally and write the result directly into the database.
(explanation taken from: http://karmak.org/archive/2003/02/ldap/ldap-linux.htm)


There you go, you have the $6$ salting scheme and someone can convert from /etc/shadow to ldap and vice versa.

Thx a lot to the people of #openldap (especially blingme) and to Jo Shields for finding the needed server attributes.

Viewing all articles
Browse latest Browse all 17727

Trending Articles