ldapurl(1)


NAME

   ldapurl - LDAP URL formatting tool

SYNOPSIS

   ldapurl      [-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]

DESCRIPTION

   ldapurl  is  a  command that allows 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

   -a attrs
          Set a comma-separated list of attribute selectors.

   -b searchbase
          Set the searchbase.

   -e [!]ext[=extparam]

          Specify   general   extensions   with  -e  !  indicates
          criticality.

          General extensions:
            [!]assert=<filter>    (an RFC 4515 Filter)
            !authzid=<authzid>    ("dn:<dn>" or "u:<user>")
            [!]bauthzid           (RFC 3829 authzid control)
            [!]chaining[=<resolve>[/<cont>]]
            [!]manageDSAit
            [!]noop
            ppolicy
            [!]postread[=<attrs>] (a comma-separated attribute list)
            [!]preread[=<attrs>]  (a comma-separated attribute list)
            [!]relax
            sessiontracking
            abandon,cancel,ignore (SIGINT sends abandon/cancel,
            or ignores response; if critical, doesn't wait for SIGINT.
            not really controls)

   -E [!]ext[=extparam]
          Set URL extensions; incompatible with -H.

   -f filter
          Set the URL filter.  No particular  check  on  conformity
          with RFC 4515 LDAP filters is performed, but the value is
          hex-escaped as required.

   -H ldapuri
          Specify URI to be exploded.

   -h ldaphost
          Set the host.

   -p ldapport
          Set the TCP port.

   -S scheme
          Set the URL scheme.   Defaults  for  other  fields,  like
          ldapport, may depend on the value of scheme.

   -s {base|one|sub|children}
          Specify  the  scope of the search to be one of base, one,
          sub, or children to specify  a  base  object,  one-level,
          subtree,  or children search.  The default is sub.  Note:
          children  scope  requires  LDAPv3   subordinate   feature
          extension.

OUTPUT FORMAT

   If  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.

EXAMPLE

   The 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)

DIAGNOSTICS

   Exit 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 ALSO

   ldap(3), ldap_url_parse(3),

AUTHOR

   The OpenLDAP Project <http://www.openldap.org/>

ACKNOWLEDGEMENTS

   OpenLDAP Software is developed and maintained  by  The  OpenLDAP
   Project   <http://www.openldap.org/>.    OpenLDAP   Software  is
   derived from University of Michigan LDAP 3.3 Release.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.