2 ## schema file for OpenLDAP 2.0.x
3 ## Schema for storing Samba's smbpasswd file in LDAP
4 ## OIDs are owned by the Samba Team
6 ## Prerequisite schemas - uid (cosine.schema)
7 ## - displayName (inetorgperson.schema)
9 ## 1.3.6.1.4.1.7165.2.1.x - attributetypes
10 ## 1.3.6.1.4.1.7165.2.2.x - objectclasses
16 attributetype ( 1.3.6.1.4.1.7165.2.1.1 NAME 'lmPassword'
17 DESC 'LanManager Passwd'
18 EQUALITY caseIgnoreIA5Match
19 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{32} SINGLE-VALUE )
21 attributetype ( 1.3.6.1.4.1.7165.2.1.2 NAME 'ntPassword'
23 EQUALITY caseIgnoreIA5Match
24 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{32} SINGLE-VALUE )
27 ## Account flags in string format ([UWDX ])
29 attributetype ( 1.3.6.1.4.1.7165.2.1.4 NAME 'acctFlags'
31 EQUALITY caseIgnoreIA5Match
32 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{16} SINGLE-VALUE )
35 ## Password timestamps & policies
37 attributetype ( 1.3.6.1.4.1.7165.2.1.3 NAME 'pwdLastSet'
40 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
42 attributetype ( 1.3.6.1.4.1.7165.2.1.5 NAME 'logonTime'
45 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
47 attributetype ( 1.3.6.1.4.1.7165.2.1.6 NAME 'logoffTime'
50 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
52 attributetype ( 1.3.6.1.4.1.7165.2.1.7 NAME 'kickoffTime'
55 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
57 attributetype ( 1.3.6.1.4.1.7165.2.1.8 NAME 'pwdCanChange'
58 DESC 'NT pwdCanChange'
60 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
62 attributetype ( 1.3.6.1.4.1.7165.2.1.9 NAME 'pwdMustChange'
63 DESC 'NT pwdMustChange'
65 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
70 attributetype ( 1.3.6.1.4.1.7165.2.1.10 NAME 'homeDrive'
72 EQUALITY caseIgnoreIA5Match
73 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{4} SINGLE-VALUE )
75 attributetype ( 1.3.6.1.4.1.7165.2.1.11 NAME 'scriptPath'
77 EQUALITY caseIgnoreIA5Match
78 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255} SINGLE-VALUE )
80 attributetype ( 1.3.6.1.4.1.7165.2.1.12 NAME 'profilePath'
82 EQUALITY caseIgnoreIA5Match
83 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255} SINGLE-VALUE )
85 attributetype ( 1.3.6.1.4.1.7165.2.1.13 NAME 'userWorkstations'
86 DESC 'userWorkstations'
87 EQUALITY caseIgnoreIA5Match
88 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255} SINGLE-VALUE )
90 attributetype ( 1.3.6.1.4.1.7165.2.1.17 NAME 'smbHome'
92 EQUALITY caseIgnoreIA5Match
93 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
95 attributetype ( 1.3.6.1.4.1.7165.2.1.18 NAME 'domain'
96 DESC 'Windows NT domain to which the user belongs'
97 EQUALITY caseIgnoreIA5Match
98 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{128} )
101 ## user and group RID
103 attributetype ( 1.3.6.1.4.1.7165.2.1.14 NAME 'rid'
105 EQUALITY integerMatch
106 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
108 attributetype ( 1.3.6.1.4.1.7165.2.1.15 NAME 'primaryGroupID'
110 EQUALITY integerMatch
111 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
114 ## group mapping attributes
116 attributetype ( 1.3.6.1.4.1.7165.2.1.19 NAME 'ntGroupType'
118 EQUALITY integerMatch
119 SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
121 attributetype ( 1.3.6.1.4.1.7165.2.1.20 NAME 'ntSid'
123 EQUALITY caseIgnoreIA5Match
124 SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{64} SINGLE-VALUE )
127 ## The smbPasswordEntry objectclass has been depreciated in favor of the
128 ## sambaAccount objectclass
130 #objectclass ( 1.3.6.1.4.1.7165.2.2.1 NAME 'smbPasswordEntry' SUP top AUXILIARY
131 # DESC 'Samba smbpasswd entry'
132 # MUST ( uid $ uidNumber )
133 # MAY ( lmPassword $ ntPassword $ pwdLastSet $ acctFlags ))
135 #objectclass ( 1.3.6.1.4.1.7165.2.2.2 NAME 'sambaAccount' SUP top STRUCTURAL
136 # DESC 'Samba Account'
138 # MAY ( cn $ lmPassword $ ntPassword $ pwdLastSet $ logonTime $
139 # logoffTime $ kickoffTime $ pwdCanChange $ pwdMustChange $ acctFlags $
140 # displayName $ smbHome $ homeDrive $ scriptPath $ profilePath $
141 # description $ userWorkstations $ primaryGroupID $ domain ))
143 ## The X.500 data model (and therefore LDAPv3) says that each entry can
144 ## only have one structural objectclass. OpenLDAP 2.0 does not enforce
145 ## this currently but will in v2.1
147 objectclass ( 1.3.6.1.4.1.7165.2.2.3 NAME 'sambaAccount' SUP top AUXILIARY
148 DESC 'Samba Auxilary Account'
150 MAY ( cn $ lmPassword $ ntPassword $ pwdLastSet $ logonTime $
151 logoffTime $ kickoffTime $ pwdCanChange $ pwdMustChange $ acctFlags $
152 displayName $ smbHome $ homeDrive $ scriptPath $ profilePath $
153 description $ userWorkstations $ primaryGroupID $ domain ))
155 ############################################################################
157 ## Please note that this schema is really experimental and might
158 ## change before the 3.0 release.
160 ############################################################################
162 objectclass ( 1.3.6.1.4.1.7165.2.2.4 NAME 'sambaGroupMapping' SUP top AUXILIARY
163 DESC 'Samba Group Mapping'
164 MUST ( gidNumber $ ntSid $ ntGroupType )
165 MAY ( displayName $ description ))
168 ## Used for Winbind experimentation
170 #objectclass ( 1.3.6.1.4.1.7165.1.2.2.3 NAME 'uidPool' SUP top AUXILIARY
171 # DESC 'Pool for allocating UNIX uids'
172 # MUST ( uidNumber ) )
174 #objectclass ( 1.3.6.1.4.1.7165.1.2.2.4 NAME 'gidPool' SUP top AUXILIARY
175 # DESC 'Pool for allocating UNIX gids'
176 # MUST ( gidNumber ) )