]> git.sur5r.net Git - openldap/blob - contrib/slapd-modules/nssov/nss-ldapd/nslcd/attmap.h
nss overlay
[openldap] / contrib / slapd-modules / nssov / nss-ldapd / nslcd / attmap.h
1 /*
2    attmap.h - attribute mapping variables
3    This file is part of the nss-ldapd library.
4
5    Copyright (C) 2007, 2008 Arthur de Jong
6
7    This library is free software; you can redistribute it and/or
8    modify it under the terms of the GNU Lesser General Public
9    License as published by the Free Software Foundation; either
10    version 2.1 of the License, or (at your option) any later version.
11
12    This library is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    Lesser General Public License for more details.
16
17    You should have received a copy of the GNU Lesser General Public
18    License along with this library; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20    02110-1301 USA
21 */
22
23 #ifndef _ATTMAP_H
24 #define _ATTMAP_H 1
25
26 #include "cfg.h"
27
28 /* these are the attribute names per database */
29 extern const char *attmap_alias_cn;
30 extern const char *attmap_alias_rfc822MailMember;
31 extern const char *attmap_ether_cn;
32 extern const char *attmap_ether_macAddress;
33 extern const char *attmap_group_cn;
34 extern const char *attmap_group_userPassword;
35 extern const char *attmap_group_gidNumber;
36 extern const char *attmap_group_memberUid;
37 extern const char *attmap_group_uniqueMember;
38 /*extern const char *attmap_group_memberOf;*/
39 extern const char *attmap_host_cn;
40 extern const char *attmap_host_ipHostNumber;
41 extern const char *attmap_netgroup_cn;
42 extern const char *attmap_netgroup_nisNetgroupTriple;
43 extern const char *attmap_netgroup_memberNisNetgroup;
44 extern const char *attmap_network_cn;
45 extern const char *attmap_network_ipNetworkNumber;
46 /*extern const char *attmap_network_ipNetmaskNumber; */
47 extern const char *attmap_passwd_uid;
48 extern const char *attmap_passwd_userPassword;
49 extern const char *attmap_passwd_uidNumber;
50 extern const char *attmap_passwd_gidNumber;
51 extern const char *attmap_passwd_gecos;
52 extern const char *attmap_passwd_cn;
53 extern const char *attmap_passwd_homeDirectory;
54 extern const char *attmap_passwd_loginShell;
55 extern const char *attmap_protocol_cn;
56 extern const char *attmap_protocol_ipProtocolNumber;
57 extern const char *attmap_rpc_cn;
58 extern const char *attmap_rpc_oncRpcNumber;
59 extern const char *attmap_service_cn;
60 extern const char *attmap_service_ipServicePort;
61 extern const char *attmap_service_ipServiceProtocol;
62 extern const char *attmap_shadow_uid;
63 extern const char *attmap_shadow_userPassword;
64 extern const char *attmap_shadow_shadowLastChange;
65 extern const char *attmap_shadow_shadowMin;
66 extern const char *attmap_shadow_shadowMax;
67 extern const char *attmap_shadow_shadowWarning;
68 extern const char *attmap_shadow_shadowInactive;
69 extern const char *attmap_shadow_shadowExpire;
70 extern const char *attmap_shadow_shadowFlag;
71
72 /* return a reference to the map specific base variable */
73 const char **base_get_var(enum ldap_map_selector map);
74
75 /* return a reference to the map specific scope variable */
76 int *scope_get_var(enum ldap_map_selector map);
77
78 /* return a reference to the map specific filter variable */
79 const char **filter_get_var(enum ldap_map_selector map);
80
81 /* return a reference to the attribute mapping variable for the specified name
82    the name is the name after the attmap_... variables above with the
83    underscode replaced by a dot (e.g passwd.homeDirectory) */
84 const char **attmap_get_var(enum ldap_map_selector map,const char *name);
85
86 #endif /* not _ATTMAP_H */