| 1 |
# |
| 2 |
# Active Directory Schema for sudo configuration (sudoers) |
| 3 |
# |
| 4 |
# To extend your Active Directory schema, run one of the following command |
| 5 |
# on your Windows DC (default port - Active Directory): |
| 6 |
# |
| 7 |
# ldifde -i -f schema.ActiveDirectory -c "CN=Schema,CN=Configuration,DC=X" "#schemaNamingContext" |
| 8 |
# |
| 9 |
# or on your Windows DC if using another port (with Active Directory LightWeight Directory Services / ADAM-Active Directory Application Mode) |
| 10 |
# Port 50000 by example (or any other port specified when defining the ADLDS/ADAM instance |
| 11 |
# |
| 12 |
# ldifde -i -f schema.ActiveDirectory -t 50000 -c "CN=Schema,CN=Configuration,DC=X" #schemaNamingContext |
| 13 |
# |
| 14 |
# or |
| 15 |
# |
| 16 |
# ldifde -i -f schema.ActiveDirectory -s server:port -c "CN=Schema,CN=Configuration,DC=X" #schemaNamingContext |
| 17 |
# |
| 18 |
# Can add username domain and password |
| 19 |
# |
| 20 |
# -b username domain password |
| 21 |
# |
| 22 |
# Can create Log file in current or any directory |
| 23 |
# |
| 24 |
# -j . |
| 25 |
# |
| 26 |
|
| 27 |
dn: CN=sudoUser,CN=Schema,CN=Configuration,DC=X |
| 28 |
changetype: add |
| 29 |
objectClass: top |
| 30 |
objectClass: attributeSchema |
| 31 |
cn: sudoUser |
| 32 |
distinguishedName: CN=sudoUser,CN=Schema,CN=Configuration,DC=X |
| 33 |
instanceType: 4 |
| 34 |
attributeID: 1.3.6.1.4.1.15953.9.1.1 |
| 35 |
attributeSyntax: 2.5.5.5 |
| 36 |
isSingleValued: FALSE |
| 37 |
showInAdvancedViewOnly: TRUE |
| 38 |
adminDisplayName: sudoUser |
| 39 |
adminDescription: User(s) who may run sudo |
| 40 |
oMSyntax: 22 |
| 41 |
searchFlags: 1 |
| 42 |
lDAPDisplayName: sudoUser |
| 43 |
name: sudoUser |
| 44 |
schemaIDGUID:: JrGcaKpnoU+0s+HgeFjAbg== |
| 45 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 46 |
|
| 47 |
dn: CN=sudoHost,CN=Schema,CN=Configuration,DC=X |
| 48 |
changetype: add |
| 49 |
objectClass: top |
| 50 |
objectClass: attributeSchema |
| 51 |
cn: sudoHost |
| 52 |
distinguishedName: CN=sudoHost,CN=Schema,CN=Configuration,DC=X |
| 53 |
instanceType: 4 |
| 54 |
attributeID: 1.3.6.1.4.1.15953.9.1.2 |
| 55 |
attributeSyntax: 2.5.5.5 |
| 56 |
isSingleValued: FALSE |
| 57 |
showInAdvancedViewOnly: TRUE |
| 58 |
adminDisplayName: sudoHost |
| 59 |
adminDescription: Host(s) who may run sudo |
| 60 |
oMSyntax: 22 |
| 61 |
lDAPDisplayName: sudoHost |
| 62 |
name: sudoHost |
| 63 |
schemaIDGUID:: d0TTjg+Y6U28g/Y+ns2k4w== |
| 64 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 65 |
|
| 66 |
dn: CN=sudoCommand,CN=Schema,CN=Configuration,DC=X |
| 67 |
changetype: add |
| 68 |
objectClass: top |
| 69 |
objectClass: attributeSchema |
| 70 |
cn: sudoCommand |
| 71 |
distinguishedName: CN=sudoCommand,CN=Schema,CN=Configuration,DC=X |
| 72 |
instanceType: 4 |
| 73 |
attributeID: 1.3.6.1.4.1.15953.9.1.3 |
| 74 |
attributeSyntax: 2.5.5.5 |
| 75 |
isSingleValued: FALSE |
| 76 |
showInAdvancedViewOnly: TRUE |
| 77 |
adminDisplayName: sudoCommand |
| 78 |
adminDescription: Command(s) to be executed by sudo |
| 79 |
oMSyntax: 22 |
| 80 |
lDAPDisplayName: sudoCommand |
| 81 |
name: sudoCommand |
| 82 |
schemaIDGUID:: D6QR4P5UyUen3RGYJCHCPg== |
| 83 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 84 |
|
| 85 |
dn: CN=sudoRunAs,CN=Schema,CN=Configuration,DC=X |
| 86 |
changetype: add |
| 87 |
objectClass: top |
| 88 |
objectClass: attributeSchema |
| 89 |
cn: sudoRunAs |
| 90 |
distinguishedName: CN=sudoRunAs,CN=Schema,CN=Configuration,DC=X |
| 91 |
instanceType: 4 |
| 92 |
attributeID: 1.3.6.1.4.1.15953.9.1.4 |
| 93 |
attributeSyntax: 2.5.5.5 |
| 94 |
isSingleValued: FALSE |
| 95 |
showInAdvancedViewOnly: TRUE |
| 96 |
adminDisplayName: sudoRunAs |
| 97 |
adminDescription: User(s) impersonated by sudo (deprecated) |
| 98 |
oMSyntax: 22 |
| 99 |
lDAPDisplayName: sudoRunAs |
| 100 |
name: sudoRunAs |
| 101 |
schemaIDGUID:: CP98mCQTyUKKxGrQeM80hQ== |
| 102 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 103 |
|
| 104 |
dn: CN=sudoOption,CN=Schema,CN=Configuration,DC=X |
| 105 |
changetype: add |
| 106 |
objectClass: top |
| 107 |
objectClass: attributeSchema |
| 108 |
cn: sudoOption |
| 109 |
distinguishedName: CN=sudoOption,CN=Schema,CN=Configuration,DC=X |
| 110 |
instanceType: 4 |
| 111 |
attributeID: 1.3.6.1.4.1.15953.9.1.5 |
| 112 |
attributeSyntax: 2.5.5.5 |
| 113 |
isSingleValued: FALSE |
| 114 |
showInAdvancedViewOnly: TRUE |
| 115 |
adminDisplayName: sudoOption |
| 116 |
adminDescription: Option(s) followed by sudo |
| 117 |
oMSyntax: 22 |
| 118 |
lDAPDisplayName: sudoOption |
| 119 |
name: sudoOption |
| 120 |
schemaIDGUID:: ojaPzBBlAEmsvrHxQctLnA== |
| 121 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 122 |
|
| 123 |
dn: CN=sudoRunAsUser,CN=Schema,CN=Configuration,DC=X |
| 124 |
changetype: add |
| 125 |
objectClass: top |
| 126 |
objectClass: attributeSchema |
| 127 |
cn: sudoRunAsUser |
| 128 |
distinguishedName: CN=sudoRunAsUser,CN=Schema,CN=Configuration,DC=X |
| 129 |
instanceType: 4 |
| 130 |
attributeID: 1.3.6.1.4.1.15953.9.1.6 |
| 131 |
attributeSyntax: 2.5.5.5 |
| 132 |
isSingleValued: FALSE |
| 133 |
showInAdvancedViewOnly: TRUE |
| 134 |
adminDisplayName: sudoRunAsUser |
| 135 |
adminDescription: User(s) impersonated by sudo |
| 136 |
oMSyntax: 22 |
| 137 |
lDAPDisplayName: sudoRunAsUser |
| 138 |
name: sudoRunAsUser |
| 139 |
schemaIDGUID:: 9C52yPYd3RG3jMR2VtiVkw== |
| 140 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 141 |
|
| 142 |
dn: CN=sudoRunAsGroup,CN=Schema,CN=Configuration,DC=X |
| 143 |
changetype: add |
| 144 |
objectClass: top |
| 145 |
objectClass: attributeSchema |
| 146 |
cn: sudoRunAsGroup |
| 147 |
distinguishedName: CN=sudoRunAsGroup,CN=Schema,CN=Configuration,DC=X |
| 148 |
instanceType: 4 |
| 149 |
attributeID: 1.3.6.1.4.1.15953.9.1.7 |
| 150 |
attributeSyntax: 2.5.5.5 |
| 151 |
isSingleValued: FALSE |
| 152 |
showInAdvancedViewOnly: TRUE |
| 153 |
adminDisplayName: sudoRunAsGroup |
| 154 |
adminDescription: Groups(s) impersonated by sudo |
| 155 |
oMSyntax: 22 |
| 156 |
lDAPDisplayName: sudoRunAsGroup |
| 157 |
name: sudoRunAsGroup |
| 158 |
schemaIDGUID:: xJhSt/Yd3RGJPTB1VtiVkw== |
| 159 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 160 |
|
| 161 |
dn: CN=sudoNotBefore,CN=Schema,CN=Configuration,DC=X |
| 162 |
changetype: add |
| 163 |
objectClass: top |
| 164 |
objectClass: attributeSchema |
| 165 |
cn: sudoNotBefore |
| 166 |
distinguishedName: CN=sudoNotBefore,CN=Schema,CN=Configuration,DC=X |
| 167 |
instanceType: 4 |
| 168 |
attributeID: 1.3.6.1.4.1.15953.9.1.8 |
| 169 |
attributeSyntax: 2.5.5.11 |
| 170 |
isSingleValued: TRUE |
| 171 |
showInAdvancedViewOnly: TRUE |
| 172 |
adminDisplayName: sudoNotBefore |
| 173 |
adminDescription: Start of time interval for which the entry is valid |
| 174 |
oMSyntax: 24 |
| 175 |
lDAPDisplayName: sudoNotBefore |
| 176 |
name: sudoNotBefore |
| 177 |
schemaIDGUID:: dm1HnRfY4RGf4gopYYhwmw== |
| 178 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 179 |
|
| 180 |
dn: CN=sudoNotAfter,CN=Schema,CN=Configuration,DC=X |
| 181 |
changetype: add |
| 182 |
objectClass: top |
| 183 |
objectClass: attributeSchema |
| 184 |
cn: sudoNotAfter |
| 185 |
distinguishedName: CN=sudoNotAfter,CN=Schema,CN=Configuration,DC=X |
| 186 |
instanceType: 4 |
| 187 |
attributeID: 1.3.6.1.4.1.15953.9.1.9 |
| 188 |
attributeSyntax: 2.5.5.11 |
| 189 |
isSingleValued: TRUE |
| 190 |
showInAdvancedViewOnly: TRUE |
| 191 |
adminDisplayName: sudoNotAfter |
| 192 |
adminDescription: End of time interval for which the entry is valid |
| 193 |
oMSyntax: 24 |
| 194 |
lDAPDisplayName: sudoNotAfter |
| 195 |
name: sudoNotAfter |
| 196 |
schemaIDGUID:: OAr/pBfY4RG9dBIpYYhwmw== |
| 197 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 198 |
|
| 199 |
dn: CN=sudoOrder,CN=Schema,CN=Configuration,DC=X |
| 200 |
changetype: add |
| 201 |
objectClass: top |
| 202 |
objectClass: attributeSchema |
| 203 |
cn: sudoOrder |
| 204 |
distinguishedName: CN=sudoOrder,CN=Schema,CN=Configuration,DC=X |
| 205 |
instanceType: 4 |
| 206 |
attributeID: 1.3.6.1.4.1.15953.9.1.10 |
| 207 |
attributeSyntax: 2.5.5.9 |
| 208 |
isSingleValued: TRUE |
| 209 |
showInAdvancedViewOnly: TRUE |
| 210 |
adminDisplayName: sudoOrder |
| 211 |
adminDescription: an integer to order the sudoRole entries |
| 212 |
oMSyntax: 2 |
| 213 |
lDAPDisplayName: sudoOrder |
| 214 |
name: sudoOrder |
| 215 |
schemaIDGUID:: 0J8yrRfY4RGIYBUpYYhwmw== |
| 216 |
objectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=X |
| 217 |
|
| 218 |
dn: |
| 219 |
changetype: modify |
| 220 |
add: schemaUpdateNow |
| 221 |
schemaUpdateNow: 1 |
| 222 |
- |
| 223 |
|
| 224 |
dn: CN=sudoRole,CN=Schema,CN=Configuration,DC=X |
| 225 |
changetype: add |
| 226 |
objectClass: top |
| 227 |
objectClass: classSchema |
| 228 |
cn: sudoRole |
| 229 |
distinguishedName: CN=sudoRole,CN=Schema,CN=Configuration,DC=X |
| 230 |
instanceType: 4 |
| 231 |
possSuperiors: container |
| 232 |
possSuperiors: top |
| 233 |
subClassOf: top |
| 234 |
governsID: 1.3.6.1.4.1.15953.9.2.1 |
| 235 |
mayContain: sudoCommand |
| 236 |
mayContain: sudoHost |
| 237 |
mayContain: sudoOption |
| 238 |
mayContain: sudoRunAs |
| 239 |
mayContain: sudoRunAsUser |
| 240 |
mayContain: sudoRunAsGroup |
| 241 |
mayContain: sudoUser |
| 242 |
mayContain: sudoNotBefore |
| 243 |
mayContain: sudoNotAfter |
| 244 |
mayContain: sudoOrder |
| 245 |
rDNAttID: cn |
| 246 |
showInAdvancedViewOnly: FALSE |
| 247 |
adminDisplayName: sudoRole |
| 248 |
adminDescription: Sudoer Entries |
| 249 |
objectClassCategory: 1 |
| 250 |
lDAPDisplayName: sudoRole |
| 251 |
name: sudoRole |
| 252 |
schemaIDGUID:: SQn432lnZ0+ukbdh3+gN3w== |
| 253 |
systemOnly: FALSE |
| 254 |
objectCategory: CN=Class-Schema,CN=Schema,CN=Configuration,DC=X |
| 255 |
defaultObjectCategory: CN=sudoRole,CN=Schema,CN=Configuration,DC=X |