[1166] | 1 | # =========================================================================
|
---|
| 2 | #
|
---|
| 3 | # Schema Extension for Cygwin User and Group auxiliary classes
|
---|
| 4 | #
|
---|
| 5 | # Extend your Active Directory using
|
---|
| 6 | #
|
---|
| 7 | # ldifde -i -f <path>\<this>.ldif -b <username> <domain> <password> \
|
---|
| 8 | # -k -c "CN=schema,CN=Configuration,DC=X" #schemaNamingContext
|
---|
| 9 | #
|
---|
| 10 | # Remember:
|
---|
| 11 | # - you have to be schema admin for your active directory
|
---|
| 12 | # - you have to run the above command directly from your schema master
|
---|
| 13 | #
|
---|
| 14 | # For further information read
|
---|
| 15 | # http://technet.microsoft.com/en-us/magazine/2008.05.schema.aspx
|
---|
| 16 | #
|
---|
| 17 | # ----------------------------------------------------------------------
|
---|
| 18 | #
|
---|
| 19 | # Explanation for the OIDs:
|
---|
| 20 | #
|
---|
| 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
|
---|
| 29 | # object class.
|
---|
| 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.
|
---|
| 33 | #
|
---|
| 34 | # ----------------------------------------------------------------------
|
---|
| 35 |
|
---|
| 36 | # Attribute definition for cygwinHome
|
---|
| 37 |
|
---|
| 38 | dn: CN=cygwin-Home,CN=Schema,CN=Configuration,DC=X
|
---|
| 39 | changetype: ntdsschemaadd
|
---|
| 40 | objectClass: top
|
---|
| 41 | objectClass: attributeSchema
|
---|
| 42 | cn: cygwin-Home
|
---|
| 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
|
---|
| 47 | isSingleValued: TRUE
|
---|
| 48 | adminDisplayName: cygwin-Home
|
---|
| 49 | adminDescription: cygwin-Home
|
---|
| 50 | oMSyntax: 64
|
---|
| 51 | searchFlags: 1
|
---|
| 52 | lDAPDisplayName: cygwinHome
|
---|
| 53 | systemOnly: FALSE
|
---|
| 54 |
|
---|
| 55 | dn:
|
---|
| 56 | changetype: modify
|
---|
| 57 | add: schemaUpdateNow
|
---|
| 58 | schemaUpdateNow: 1
|
---|
| 59 | -
|
---|
| 60 |
|
---|
| 61 | # Attribute definition for cygwinShell
|
---|
| 62 |
|
---|
| 63 | dn: CN=cygwin-Shell,CN=Schema,CN=Configuration,DC=X
|
---|
| 64 | changetype: ntdsschemaadd
|
---|
| 65 | objectClass: top
|
---|
| 66 | objectClass: attributeSchema
|
---|
| 67 | cn: cygwin-Shell
|
---|
| 68 | attributeID: 1.3.6.1.4.1.2312.15.2.2
|
---|
| 69 | attributeSyntax: 2.5.5.12
|
---|
| 70 | isSingleValued: TRUE
|
---|
| 71 | adminDisplayName: cygwin-Shell
|
---|
| 72 | adminDescription: cygwin-Shell
|
---|
| 73 | oMSyntax: 64
|
---|
| 74 | searchFlags: 1
|
---|
| 75 | lDAPDisplayName: cygwinShell
|
---|
| 76 | systemOnly: FALSE
|
---|
| 77 |
|
---|
| 78 | dn:
|
---|
| 79 | changetype: modify
|
---|
| 80 | add: schemaUpdateNow
|
---|
| 81 | schemaUpdateNow: 1
|
---|
| 82 | -
|
---|
| 83 |
|
---|
| 84 | # Attribute definition for cygwinGecos
|
---|
| 85 |
|
---|
| 86 | dn: CN=cygwin-Gecos,CN=Schema,CN=Configuration,DC=X
|
---|
| 87 | changetype: ntdsschemaadd
|
---|
| 88 | objectClass: top
|
---|
| 89 | objectClass: attributeSchema
|
---|
| 90 | cn: cygwin-Gecos
|
---|
| 91 | attributeID: 1.3.6.1.4.1.2312.15.2.3
|
---|
| 92 | attributeSyntax: 2.5.5.12
|
---|
| 93 | isSingleValued: TRUE
|
---|
| 94 | adminDisplayName: cygwin-Gecos
|
---|
| 95 | adminDescription: cygwin-Gecos
|
---|
| 96 | oMSyntax: 64
|
---|
| 97 | searchFlags: 1
|
---|
| 98 | lDAPDisplayName: cygwinGecos
|
---|
| 99 | systemOnly: FALSE
|
---|
| 100 |
|
---|
| 101 | dn:
|
---|
| 102 | changetype: modify
|
---|
| 103 | add: schemaUpdateNow
|
---|
| 104 | schemaUpdateNow: 1
|
---|
| 105 | -
|
---|
| 106 |
|
---|
| 107 | # Attribute definition for cygwinFstab
|
---|
| 108 |
|
---|
| 109 | dn: CN=cygwin-Fstab,CN=Schema,CN=Configuration,DC=X
|
---|
| 110 | changetype: ntdsschemaadd
|
---|
| 111 | objectClass: top
|
---|
| 112 | objectClass: attributeSchema
|
---|
| 113 | cn: cygwin-Fstab
|
---|
| 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
|
---|
| 119 | oMSyntax: 64
|
---|
| 120 | searchFlags: 1
|
---|
| 121 | lDAPDisplayName: cygwinFstab
|
---|
| 122 | systemOnly: FALSE
|
---|
| 123 |
|
---|
| 124 | dn:
|
---|
| 125 | changetype: modify
|
---|
| 126 | add: schemaUpdateNow
|
---|
| 127 | schemaUpdateNow: 1
|
---|
| 128 | -
|
---|
| 129 |
|
---|
| 130 | # Attribute definition for cygwinUnixUid
|
---|
| 131 |
|
---|
| 132 | dn: CN=cygwin-UnixUid,CN=Schema,CN=Configuration,DC=X
|
---|
| 133 | changetype: ntdsschemaadd
|
---|
| 134 | objectClass: top
|
---|
| 135 | objectClass: attributeSchema
|
---|
| 136 | cn: cygwin-UnixUid
|
---|
| 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
|
---|
| 140 | isSingleValued: TRUE
|
---|
| 141 | adminDisplayName: cygwin-UnixUid
|
---|
| 142 | adminDescription: cygwin-UnixUid
|
---|
| 143 | oMSyntax: 2
|
---|
| 144 | searchFlags: 1
|
---|
| 145 | lDAPDisplayName: cygwinUnixUid
|
---|
| 146 | systemOnly: FALSE
|
---|
| 147 |
|
---|
| 148 | dn:
|
---|
| 149 | changetype: modify
|
---|
| 150 | add: schemaUpdateNow
|
---|
| 151 | schemaUpdateNow: 1
|
---|
| 152 | -
|
---|
| 153 |
|
---|
| 154 | # Attribute definition for cygwinUnixGid
|
---|
| 155 |
|
---|
| 156 | dn: CN=cygwin-UnixGid,CN=Schema,CN=Configuration,DC=X
|
---|
| 157 | changetype: ntdsschemaadd
|
---|
| 158 | objectClass: top
|
---|
| 159 | objectClass: attributeSchema
|
---|
| 160 | cn: cygwin-UnixGid
|
---|
| 161 | attributeID: 1.3.6.1.4.1.2312.15.2.6
|
---|
| 162 | attributeSyntax: 2.5.5.9
|
---|
| 163 | isSingleValued: TRUE
|
---|
| 164 | adminDisplayName: cygwin-UnixGid
|
---|
| 165 | adminDescription: cygwin-UnixGid
|
---|
| 166 | oMSyntax: 2
|
---|
| 167 | searchFlags: 1
|
---|
| 168 | lDAPDisplayName: cygwinUnixGid
|
---|
| 169 | systemOnly: FALSE
|
---|
| 170 |
|
---|
| 171 | dn:
|
---|
| 172 | changetype: modify
|
---|
| 173 | add: schemaUpdateNow
|
---|
| 174 | schemaUpdateNow: 1
|
---|
| 175 | -
|
---|
| 176 |
|
---|
| 177 | # cygwin-User auxiliary class
|
---|
| 178 |
|
---|
| 179 | dn: CN=cygwin-User,CN=Schema,CN=Configuration,DC=X
|
---|
| 180 | changetype: ntdsschemaadd
|
---|
| 181 | objectClass: top
|
---|
| 182 | objectClass: classSchema
|
---|
| 183 | cn: cygwin-User
|
---|
| 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
|
---|
| 190 | rDNAttID: cn
|
---|
| 191 | adminDisplayName: cygwin-User
|
---|
| 192 | adminDescription: cygwin-User
|
---|
| 193 | objectClassCategory: 3
|
---|
| 194 | lDAPDisplayName: cygwinUser
|
---|
| 195 | name: cygwin-User
|
---|
| 196 | systemOnly: FALSE
|
---|
| 197 |
|
---|
| 198 | dn:
|
---|
| 199 | changetype: modify
|
---|
| 200 | add: schemaUpdateNow
|
---|
| 201 | schemaUpdateNow: 1
|
---|
| 202 | -
|
---|
| 203 |
|
---|
| 204 | # cygwin-Group auxiliary class
|
---|
| 205 |
|
---|
| 206 | dn: CN=cygwin-Group,CN=Schema,CN=Configuration,DC=X
|
---|
| 207 | changetype: ntdsschemaadd
|
---|
| 208 | objectClass: top
|
---|
| 209 | objectClass: classSchema
|
---|
| 210 | cn: cygwin-Group
|
---|
| 211 | governsID: 1.3.6.1.4.1.2312.15.1.2
|
---|
| 212 | mayContain: cygwinUnixGid
|
---|
| 213 | rDNAttID: cn
|
---|
| 214 | adminDisplayName: cygwin-Group
|
---|
| 215 | adminDescription: cygwin-Group
|
---|
| 216 | objectClassCategory: 3
|
---|
| 217 | lDAPDisplayName: cygwinGroup
|
---|
| 218 | name: cygwin-Group
|
---|
| 219 | systemOnly: FALSE
|
---|
| 220 |
|
---|
| 221 | dn:
|
---|
| 222 | changetype: modify
|
---|
| 223 | add: schemaUpdateNow
|
---|
| 224 | schemaUpdateNow: 1
|
---|
| 225 | -
|
---|
| 226 |
|
---|
| 227 | # Attach cygwin-User to User
|
---|
| 228 |
|
---|
| 229 | dn: CN=User,CN=Schema,CN=Configuration,DC=X
|
---|
| 230 | changetype: ntdsschemamodify
|
---|
| 231 | add: auxiliaryClass
|
---|
| 232 | auxiliaryClass: cygwinUser
|
---|
| 233 | -
|
---|
| 234 |
|
---|
| 235 | dn:
|
---|
| 236 | changetype: modify
|
---|
| 237 | add: schemaUpdateNow
|
---|
| 238 | schemaUpdateNow: 1
|
---|
| 239 | -
|
---|
| 240 |
|
---|
| 241 | # Attach cygwin-Group to Group
|
---|
| 242 |
|
---|
| 243 | dn: CN=Group,CN=Schema,CN=Configuration,DC=X
|
---|
| 244 | changetype: ntdsschemamodify
|
---|
| 245 | add: auxiliaryClass
|
---|
| 246 | auxiliaryClass: cygwinGroup
|
---|
| 247 | -
|
---|
| 248 |
|
---|
| 249 | dn:
|
---|
| 250 | changetype: modify
|
---|
| 251 | add: schemaUpdateNow
|
---|
| 252 | schemaUpdateNow: 1
|
---|
| 253 | -
|
---|