23 : fLd(ld), fSearchResult(searchresult), fCurrentEntry(searchresult)
93 dn = ldap_get_dn(
fLd, entry);
95 for (attr = ldap_first_attribute(
fLd, entry, &ptr); attr != 0;
96 attr = ldap_next_attribute(
fLd, entry, ptr)) {
98 vals = ldap_get_values_len(
fLd, entry, attr);
100 for (
Int_t i = 0; vals[i] != 0; i++) {
101 attribute.
AddValue(vals[i]->bv_val);
103 ldap_value_free_len(vals);
119 return ldap_count_entries(ld, result);
130 for (
Int_t i = 0; i < count; i++) {
void AddValue(const char *value)
Add a value to the attribute.
TLDAPEntry * CreateEntry(LDAPMessage *entry)
Creates TLDAPEntry object from the data containing in the LDAPMessage structure and returns pointer t...
void AddAttribute(const TLDAPAttribute &attr)
Add an attribute to the entry.
Int_t GetCount() const
Returns the number of entries in the search result.
TObject & operator=(const TObject &rhs)
TObject assignment operator.
TLDAPResult & operator=(const TLDAPResult &)
Equal operator.
void Print(Option_t *="") const
Print entry in LDIF format.
LDAPMessage * fCurrentEntry
void Print(Option_t *option="") const
Prints all entries.
TLDAPEntry * GetNext()
Returns next entry from the search result.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Mother of all ROOT objects.
virtual ~TLDAPResult()
Deletes the LDAPMessage structure.
LDAPMessage * fSearchResult