Results 1 to 5 of 5

Thread: LDIF syntax for adding an already created custom attribute to OU

  1. #1
    Join Date
    Nov 2004
    Posts
    43

    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:

    --------------------------------------------------------------------------
    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.

  2. #2
    Join Date
    Sep 2004
    Posts
    63

    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
    -

  3. #3
    Join Date
    Nov 2004
    Posts
    43

    Re: LDIF syntax for adding an already created custom attribute to

    Thats all i was in need of. It worked exactly i needed

    Appreciated.

  4. #4
    Join Date
    Apr 2007
    Posts
    1
    hello guys,

    i need to add a photo for the LDAP users, i tried to do this by running the ldapde command

    version:1
    dn: CN=Motasem Qudah,OU=Users,DC=corporate,DC=lan
    changetype: modify
    add: jpegPhoto
    jpegPhoto:< file:///c:/ldif/1.jpg

    but an error has occured:

    There is a syntax error in the input file
    Failed on line 5. The last token starts with 'f'.
    The change-modify entry is missing the terminator '-'.
    0 entries modified successfully.
    An error has occurred in the program

    please advice,

    Motasem

  5. #5
    Join Date
    Jul 2009
    Posts
    2

    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

Similar Threads

  1. how add value to new attribute created in active directory
    By hiltonfg in forum Software Development
    Replies: 1
    Last Post: 14-12-2010, 07:15 AM
  2. Replies: 3
    Last Post: 13-08-2009, 11:27 AM
  3. Custom fullname attribute settings ignored by ADMA
    By Bisujaksha in forum Windows Software
    Replies: 2
    Last Post: 12-05-2009, 02:16 PM
  4. Howto add new attribute via LDIF file
    By Manolax in forum Active Directory
    Replies: 1
    Last Post: 11-11-2008, 06:57 PM
  5. Custom AD attribute - [WP]
    By OmJaa in forum Active Directory
    Replies: 3
    Last Post: 11-03-2008, 07:17 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,982,969.54675 seconds with 17 queries