[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_first_attribute(3)
Hi,
I just wonder how to fetch operational attributes, as it seems that
ldap_first_attribute(3), as in following C code fragment, only
retrieves user attributes.
,----[ C code fragment ]
| searchresult = ldap_search_ext_s(LDAP_SCOPE_BASE flag)
| entry = ldap_first_entry(searchresult)
| send "dn for the entry"
| attribute = ldap_first_attribute(entry)
| while [attribute] do
| if [value no pritable] then
| send "varname: value"
| else
| send "varname:: base64_encode(value)"
| fi
| ldap_next_attribute(entry)
| done
`----
-Dieter
--
Dieter Klünter | Systemberatung
http://www.dkluenter.de
GPG Key ID:8EF7B6C6