From 8b8ed36516e9a40df6ac9ac46ab355fee0e5b5f0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 14 Nov 2018 14:37:31 +0100 Subject: Support generating uidNumbers on proxy --- types.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'types.h') 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 -- cgit v1.2.3-55-g7522