summaryrefslogtreecommitdiffstats
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/types.h b/types.h
index 4030902..94e2ddd 100644
--- a/types.h
+++ b/types.h
@@ -104,6 +104,13 @@ typedef struct {
struct string uidnumber; // AD: objectSid
} attr_map_t;
+struct hashmap;
+struct uidmap {
+ const char *fileName;
+ struct hashmap *nameToNum;
+ struct hashmap *numToName;
+};
+
/**
* Configuration data for an ADS we're proxying.
*/
@@ -121,10 +128,12 @@ struct _server_t_ {
char cabundle[MAXPATH];
BOOL plainLdap;
BOOL fixNumeric; // prefix numeric account names with an 's'
+ BOOL genUidNumber; // generate uidNumber attribute locally (and keep track)
uint16_t port;
SSL_CTX *sslContext;
epoll_server_t con;
attr_map_t map;
+ struct uidmap uidmap;
};
#endif