LDAP CheatSheet

Query LDAP Server

ldapsearch -x -h LDAP-SERVER -p 389 -D "DN-MANAGER-USERNAME" -b "SEARCH-BASE" -W

Query LDAP Server with Scope

ldapsearch -x -h LDAP-SERVER -p 389 -D "DN-MANAGER-USERNAME" -b "SEARCH-BASE" -W -s ONE_LEVEL

Query LDAP Server with Filter

ldapsearch -x -h LDAP-SERVER -p 389 -D "DN-MANAGER-USERNAME" -b "SEARCH-BASE" -W -s ONE_LEVEL "(uid=nifimanager2)"

Leave a Comment