Hi All,
I am new to LDAP programming .... I am trying to add new attributes to
AD by extending the AD schema .. I have an LDIF file which adds/updates
the schema ..... But I want the LDIF to get the input from the user
(customer who installs the script) ...He might need to give the domain
name & OIDs as input .... I want everyting to be done through an
installer .... I do not want my customer to edit the script to get this
work on his environment ....
Ex:
dn: CN=isIntegrated,CN=Schema,CN=Configuration,DC=ocsinterop,DC=com
changetype: add
adminDescription: isIntegrated
adminDisplayName: isIntegrated
attributeID: 1.2.840.113556.1.2.2010
attributeSyntax: 2.5.5.8
cn: isIntegrated
oMSyntax: 1
isSingleValued: TRUE
lDAPDisplayName: isIntegrated
distinguishedName:
CN=isIntegrated,CN=Schema,CN=Configuration,DC=ocsinterop,DC=comobjectCategory:
CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=ocsinterop,DC=com
objectClass: attributeSchema
name: isIntegrated
Can anyone explain with example, how can I do this ?