LKUrl Class Reference
| Inherits from | NSObject |
| Conforms to | NSCopying |
| Declared in | LKUrl.h LKUrl.m |
Overview
LKUrl is a convience class for parsing an LDAP URL into its componets.
LDAP URLs have the following format:
ldap://hostport/dn[?attrs[?scope[?filter[?exts]]]]
Where:
hostportis a host name with an optional “:portnumber”.dnis the search base DN.attrsis a comma separated list of attributes to request.scopeis the scope of the request (“one”, “sub”, or “base”).filteris the search filter of the request.extsis recognized set of LDAP and/or API extensions.
Example:
ldap://ldap.example.net/dc=example,dc=net?cn,sn?sub?(cn=*)
See RFC 4516 and the ldap_url man page for more information.
Tasks
Object Management Methods
-
– initInitialize a new object with default values.
-
– initWithURI:Initialize a new object with values from a URL.
-
+ urlWithURI:Creates a new object with values from a URL.
-
+ testLdapURI:Tests the syntax of the provided URL.
URL Componets
-
ldapUrlThe LDAP URL that has been parsed into component pieces.
property -
ldapConnectionUrlThe LDAP URL used calls to ldap_initialize().
property -
ldapSchemeThe LDAP scheme used in the URL.
property -
ldapHostThe hostname contained within the URL.
property -
ldapPortThe port number contained within the URL.
property -
ldapDnThe search base DN.
property -
ldapAttributesA list of attributes to request.
property -
ldapScopeA scope of the search request.
property -
ldapFilterThe LDAP filter.
property -
ldapExtensionsRecognized set of LDAP and/or API extensions.
property -
ldapCriticalExtensionsTrue if any extension is critical.
property
Properties
ldapAttributes
A list of attributes to request.
@property (atomic, copy) NSArray *ldapAttributesDeclared In
LKUrl.hldapConnectionUrl
The LDAP URL used calls to ldap_initialize().
@property (atomic, copy, readonly) NSString *ldapConnectionUrlDeclared In
LKUrl.hldapCriticalExtensions
True if any extension is critical.
@property (atomic, assign) BOOL ldapCriticalExtensionsDeclared In
LKUrl.hldapExtensions
Recognized set of LDAP and/or API extensions.
@property (atomic, copy) NSArray *ldapExtensionsDeclared In
LKUrl.hldapHost
The hostname contained within the URL.
@property (atomic, copy) NSString *ldapHostDeclared In
LKUrl.hldapPort
The port number contained within the URL.
@property (atomic, assign) NSInteger ldapPortDeclared In
LKUrl.hldapScheme
The LDAP scheme used in the URL.
@property (atomic, assign) LKLdapProtocolScheme ldapSchemeDeclared In
LKUrl.h