LDIF syntax for adding an already created custom attribute to OU
Hello, we are running a server/domain and need some help regarding the same. Due to some reasons in need to update the organizationalUnit class by adding a new attribute provided below using an LDIF file. For your information I have verified the that schema is already updated with this new attribute. Here is the LDIF sample:
Quote:
--------------------------------------------------------------------------
dn:
CN=Organizational-Unit,CN=Schema,CN=Configuration,CN={58ED96B9-692B-4293-9766-31C0B471C0FE}
changeType: modify
mayContain: orgCd
dn:
changeType: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-
------------------------------------------------------------------------
here is the output of hte LDIFDE command....
-----------------
D:\ADAM_LDIF_FILES\Schema_Modification>ldifde -i -f
d:\ADAM_LDIF_FILES\Schema_Mo
dification\add_org_cd_to_ou.ldf -s localhost:50012 -k -j . -v
Connecting to "localhost:50012"
Logging in as current user using SSPI
Importing directory from file
"d:\ADAM_LDIF_FILES\Schema_Modification\add_org_cd
_to_ou.ldf"
Loading entries
There is a syntax error in the input file
Failed on line 8. The last token starts with '1'.
0 entries modified successfully.
An error has occurred in the program
--------------------------------------------------------------------------
I have already searched Google, Microosft MSDN and AMAM for the correct syntax that needs to be added in a custom attribute to an existing class but dint found it anywhere. So my question is can somebody from here please help me telling me the correct Syntax? Please help.
Re: LDIF syntax for adding an already created custom attribute to OU
Hello Deffen-Baugh. Just try out the following:
dn:
CN=Organizational-Unit,CN=Schema,CN=Configuration,CN={58ED96B9-692B-4293-9766-31C0B471C0FE}
changeType: modify
add: mayContain
mayContain: orgCd
-
dn:
changeType: modify
add: schemaUpdateNow
schemaUpdateNow: 1
-
Re: LDIF syntax for adding an already created custom attribute to
Thats all i was in need of. It worked exactly i needed
Appreciated.
Re: LDIF syntax for adding an already created custom attribute to OU
I am trying to perform a sync of AD, when I ran ADSchemaAnalyzer I performed the following:
Load Target Schema = my DC:389 (all other fields empty)
Load Base Schema = my ADAM server:389 (all other fields empty)
Create LDIF file = filename.ldf (created)
RAN - LDIFDE -i -e localhost -c CN=Configuration,
DC=X #ConfigurationNamingContext -f filename.ldf
I received an error "Last token starts with '1'.
Can anyone explain this?
Thanks