diff options
author | Simon Rettberg | 2017-05-29 15:47:03 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-05-29 15:47:03 +0200 |
commit | bf9f3a690ead4aa59f5dbae744503e90793f770f (patch) | |
tree | 6e4d4870886ca271d7c2b345cdd672cdee3214ce /types.h | |
parent | Add comment about tinyldap sources (diff) | |
download | ldadp-bf9f3a690ead4aa59f5dbae744503e90793f770f.tar.gz ldadp-bf9f3a690ead4aa59f5dbae744503e90793f770f.tar.xz ldadp-bf9f3a690ead4aa59f5dbae744503e90793f770f.zip |
Support specifying custom attribute names for schema
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 |