September 23rd, 2009, 05:11 AM
How can an LDIF file gets user input
I am new to LDAP programming .... I am trying to add new attributes to AD by extending the AD schema .. I have a simple LDIF file which adds/updates the schema ..... But I want the LDIF to get the input from the user (admin who installs the script) ...He might need to give the domain name & OIDs as input
dn: CN=isIntegrated,CN=Schema,CN=Configuration,DC=ocsinterop,DC=comchangetype: add
distinguishedName: CN=isIntegrated,CN=Schema,CN=Configuration,DC=ocsinterop,DC=comobjectCategory: CN=Attribute-Schema,CN=Schema,CN=Configuration,DC=ocsinterop,DC=com
Can anyone explain with example, how can I do this ?