summaryrefslogtreecommitdiffstats
path: root/src/libtdeldap.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-05-27 00:51:17 -0500
committerTimothy Pearson <[email protected]>2012-05-27 00:51:17 -0500
commita63d48d3ea39fb5490a10fcf55b3b354b622622f (patch)
tree308f8a46ef877e10f23e40cb8dcd9bcbd2e275c1 /src/libtdeldap.h
parent6b705421fa4addcd4be5ea95359fe7ea996493e7 (diff)
downloadkcmldapmanager-a63d48d3ea39fb5490a10fcf55b3b354b622622f.tar.gz
kcmldapmanager-a63d48d3ea39fb5490a10fcf55b3b354b622622f.zip
Import ldap login dialog and start adding ui bases to control module
Diffstat (limited to 'src/libtdeldap.h')
-rw-r--r--src/libtdeldap.h72
1 files changed, 72 insertions, 0 deletions
diff --git a/src/libtdeldap.h b/src/libtdeldap.h
new file mode 100644
index 0000000..b0bfba2
--- /dev/null
+++ b/src/libtdeldap.h
@@ -0,0 +1,72 @@
+/***************************************************************************
+ * Copyright (C) 2012 by Timothy Pearson *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#ifndef _LIBTDELDAP_H_
+#define _LIBTDELDAP_H_
+
+#include <unistd.h>
+
+#include <tqstring.h>
+#include <tqdatetime.h>
+#include <tqvaluelist.h>
+
+enum LDAPUserStatus {
+ USER_STATUS_ENABLED,
+ USER_STATUS_DISABLED
+};
+
+typedef TQValueList<uid_t> UserList;
+typedef TQValueList<gid_t> GroupList;
+
+class LDAPUserInfo
+{
+ public:
+ TQString name;
+ uid_t uid;
+ TQString shell;
+ TQString homedir;
+ gid_t primary_gid;
+ GroupList grouplist;
+ LDAPUserStatus status;
+ TQDate password_last_changed;
+ bool password_expires;
+ TQDate password_expiration;
+ bool password_ages;
+ int new_password_interval;
+ int new_password_warn_interval;
+ int new_password_lockout_delay;
+ bool password_has_minimum_age;
+ int password_minimum_age;
+
+ TQString realName;
+ TQString organization;
+ // FIXME
+ // Add other attributes (cubicle, phone number, etc)
+};
+
+class LDAPGroupInfo
+{
+ public:
+ TQString name;
+ gid_t gid;
+ UserList userlist;
+};
+
+#endif // _LIBTDELDAP_H_ \ No newline at end of file