9#ifndef ROOT_TLDAPServer
10#define ROOT_TLDAPServer
40 const char *binddn = 0,
const char *password = 0,
41 Int_t version = LDAP_VERSION2);
47 Int_t scope = LDAP_SCOPE_BASE,
48 const char *filter = 0,
#define ClassDef(name, id)
virtual ~TLDAPServer()
If the object is connected to the server, it disconnects.
Int_t ModifyEntry(TLDAPEntry &entry, Int_t mode=LDAP_MOD_REPLACE)
Modifies specified entry.
TLDAPResult * GetAttributeTypes()
Calls GetSubschemaSubentry() and performs and LDAPSearch with the attribute "attributeTypes" to be re...
Bool_t IsConnected() const
TLDAPResult * GetObjectClasses()
Calls GetSubschemaSubentry() and performs and LDAPSearch with the attribute "objectClasses" to be ret...
const char * GetSubschemaSubentry()
Performs an LDAPSearch with the attribute "subschemaSubentry" to be returned with the result.
TLDAPServer(const TLDAPServer &)
Copy constructor.
void Unbind()
Unbinds from the server with specified binddn and password.
TLDAPResult * Search(const char *base="", Int_t scope=LDAP_SCOPE_BASE, const char *filter=0, TList *attrs=0, Bool_t attrsonly=0)
Performs searching at the LDAP directory.
static void DeleteMods(LDAPMod **mods)
Deletes the array of LDAPMod structures and frees its memory.
Int_t AddEntry(TLDAPEntry &entry)
Adds entry to the LDAP tree.
Int_t RenameEntry(const char *dn, const char *newrdn, Bool_t removeattr=kFALSE)
Renames the entry with specified DN, the entry must be leaf Be sure that you are bound with the write...
const char * GetNamingContexts()
Performs an LDAPSearch with the attribute "namingContexts" to be returned with the result.
TLDAPServer & operator=(const TLDAPServer &)
Equal operator.
Int_t DeleteEntry(const char *dn)
Deletes the entry with specified DN, the base entry must exist.
Int_t Bind()
Binds to the server with specified binddn and password.
Mother of all ROOT objects.