summaryrefslogtreecommitdiffstats
path: root/types.h
diff options
context:
space:
mode:
authorSimon Rettberg2017-05-29 15:47:03 +0200
committerSimon Rettberg2017-05-29 15:47:03 +0200
commitbf9f3a690ead4aa59f5dbae744503e90793f770f (patch)
tree6e4d4870886ca271d7c2b345cdd672cdee3214ce /types.h
parentAdd comment about tinyldap sources (diff)
downloadldadp-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.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