Skip to content

OpenLDAP

OpenLDAP

Usage

Don't check certs

LDAPTLS_REQCERT=never [command]
ldapsearch [...] +

Or add TLS_REQCERT never to /etc/openldap/ldap.conf.

Tips

Get highest uidNUmber on LDAP

ldapsearch -H ldaps://your-ldap-domain -D "cn=Manager,dc=domain,dc=com" -W | awk '/uidNumber: / {print $2}' | sort | tail -n 1