23 : fLd(ld), fSearchResult(searchresult), fCurrentEntry(searchresult)
35 fSearchResult(ldr.fSearchResult),
36 fCurrentEntry(ldr.fCurrentEntry)
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.
void AddAttribute(const TLDAPAttribute &attr)
Add an attribute to the entry.
virtual ~TLDAPResult()
Deletes the LDAPMessage structure.
TLDAPEntry * GetNext()
Returns next entry from the search result.
LDAPMessage * fCurrentEntry
TLDAPResult & operator=(const TLDAPResult &)
Equal operator.
TLDAPEntry * CreateEntry(LDAPMessage *entry)
Creates TLDAPEntry object from the data containing in the LDAPMessage structure and returns pointer t...
LDAPMessage * fSearchResult
Int_t GetCount() const
Returns the number of entries in the search result.
void Print(Option_t *option="") const
Prints all entries.
Mother of all ROOT objects.
TObject & operator=(const TObject &rhs)
TObject assignment operator.