Skip to content

Server

Lightweight Directory Access Protocol - LDAP

Packages

  • slapd - Stand-alone LDAP Daemon

Abbreviations

  • dn - Distinguished Name

  • .ldif - LDAP Data Interchange Format

Commands

generate passwords

slappasswd -c MD5 -s new_password

Validate Users

ldapwhoami -x -D cn=user1,ou=users,dc=<domain>,dc=com -W

See folder structure

ldapsearch -x -LLL -H ldap://localhost -b dc=<domain>,dc=com dn

See specific user

ldapsearch -x -LLL -b dc=<domain>,dc=com '(uid=john)'

Add Resource

   shell: ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/add_ssl_options.ldif