ldapurl version (return code: 0)
ldap://:389
ldapurl --help (return code: 1)
ldapurl: invalid option -- '-'
usage: ldapurl [options]
generates RFC 4516 LDAP URL with extensions
URL options:
-a attrs comma separated list of attributes
-b base (RFC 4514 LDAP DN)
-E ext (format: "ext=value"; multiple occurrences allowed)
-f filter (RFC 4515 LDAP filter)
-h host
-p port (default: 389 for ldap, 636 for ldaps)
-s scope (RFC 4511 searchScope and extensions)
-S scheme (RFC 4516 LDAP URL scheme and extensions)