Fix bug #9098 - winbind does not refresh kerberos tickets.
[Samba/id10ts.git] / source3 / passdb / pdb_ldap_schema.h
blob947af183b180c832f257af13f1f9ede3d829060f
1 /*
2 Unix SMB/CIFS mplementation.
3 LDAP protocol helper functions for SAMBA
4 Copyright (C) Gerald Carter 2001-2003
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _PASSDB_PDB_LDAP_SCHEMA_H_
22 #define _PASSDB_PDB_LDAP_SCHEMA_H_
24 /* Schema versions */
25 #define SCHEMAVER_SAMBAACCOUNT 1 /* Samba 2.2 */
26 #define SCHEMAVER_SAMBASAMACCOUNT 2 /* Samba 3.0 */
28 /* objectclass names */
30 #define LDAP_OBJ_SAMBASAMACCOUNT "sambaSamAccount"
31 #define LDAP_OBJ_GROUPMAP "sambaGroupMapping"
32 #define LDAP_OBJ_DOMINFO "sambaDomain"
33 #define LDAP_OBJ_IDPOOL "sambaUnixIdPool"
34 #define LDAP_OBJ_IDMAP_ENTRY "sambaIdmapEntry"
35 #define LDAP_OBJ_SID_ENTRY "sambaSidEntry"
36 #define LDAP_OBJ_TRUST_PASSWORD "sambaTrustPassword"
37 #define LDAP_OBJ_TRUSTDOM_PASSWORD "sambaTrustedDomainPassword"
38 #define LDAP_OBJ_TRUSTED_DOMAIN "sambaTrustedDomain"
40 #define LDAP_OBJ_ACCOUNT "account"
41 #define LDAP_OBJ_POSIXACCOUNT "posixAccount"
42 #define LDAP_OBJ_POSIXGROUP "posixGroup"
43 #define LDAP_OBJ_OU "organizationalUnit"
45 /* some generic attributes that get reused a lot */
47 #define LDAP_ATTRIBUTE_SID "sambaSID"
48 #define LDAP_ATTRIBUTE_UIDNUMBER "uidNumber"
49 #define LDAP_ATTRIBUTE_GIDNUMBER "gidNumber"
50 #define LDAP_ATTRIBUTE_SID_LIST "sambaSIDList"
52 /* attribute map table indexes */
54 #define LDAP_ATTR_LIST_END 0
55 #define LDAP_ATTR_UID 1
56 #define LDAP_ATTR_UIDNUMBER 2
57 #define LDAP_ATTR_GIDNUMBER 3
58 #define LDAP_ATTR_UNIX_HOME 4
59 #define LDAP_ATTR_PWD_LAST_SET 5
60 #define LDAP_ATTR_PWD_CAN_CHANGE 6
61 #define LDAP_ATTR_PWD_MUST_CHANGE 7
62 #define LDAP_ATTR_LOGON_TIME 8
63 #define LDAP_ATTR_LOGOFF_TIME 9
64 #define LDAP_ATTR_KICKOFF_TIME 10
65 #define LDAP_ATTR_CN 11
66 #define LDAP_ATTR_DISPLAY_NAME 12
67 #define LDAP_ATTR_HOME_PATH 13
68 #define LDAP_ATTR_LOGON_SCRIPT 14
69 #define LDAP_ATTR_PROFILE_PATH 15
70 #define LDAP_ATTR_DESC 16
71 #define LDAP_ATTR_USER_WKS 17
72 #define LDAP_ATTR_USER_SID 18
73 #define LDAP_ATTR_USER_RID 18
74 #define LDAP_ATTR_PRIMARY_GROUP_SID 19
75 #define LDAP_ATTR_PRIMARY_GROUP_RID 20
76 #define LDAP_ATTR_LMPW 21
77 #define LDAP_ATTR_NTPW 22
78 #define LDAP_ATTR_DOMAIN 23
79 #define LDAP_ATTR_OBJCLASS 24
80 #define LDAP_ATTR_ACB_INFO 25
81 #define LDAP_ATTR_NEXT_USERRID 26
82 #define LDAP_ATTR_NEXT_GROUPRID 27
83 #define LDAP_ATTR_DOM_SID 28
84 #define LDAP_ATTR_HOME_DRIVE 29
85 #define LDAP_ATTR_GROUP_SID 30
86 #define LDAP_ATTR_GROUP_TYPE 31
87 #define LDAP_ATTR_SID 32
88 #define LDAP_ATTR_ALGORITHMIC_RID_BASE 33
89 #define LDAP_ATTR_NEXT_RID 34
90 #define LDAP_ATTR_BAD_PASSWORD_COUNT 35
91 #define LDAP_ATTR_LOGON_COUNT 36
92 #define LDAP_ATTR_MUNGED_DIAL 37
93 #define LDAP_ATTR_BAD_PASSWORD_TIME 38
94 #define LDAP_ATTR_PWD_HISTORY 39
95 #define LDAP_ATTR_SID_LIST 40
96 #define LDAP_ATTR_MOD_TIMESTAMP 41
97 #define LDAP_ATTR_LOGON_HOURS 42
98 #define LDAP_ATTR_TRUST_PASSWD_FLAGS 43
99 #define LDAP_ATTR_SN 44
102 typedef struct _attrib_map_entry {
103 int attrib;
104 const char *name;
105 } ATTRIB_MAP_ENTRY;
108 /* structures */
110 extern ATTRIB_MAP_ENTRY attrib_map_v30[];
111 extern ATTRIB_MAP_ENTRY attrib_map_to_delete_v30[];
112 extern ATTRIB_MAP_ENTRY dominfo_attr_list[];
113 extern ATTRIB_MAP_ENTRY groupmap_attr_list[];
114 extern ATTRIB_MAP_ENTRY groupmap_attr_list_to_delete[];
115 extern ATTRIB_MAP_ENTRY idpool_attr_list[];
116 extern ATTRIB_MAP_ENTRY sidmap_attr_list[];
117 extern ATTRIB_MAP_ENTRY trustpw_attr_list[];
119 /* The following definitions come from passdb/pdb_ldap_schema.c */
121 const char* get_attr_key2string( ATTRIB_MAP_ENTRY table[], int key );
122 const char** get_attr_list( TALLOC_CTX *mem_ctx, ATTRIB_MAP_ENTRY table[] );
124 #endif /* _PASSDB_PDB_LDAP_SCHEMA_H_ */