36 #include <LDAPConnection.h>
37 #include <LDAPException.h>
38 #include <LDAPAttributeList.h>
39 #include <LDAPAttribute.h>
41 #include <LDAPSchema.h>
43 #define DEFAULT_PORT 389
45 #define MAX_LENGTH_ID 5
void debug_referral(LDAPReferralException e, string action)
Definition: LdapAgent.cc:513
YCPMap getSearchedEntry(LDAPEntry *entry, bool sinlge_value)
Definition: LdapAgent.cc:151
virtual ~LdapAgent()
Definition: LdapAgent.cc:77
YCPMap usernames
Definition: LdapAgent.h:73
LDAPConnection * ldap
Definition: LdapAgent.h:69
string bind_pw
Definition: LdapAgent.h:59
YCPMap uids
Definition: LdapAgent.h:73
StringList ycplist2stringlist(YCPList l)
Definition: LdapAgent.cc:319
YCPMap users_by_uidnumber
Definition: LdapAgent.h:73
YCPMap groups_by_gidnumber
Definition: LdapAgent.h:73
virtual YCPValue Execute(const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &arg2=YCPNull())
Definition: LdapAgent.cc:1263
YCPMap users_by_name
Definition: LdapAgent.h:73
YCPMap groupnames
Definition: LdapAgent.h:73
YCPList stringlist2ycplist_low(StringList sl)
Definition: LdapAgent.cc:348
YCPMap user_items
Definition: LdapAgent.h:73
int getIntValue(const YCPMap map, const string key, int deflt)
Definition: LdapAgent.cc:109
string userpw_hash
Definition: LdapAgent.h:67
YCPMap getGroupEntry(LDAPEntry *entry, string member_attribute)
Definition: LdapAgent.cc:227
bool getBoolValue(const YCPMap map, const string key)
Definition: LdapAgent.cc:126
YCPBoolean copyOneEntry(string dn, string new_dn)
Definition: LdapAgent.cc:955
LDAPSchema * schema
Definition: LdapAgent.h:71
YCPBoolean moveWithSubtree(string dn, string new_dn, string parent_dn)
Definition: LdapAgent.cc:1020
void generate_mod_list(LDAPModList *modlist, YCPMap map, YCPValue attrs)
Definition: LdapAgent.cc:422
void generate_attr_list(LDAPAttributeList *attrs, YCPMap map)
Definition: LdapAgent.cc:360
LDAPConstraints * cons
Definition: LdapAgent.h:70
void set_tls_options(YCPMap args, string tls)
Definition: LdapAgent.cc:527
virtual YCPList Dir(const YCPPath &path)
Definition: LdapAgent.cc:558
YCPMap group_items
Definition: LdapAgent.h:73
YCPMap getObjectAttributes(string dn)
Definition: LdapAgent.cc:195
string server_error
Definition: LdapAgent.h:61
YCPMap homes
Definition: LdapAgent.h:73
virtual YCPBoolean Write(const YCPPath &path, const YCPValue &arg, const YCPValue &arg2=YCPNull())
Definition: LdapAgent.cc:1095
bool tls_error
Definition: LdapAgent.h:62
bool ldap_initialized
Definition: LdapAgent.h:65
YCPMap groups_by_name
Definition: LdapAgent.h:73
YCPBoolean deleteSubTree(string dn)
Definition: LdapAgent.cc:907
virtual YCPValue Read(const YCPPath &path, const YCPValue &arg=YCPNull(), const YCPValue &opt=YCPNull())
Definition: LdapAgent.cc:567
YCPMap groups
Definition: LdapAgent.h:73
string getValue(const YCPMap map, const string key)
Definition: LdapAgent.cc:94
void debug_exception(LDAPException e, string action)
Definition: LdapAgent.cc:500
int ldap_error_code
Definition: LdapAgent.h:64
string bind_dn
Definition: LdapAgent.h:58
YCPMap gids
Definition: LdapAgent.h:73
YCPMap getUserEntry(LDAPEntry *entry)
Definition: LdapAgent.cc:267
int port
Definition: LdapAgent.h:56
string ldap_error
Definition: LdapAgent.h:60
YCPList stringlist2ycplist(StringList sl)
Definition: LdapAgent.cc:336
string hostname
Definition: LdapAgent.h:57
YCPList getListValue(const YCPMap map, const string key)
Definition: LdapAgent.cc:139
LdapAgent()
Definition: LdapAgent.cc:65
YCPMap userdns
Definition: LdapAgent.h:73
An interface class between YaST2 and Ldap Agent.
Definition: LdapAgent.h:50
virtual YCPValue otherCommand(const YCPTerm &term)
Definition: LdapAgent.cc:1833
YCPMap users
Definition: LdapAgent.h:73