summaryrefslogtreecommitdiffstats
path: root/src/libtdeldap.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-05-30 14:36:53 -0500
committerTimothy Pearson <[email protected]>2012-05-30 14:36:53 -0500
commit6d3279772de658a37abc06c74726c72af9c0a484 (patch)
tree3740a11f3976e7809bda8f4b8b4792ad96b477f4 /src/libtdeldap.h
parent93a591d8f0733774cfc62329ef4b9cc5403bd16c (diff)
downloadkcmldapmanager-6d3279772de658a37abc06c74726c72af9c0a484.tar.gz
kcmldapmanager-6d3279772de658a37abc06c74726c72af9c0a484.zip
Add machine support
Diffstat (limited to 'src/libtdeldap.h')
-rw-r--r--src/libtdeldap.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/libtdeldap.h b/src/libtdeldap.h
index b0c8c08..a1369a1 100644
--- a/src/libtdeldap.h
+++ b/src/libtdeldap.h
@@ -52,6 +52,7 @@ enum LDAPKRB5Flags {
KRB5_ACTIVE_DEFAULT = KRB5_FORWARDABLE | KRB5_RENEWABLE | KRB5_CLIENT | KRB5_CHANGE_PW,
KRB5_DISABLED_ACCOUNT = KRB5_FORWARDABLE | KRB5_SERVER | KRB5_INVALID | KRB5_REQUIRE_PREAUTH | KRB5_REQUIRE_HWAUTH | KRB5_OK_AS_DELEGATE | KRB5_USER_TO_USER,
+ KRB5_MACHINE_ACCOUNT_DEFAULT = KRB5_FORWARDABLE | KRB5_PROXIABLE | KRB5_RENEWABLE | KRB5_POSTDATE | KRB5_SERVER | KRB5_CLIENT,
KRB5_FLAG_MAX = 0x80000000
};
@@ -75,6 +76,7 @@ class LDAPUserInfo
public:
bool informationValid;
TQString distinguishedName;
+ TQString creatorsName;
TQString name;
uid_t uid;
@@ -153,14 +155,31 @@ class LDAPGroupInfo
public:
bool informationValid;
TQString distinguishedName;
+ TQString creatorsName;
TQString name;
gid_t gid;
TQStringList userlist;
};
+class LDAPMachineInfo
+{
+ public:
+ LDAPMachineInfo();
+ ~LDAPMachineInfo();
+
+ public:
+ bool informationValid;
+ TQString distinguishedName;
+ TQString creatorsName;
+
+ TQString name;
+ LDAPKRB5Flags status;
+};
+
typedef TQValueList<LDAPUserInfo> LDAPUserInfoList;
typedef TQValueList<LDAPGroupInfo> LDAPGroupInfoList;
+typedef TQValueList<LDAPMachineInfo> LDAPMachineInfoList;
class LDAPManager : public TQObject {
Q_OBJECT
@@ -175,6 +194,7 @@ class LDAPManager : public TQObject {
int unbind(bool force);
LDAPUserInfoList users();
LDAPGroupInfoList groups();
+ LDAPMachineInfoList machines();
LDAPUserInfo getUserByDistinguishedName(TQString dn);
LDAPGroupInfo getGroupByDistinguishedName(TQString dn);
int updateUserInfo(LDAPUserInfo user);
@@ -183,12 +203,14 @@ class LDAPManager : public TQObject {
int addGroupInfo(LDAPGroupInfo group);
int deleteUserInfo(LDAPUserInfo user);
int deleteGroupInfo(LDAPGroupInfo group);
+ int deleteMachineInfo(LDAPMachineInfo machine);
LDAPCredentials currentLDAPCredentials();
private:
LDAPUserInfo parseLDAPUserRecord(LDAPMessage* entry);
LDAPGroupInfo parseLDAPGroupRecord(LDAPMessage* entry);
+ LDAPMachineInfo parseLDAPMachineRecord(LDAPMessage* entry);
private:
TQString m_realm;