summaryrefslogtreecommitdiffstats
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/types.h b/types.h
index 57f790f..19477fb 100644
--- a/types.h
+++ b/types.h
@@ -93,6 +93,18 @@ struct _epoll_server_t_ {
};
/**
+ * Struct for mapping attribute names/values
+ */
+typedef struct {
+ struct string uid; // AD: sAMAccountName
+ struct string homemount; // AD: homeDirectory
+ struct string localhome; // AD: none, LDAP: homeDirectory
+ struct string posixAccount; // AD: user
+ struct string shadowAccount; // AD: user
+ struct string uidnumber; // AD: objectSid
+} attr_map_t;
+
+/**
* Configuration data for an ADS we're proxying.
*/
struct _server_t_ {
@@ -105,14 +117,13 @@ struct _server_t_ {
char base[BASELEN];
char sid[SIDLEN];
char homeTemplate[MOUNTLEN];
- struct string homeAttr;
- struct string homeAttrLower;
unsigned char fingerprint[FINGERPRINTLEN];
char cabundle[MAXPATH];
BOOL plainLdap;
uint16_t port;
SSL_CTX *sslContext;
epoll_server_t con;
+ attr_map_t map;
};
#endif