Symas OpenLDAP Knowledge Base

Using ldapurl

ldapurl

ldapurl Man Page

Syntax: ldapurl [-a attrs] [-b searchbase] [-f filter] [-H URI] [-s scope]

  • The ldapurl command is a tool that creates LDAP search URIs from a set of parameters. Search URIs are used in some LDAP client APIs
  • At this time, search URIs cannot be used with the ldapsearch command

ldapurl Example

# Build a search URI
ldapurl -a cn,sn -s one -b ou=people,dc=example,dc=com -S ldap -h appserv01.example.com
ldap://appserv01.example.com:389/ou=people,dc=example,dc=com?cn,sn?one