From bf9f3a690ead4aa59f5dbae744503e90793f770f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 29 May 2017 15:47:03 +0200 Subject: Support specifying custom attribute names for schema --- types.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'types.h') diff --git a/types.h b/types.h index 57f790f..19477fb 100644 --- a/types.h +++ b/types.h @@ -92,6 +92,18 @@ struct _epoll_server_t_ { server_t *serverData; }; +/** + * 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. */ @@ -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 -- cgit v1.2.3-55-g7522