Active Directory LDIF schema format
The ImageMaster schema in the LDIF format for import into Active Directory looks like this:
dn: CN=imageMasterRole,CN=Schema,CN=Configuration,DC=x
changetype: add
attributeID: 1.3.6.1.4.1.13261.2.1.1.9.1.1
attributeSyntax: 2.5.5.12
isSingleValued: FALSE
searchFlags: 0
lDAPDisplayName: imageMasterRole
adminDescription: ImageMaster tenant and role name
objectClass: attributeSchema
oMSyntax: 64
dn:
changetype: modify
replace: schemaupdatenow
schemaupdatenow: 1
-
dn: CN=imageMasterUser,CN=Schema,CN=Configuration,DC=x
changetype: add
governsID: 1.3.6.1.4.1.13261.2.1.1.9.1.0
lDAPDisplayName: imageMasterUser
adminDescription: ImageMaster user
mayContain: imageMasterRole
objectClass: classSchema
objectClassCategory: 3
subClassOf: top
To add an ActiveDirectory user, follow these steps:
-
Edit the LDIF file and replace all occurrences of "DC=x" with your domain name.
If your domain is called "dc=ek,dc=im" in ActiveDirectory, the dn lines need to look like this:
dn: CN=imageMasterRole,CN=Schema,CN=Configuration,DC=ek,DC=im
...
dn: CN=imageMasterUser,CN=Schema,CN=Configuration,DC=ek,DC=im
Use the ldifde tool to import the schema definition into
ActiveDirectory like this:
ldifde -i -f imaschema.ldif -v -j .
-
Activate the schema editor Snap-In for the management console:
regsvr32 schmmgmt.dll
-
Open the management console (mmc.exe) and navigate to the definition of the "user" schema. Right-click on the schema and select “Edit” in the popup menu. Add the new auxiliary class:"imageMasterUser".
-
Restart the ActiveDirectory.
Now, you can add an ActiveDirectory user and fill in the "imageMasterRole" attribute.