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:
hostport
is a host name with an optional “:portnumber”.dn
is the search base DN.attrs
is a comma separated list of attributes to request.scope
is the scope of the request (“one”, “sub”, or “base”).filter
is the search filter of the request.exts
is 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
-
– init
Initialize 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
-
ldapUrl
The LDAP URL that has been parsed into component pieces.
property -
ldapConnectionUrl
The LDAP URL used calls to ldap_initialize().
property -
ldapScheme
The LDAP scheme used in the URL.
property -
ldapHost
The hostname contained within the URL.
property -
ldapPort
The port number contained within the URL.
property -
ldapDn
The search base DN.
property -
ldapAttributes
A list of attributes to request.
property -
ldapScope
A scope of the search request.
property -
ldapFilter
The LDAP filter.
property -
ldapExtensions
Recognized set of LDAP and/or API extensions.
property -
ldapCriticalExtensions
True if any extension is critical.
property
Properties
ldapAttributes
A list of attributes to request.
@property (atomic, copy) NSArray *ldapAttributes
Declared In
LKUrl.h
ldapConnectionUrl
The LDAP URL used calls to ldap_initialize().
@property (atomic, copy, readonly) NSString *ldapConnectionUrl
Declared In
LKUrl.h
ldapCriticalExtensions
True if any extension is critical.
@property (atomic, assign) BOOL ldapCriticalExtensions
Declared In
LKUrl.h
ldapExtensions
Recognized set of LDAP and/or API extensions.
@property (atomic, copy) NSArray *ldapExtensions
Declared In
LKUrl.h
ldapHost
The hostname contained within the URL.
@property (atomic, copy) NSString *ldapHost
Declared In
LKUrl.h
ldapPort
The port number contained within the URL.
@property (atomic, assign) NSInteger ldapPort
Declared In
LKUrl.h
ldapScheme
The LDAP scheme used in the URL.
@property (atomic, assign) LKLdapProtocolScheme ldapScheme
Declared In
LKUrl.h