Method Protocols.LDAP.parse_ldap_url()
- Method
parse_ldap_url
mapping(string:mixed) parse_ldap_url(stringldap_url)- Description
Parses an LDAP URL and returns its fields in a mapping.
- Returns
The returned mapping contains these fields:
scheme:stringThe URL scheme, either
"ldap"or"ldaps".host:stringSelf-explanatory.
port:intbasedn:stringattributes:array(string)Array containing the attributes. Undefined if none was specified.
scope:intThe scope as one of the
SEARCH_*constants. Undefined if none was specified.filter:stringThe search filter. Undefined if none was specified.
ext:mapping(string:string|int(1))The extensions. Undefined if none was specified. The mapping values are
1for extensions without values. Critical extensions are checked and the leading"!"do not remain in the mapping indices.url:stringThe original unparsed URL.
- See also
get_parsed_url