#include <LdapAgent.h>
Inheritance diagram for LdapAgent:

Public Member Functions | |
| LdapAgent () | |
| virtual | ~LdapAgent () |
| virtual YCPValue | Read (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull()) |
| virtual YCPBoolean | Write (const YCPPath &path, const YCPValue &arg, const YCPValue &arg2=YCPNull()) |
| virtual YCPValue | Execute (const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &arg2=YCPNull()) |
| virtual YCPList | Dir (const YCPPath &path) |
| virtual YCPValue | otherCommand (const YCPTerm &term) |
Private Member Functions | |
| string | getValue (const YCPMap map, const string key) |
| int | getIntValue (const YCPMap map, const string key, int deflt) |
| bool | getBoolValue (const YCPMap map, const string key) |
| YCPList | getListValue (const YCPMap map, const string key) |
| StringList | ycplist2stringlist (YCPList l) |
| YCPList | stringlist2ycplist (StringList sl) |
| YCPList | stringlist2ycplist_low (StringList sl) |
| YCPMap | getGroupEntry (LDAPEntry *entry, string member_attribute) |
| YCPMap | getUserEntry (LDAPEntry *entry) |
| YCPMap | getSearchedEntry (LDAPEntry *entry, bool sinlge_value) |
| YCPMap | getObjectAttributes (string dn) |
| YCPBoolean | deleteSubTree (string dn) |
| YCPBoolean | moveWithSubtree (string dn, string new_dn, string parent_dn) |
| YCPBoolean | copyOneEntry (string dn, string new_dn) |
| void | debug_exception (LDAPException e, string action) |
| void | generate_attr_list (LDAPAttributeList *attrs, YCPMap map) |
| void | generate_mod_list (LDAPModList *modlist, YCPMap map, YCPValue attrs) |
Private Attributes | |
| int | port |
| string | hostname |
| string | bind_dn |
| string | bind_pw |
| string | ldap_error |
| string | server_error |
| int | ldap_error_code |
| bool | ldap_initialized |
| string | userpw_hash |
| LDAPConnection * | ldap |
| LDAPConstraints * | cons |
| LDAPSchema * | schema |
| YCPMap | users |
| YCPMap | users_by_name |
| YCPMap | usernames |
| YCPMap | userdns |
| YCPMap | uids |
| YCPMap | homes |
| YCPMap | user_items |
| YCPMap | groups |
| YCPMap | groups_by_name |
| YCPMap | groupnames |
| YCPMap | gids |
| YCPMap | group_items |
|
|
Default constructor. |
|
|
Destructor. |
|
||||||||||||
|
copy the LDAP entry to new place (+ changes DN-constructing attribute, like cn,uid,ou etc.) |
|
||||||||||||
|
|
|
|
deletes all children of given entry |
|
|
Provides SCR Dir (). Implements SCRAgent. |
|
||||||||||||||||
|
Provides SCR Execute (). Reimplemented from SCRAgent. |
|
||||||||||||
|
creates attributes for new LDAP object and fills their values |
|
||||||||||||||||
|
creates list of modifications for LDAP object for removing attribute, use give it empty value |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
Search the map for value of given key; key is string and value is integer |
|
||||||||||||
|
|
|
|
searches for one object and gets all his non-empty attributes
|
|
||||||||||||
|
creates YCPMap describing object returned as a part of LDAP search call
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
move the entry in LDAP tree with all its children |
|
|
Used for mounting the agent. Reimplemented from SCRAgent. |
|
||||||||||||||||
|
Provides SCR Read ().
Implements SCRAgent. |
|
|
converts StringList object to YCPList value |
|
|
|
|
||||||||||||||||
|
Provides SCR Write (). Implements SCRAgent. |
|
|
converts YCPList to StringList object |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Agent private variables |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.1