1 # =========================================================================
3 # Schema Extension for Cygwin User and Group auxiliary classes
5 # Extend your Active Directory using
7 # ldifde -i -f <path>\<this>.ldif -b <username> <domain> <password> \
8 # -k -c "CN=schema,CN=Configuration,DC=X" #schemaNamingContext
11 # - you have to be schema admin for your active directory
12 # - you have to run the above command directly from your schema master
14 # For further information read
15 # http://technet.microsoft.com/en-us/magazine/2008.05.schema.aspx
17 # ----------------------------------------------------------------------
19 # Explanation for the OIDs:
21 # Value Meaning Description
22 # 1 ISO Identifies the root authority.
23 # 3 IANA Group designation assigned by ISO.
24 # 6.1.4.1.2312 Red Hat Organization assigned by IANA.
25 # 15 Cygwin Assigned by Organization.
26 # Y Object Type Number defining the different object type
27 # (category) such as classSchema or
28 # attributeSchema. For example, 5 defines
30 # Z Object Number identifying a particular object
31 # within the category. For example, the user
32 # class has the number 9 assigned to it.
34 # ----------------------------------------------------------------------
36 # Attribute definition for cygwinHome
38 dn: CN=cygwin
-Home
,CN=Schema
,CN=Configuration
,DC=X
39 changetype: ntdsschemaadd
41 objectClass: attributeSchema
43 attributeID
: 1.3.6.1.4.1.2312.15.2.1
44 # attributeSyntax 2.5.5.12 is String(Unicode) with oMSyntax == 64
45 # see http://technet.microsoft.com/en-us/library/cc961740.aspx
46 attributeSyntax
: 2.5.5.12
48 adminDisplayName
: cygwin
-Home
49 adminDescription
: cygwin
-Home
52 lDAPDisplayName
: cygwinHome
61 # Attribute definition for cygwinShell
63 dn: CN=cygwin
-Shell
,CN=Schema
,CN=Configuration
,DC=X
64 changetype: ntdsschemaadd
66 objectClass: attributeSchema
68 attributeID
: 1.3.6.1.4.1.2312.15.2.2
69 attributeSyntax
: 2.5.5.12
71 adminDisplayName
: cygwin
-Shell
72 adminDescription
: cygwin
-Shell
75 lDAPDisplayName
: cygwinShell
84 # Attribute definition for cygwinGecos
86 dn: CN=cygwin
-Gecos
,CN=Schema
,CN=Configuration
,DC=X
87 changetype: ntdsschemaadd
89 objectClass: attributeSchema
91 attributeID
: 1.3.6.1.4.1.2312.15.2.3
92 attributeSyntax
: 2.5.5.12
94 adminDisplayName
: cygwin
-Gecos
95 adminDescription
: cygwin
-Gecos
98 lDAPDisplayName
: cygwinGecos
107 # Attribute definition for cygwinFstab
109 dn: CN=cygwin
-Fstab
,CN=Schema
,CN=Configuration
,DC=X
110 changetype: ntdsschemaadd
112 objectClass: attributeSchema
114 attributeID
: 1.3.6.1.4.1.2312.15.2.4
115 attributeSyntax
: 2.5.5.12
116 isSingleValued
: FALSE
117 adminDisplayName
: cygwin
-Fstab
118 adminDescription
: cygwin
-Fstab
121 lDAPDisplayName
: cygwinFstab
130 # Attribute definition for cygwinUnixUid
132 dn: CN=cygwin
-UnixUid
,CN=Schema
,CN=Configuration
,DC=X
133 changetype: ntdsschemaadd
135 objectClass: attributeSchema
137 attributeID
: 1.3.6.1.4.1.2312.15.2.5
138 # attributeSyntax 2.5.5.9 is Integer with oMSyntax == 2
139 attributeSyntax
: 2.5.5.9
141 adminDisplayName
: cygwin
-UnixUid
142 adminDescription
: cygwin
-UnixUid
145 lDAPDisplayName
: cygwinUnixUid
154 # Attribute definition for cygwinUnixGid
156 dn: CN=cygwin
-UnixGid
,CN=Schema
,CN=Configuration
,DC=X
157 changetype: ntdsschemaadd
159 objectClass: attributeSchema
161 attributeID
: 1.3.6.1.4.1.2312.15.2.6
162 attributeSyntax
: 2.5.5.9
164 adminDisplayName
: cygwin
-UnixGid
165 adminDescription
: cygwin
-UnixGid
168 lDAPDisplayName
: cygwinUnixGid
177 # cygwin-User auxiliary class
179 dn: CN=cygwin
-User
,CN=Schema
,CN=Configuration
,DC=X
180 changetype: ntdsschemaadd
182 objectClass: classSchema
184 governsID
: 1.3.6.1.4.1.2312.15.1.1
185 mayContain
: cygwinHome
186 mayContain
: cygwinShell
187 mayContain
: cygwinGecos
188 mayContain
: cygwinFstab
189 mayContain
: cygwinUnixUid
191 adminDisplayName
: cygwin
-User
192 adminDescription
: cygwin
-User
193 objectClassCategory
: 3
194 lDAPDisplayName
: cygwinUser
204 # cygwin-Group auxiliary class
206 dn: CN=cygwin
-Group
,CN=Schema
,CN=Configuration
,DC=X
207 changetype: ntdsschemaadd
209 objectClass: classSchema
211 governsID
: 1.3.6.1.4.1.2312.15.1.2
212 mayContain
: cygwinUnixGid
214 adminDisplayName
: cygwin
-Group
215 adminDescription
: cygwin
-Group
216 objectClassCategory
: 3
217 lDAPDisplayName
: cygwinGroup
227 # Attach cygwin-User to User
229 dn: CN=User
,CN=Schema
,CN=Configuration
,DC=X
230 changetype: ntdsschemamodify
232 auxiliaryClass
: cygwinUser
241 # Attach cygwin-Group to Group
243 dn: CN=Group
,CN=Schema
,CN=Configuration
,DC=X
244 changetype: ntdsschemamodify
246 auxiliaryClass
: cygwinGroup