|
NAMEldapurl - LDAP URL formatting toolSYNOPSISldapurl [-a attrs] [-b searchbase] [-e [!]ext[=extparam]] [-E [!]ext[=extparam]] [-f filter] [-H ldapuri] [-h ldaphost] [-p ldapport] [-s {base|one|sub|children}] [-S scheme]DESCRIPTIONldapurl is a command that allows one to either compose or decompose LDAP URIs.When invoked with the -H option, ldapurl extracts the components of the ldapuri option argument, unescaping hex-escaped chars as required. It basically acts as a frontend to the ldap_url_parse(3) call. Otherwise, it builds an LDAP URI based on the components passed with the appropriate options, performing the inverse operation. Option -H is incompatible with options -a, -b, -E, -f, -H, -h, -p, -S, and -s. OPTIONS
OUTPUT FORMATIf the -H option is used, the ldapuri supplied is exploded in its components, which are printed to standard output in an LDIF-like form.Otherwise, the URI built using the values passed with the other options is printed to standard output. EXAMPLEThe following command:ldapurl -h ldap.example.com -b dc=example,dc=com -s sub -f "(cn=Some One)" returns ldap://ldap.example.com:389/dc=example,dc=com??sub?(cn=Some%20One) The command: ldapurl -H ldap://ldap.example.com:389/dc=example,dc=com??sub?(cn=Some%20One) returns scheme: ldap host: ldap.example.com port: 389 dn: dc=example,dc=com scope: sub filter: (cn=Some One) DIAGNOSTICSExit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error.SEE ALSOldap(3), ldap_url_parse(3),AUTHORThe OpenLDAP Project <http://www.openldap.org/>ACKNOWLEDGEMENTSOpenLDAP Software is developed and maintained by The OpenLDAP Project <http://www.openldap.org/>. OpenLDAP Software is derived from the University of Michigan LDAP 3.3 Release.
Visit the GSP FreeBSD Man Page Interface. |