Public Member Functions |
| PILSSession () |
| Create an ILS client.
|
| PLDAP_ATTR_SIMP (RTPerson, PString, cn) |
| PLDAP_ATTR_SIMP (RTPerson, PString, c) |
| PLDAP_ATTR_SIMP (RTPerson, PString, o) |
| PLDAP_ATTR_SIMP (RTPerson, PString, surname) |
| PLDAP_ATTR_SIMP (RTPerson, PString, givenName) |
| PLDAP_ATTR_SIMP (RTPerson, PString, rfc822Mailbox) |
| PLDAP_ATTR_SIMP (RTPerson, PString, location) |
| PLDAP_ATTR_SIMP (RTPerson, PString, comment) |
| PLDAP_ATTR_SIMP (RTPerson, MSIPAddress, sipAddress) |
| PLDAP_ATTR_SIMP (RTPerson, PWORDArray, sport) |
| PLDAP_ATTR_INIT (RTPerson, unsigned, sflags, 0) |
| PLDAP_ATTR_INIT (RTPerson, unsigned, ssecurity, 0) |
| PLDAP_ATTR_INIT (RTPerson, unsigned, smodop, 0) |
| PLDAP_ATTR_INIT (RTPerson, unsigned, sttl, 3600) |
| PLDAP_ATTR_SIMP (RTPerson, PStringList, sprotid) |
| PLDAP_ATTR_SIMP (RTPerson, PStringList, sprotmimetype) |
| PLDAP_ATTR_INIT (RTPerson, PString, sappid, PProcess::Current().GetName()) |
| PLDAP_ATTR_INIT (RTPerson, PString, sappguid,"none") |
| PLDAP_ATTR_SIMP (RTPerson, PStringList, smimetype) |
| PLDAP_ATTR_INIT (RTPerson, PBoolean, ilsa32833566, 0) |
| PLDAP_ATTR_INIT (RTPerson, PBoolean, ilsa32964638, 0) |
| PLDAP_ATTR_INIT (RTPerson, PBoolean, ilsa26214430, 0) |
| PLDAP_ATTR_INIT (RTPerson, unsigned, ilsa26279966, 0) |
| PLDAP_ATTR_INIT (RTPerson, unsigned, ilsa39321630, 0) |
| PLDAP_ATTR_INIT (RTPerson, time_t, timestamp, PTime().GetTimeInSeconds()) |
PString | GetDN () const |
| PLDAP_STRUCT_END () |
PBoolean | AddPerson (const RTPerson &person) |
PBoolean | ModifyPerson (const RTPerson &person) |
PBoolean | DeletePerson (const RTPerson &person) |
PBoolean | SearchPerson (const PString &canonicalName, RTPerson &person) |
PList< RTPerson > | SearchPeople (const PString &filter) |
| PLDAPSession (const PString &defaultBaseDN=PString::Empty()) |
| Create a LDAP client.
|
| ~PLDAPSession () |
| Close the sesison on destruction.
|
PBoolean | Open (const PString &server, WORD port=0) |
| Open the LDAP session to the specified server.
|
PBoolean | Close () |
| Close the LDAP session.
|
PBoolean | IsOpen () const |
| Determine of session is open.
|
PBoolean | SetOption (int optcode, int value) |
| Set LDAP option parameter (OpenLDAp specific values)
|
PBoolean | SetOption (int optcode, void *value) |
| Set LDAP option parameter (OpenLDAP specific values)
|
PBoolean | Bind (const PString &who=PString::Empty(), const PString &passwd=PString::Empty(), AuthenticationMethod authMethod=AuthSimple) |
| Bind to the remote LDAP server.
|
PBoolean | Add (const PString &dn, const PArray< ModAttrib > &attributes) |
| Add a new distringuished name to LDAP dirctory.
|
PBoolean | Add (const PString &dn, const PStringToString &attributes) |
| Add a new distringuished name to LDAP dirctory.
|
PBoolean | Add (const PString &dn, const PStringArray &attributes) |
| Add a new distringuished name to LDAP dirctory.
|
PBoolean | Add (const PString &dn, const PLDAPStructBase &data) |
| Add a new distringuished name to LDAP dirctory.
|
PBoolean | Modify (const PString &dn, const PArray< ModAttrib > &attributes) |
| Modify an existing distringuished name to LDAP dirctory.
|
PBoolean | Modify (const PString &dn, const PStringToString &attributes) |
| Add a new distringuished name to LDAP dirctory.
|
PBoolean | Modify (const PString &dn, const PStringArray &attributes) |
| Add a new distringuished name to LDAP dirctory.
|
PBoolean | Modify (const PString &dn, const PLDAPStructBase &data) |
| Add a new distringuished name to LDAP dirctory.
|
PBoolean | Delete (const PString &dn) |
| Delete the distinguished name from LDAP directory.
|
PBoolean | Search (SearchContext &context, const PString &filter, const PStringArray &attributes=PStringList(), const PString &base=PString::Empty(), SearchScope scope=ScopeSubTree) |
| Start search for specified information.
|
PBoolean | GetSearchResult (SearchContext &context, PStringToString &data) |
| Get the current search result entry.
|
PBoolean | GetSearchResult (SearchContext &context, const PString &attribute, PString &data) |
| Get an attribute of the current search result entry.
|
PBoolean | GetSearchResult (SearchContext &context, const PString &attribute, PStringArray &data) |
| Get an attribute of the current search result entry.
|
PBoolean | GetSearchResult (SearchContext &context, const PString &attribute, PArray< PBYTEArray > &data) |
| Get an attribute of the current search result entry.
|
PBoolean | GetSearchResult (SearchContext &context, PLDAPStructBase &data) |
| Get all attributes of the current search result entry.
|
PString | GetSearchResultDN (SearchContext &context) |
| Get the current search result distinguished name entry.
|
PBoolean | GetNextSearchResult (SearchContext &context) |
| Get the next search result.
|
PList< PStringToString > | Search (const PString &filter, const PStringArray &attributes=PStringList(), const PString &base=PString::Empty(), SearchScope scope=ScopeSubTree) |
| Search for specified information, returning all matches.
|
void | SetBaseDN (const PString &dn) |
| Set the default base DN for use if not specified for searches.
|
const PString & | GetBaseDN () const |
| Set the default base DN for use if not specified for searches.
|
int | GetErrorNumber () const |
| Get the last OpenLDAP error code.
|
PString | GetErrorText () const |
| Get the last OpenLDAP error as text string.
|
struct ldap * | GetOpenLDAP () const |
| Get the OpenLDAP context structure.
|
const PTimeInterval & | GetTimeout () const |
| Get the timeout for LDAP operations.
|
void | SetTimeout (const PTimeInterval &t) |
| Set the timeout for LDAP operations.
|
void | SetSearchLimit (const unsigned s) |
| Set a limit on the number of results to return.
|
virtual | ~PObject () |
virtual PObject * | Clone () const |
| Create a copy of the class on the heap.
|
virtual PINDEX | HashFunction () const |
| This function yields a hash value required by the PDictionary class.
|
virtual Comparison | Compare (const PObject &obj) const |
| Compare the two objects and return their relative rank.
|
virtual Comparison | CompareObjectMemoryDirect (const PObject &obj) const |
| Determine the byte wise comparison of two objects.
|
bool | operator== (const PObject &obj) const |
| Compare the two objects.
|
bool | operator!= (const PObject &obj) const |
| Compare the two objects.
|
bool | operator< (const PObject &obj) const |
| Compare the two objects.
|
bool | operator> (const PObject &obj) const |
| Compare the two objects.
|
bool | operator<= (const PObject &obj) const |
| Compare the two objects.
|
bool | operator>= (const PObject &obj) const |
| Compare the two objects.
|
virtual const char * | GetClass (unsigned ancestor=0) const |
| Get the current dynamic type of the object instance.
|
PBoolean | IsClass (const char *cls) const |
virtual PBoolean | InternalIsDescendant (const char *clsName) const |
| Determine if the dynamic type of the current instance is a descendent of the specified class.
|
virtual void | PrintOn (ostream &strm) const |
| Output the contents of the object to the stream.
|
virtual void | ReadFrom (istream &strm) |
| Input the contents of the object from the stream.
|
This class will create an LDAP client to access a remote ILS server.