Announcement

Collapse
No announcement yet.

Bulk User Modification

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bulk User Modification

    when i am trying to update user attributes in the AD using LDIFDE command, i am getting following error.

    C:\>ldifde -i -k -f c:\api.ldf -s hofad
    Connecting to "hofad"
    Logging in as current user using SSPI
    Importing directory from file "c:\api.ldf"
    Loading entries.
    There is a syntax error in the input file
    Failed on line 11. The last token starts with 'p'.
    The change-modify entry is missing the terminator '-'.
    0 entries modified successfully.
    An error has occurred in the program
    No log files were written. In order to generate a log file, please
    specify the log file path via the -j option.

    please help me to get resolved this..

    Sample file entries as follows

    dn: CN=Dinesh_02462,OU=Child,OU=Dinesh,DC=ghdineshs,DC =com
    changetype: modify
    replace: telephoneNumber
    telephoneNumber: 777335246
    cn: Dinesh_02462

    dn: CN=pramoda_1236,OU=Child,OU=Dinesh,DC=ghdineshs,DC =com
    changetype: modify
    replace: telephoneNumber
    telephoneNumber: 777335816
    cn: pramoda_1236

  • #2
    Re: Bulk User Modification

    Add a last line to the file "api.ldf" containing just a dash "-"


    \Rems

    This posting is provided "AS IS" with no warranties, and confers no rights.

    __________________

    ** Remember to give credit where credit's due **
    and leave Reputation Points for meaningful posts

    Comment


    • #3
      Re: Bulk User Modification

      Originally posted by ghdineshs View Post
      when i am trying to update user attributes in the AD using LDIFDE command, i am getting following error.

      C:\>ldifde -i -k -f c:\api.ldf -s hofad
      Connecting to "hofad"
      Logging in as current user using SSPI
      Importing directory from file "c:\api.ldf"
      Loading entries.
      There is a syntax error in the input file
      Failed on line 11. The last token starts with 'p'.
      The change-modify entry is missing the terminator '-'.
      0 entries modified successfully.
      An error has occurred in the program
      No log files were written. In order to generate a log file, please
      specify the log file path via the -j option.

      please help me to get resolved this..

      Sample file entries as follows

      dn: CN=Dinesh_02462,OU=Child,OU=Dinesh,DC=ghdineshs,DC =com
      changetype: modify
      replace: telephoneNumber
      telephoneNumber: 777335246
      cn: Dinesh_02462

      dn: CN=pramoda_1236,OU=Child,OU=Dinesh,DC=ghdineshs,DC =com
      changetype: modify
      replace: telephoneNumber
      telephoneNumber: 777335816
      cn: pramoda_1236

      The problem as I see it is two fold:
      • as noted in the previous post, you must add "-" immediately below each line as such:
      dn: CN=Dinesh_02462,OU=Child,OU=Dinesh,DC=ghdineshs,DC =com
      changetype: modify
      replace: telephoneNumber
      telephoneNumber: 777335246
      cn: Dinesh_02462
      -

      This is the terminator that is being referred to...
      • Second error is simply ldifde complaining about no log file, which also helps troubleshoot errors... You can add it easily by changing your command to: C:\>ldifde -i -k -f c:\api.ldf -j c:\ -s hofad The -j specifies that the following path is where the log file is to be generated, you do not need to specify a log file name... The default name of ldif.log will be utilized...
      Good Luck...

      debonairOne

      Comment


      • #4
        Re: Bulk User Modification

        thanks for you all for helping me out, i tried according to the debonairOne instructions but i got a same kind of error as follows.

        C:\>ldifde -i -k -f c:\api.ldf -j c:\ -s hofad
        Connecting to "hofad"
        Logging in as current user using SSPI
        Importing directory from file "c:\api.ldf"
        Loading entries.
        Extraneous attribute name in a mod_spec list
        Failed on line 6. The last token starts with '-'.
        0 entries modified successfully.
        An error has occurred in the program


        ***below shows the entry i tried to modify***

        dn: CN=Dinesh_02462,OU=Child,OU=Dinesh,DC=ghdineshs,DC =com
        changetype: modify
        replace: telephoneNumber
        telephoneNumber: 777335246
        cn: Dinesh_02462
        -

        dn: CN=pramoda_1236,OU=Child,OU=Dinesh,DC=ghdineshs,DC =com
        changetype: modify
        replace: telephoneNumber
        telephoneNumber: 777335816
        cn: pramoda_1236
        -

        Thank you again.

        Comment


        • #5
          Re: Bulk User Modification

          You entered a space after the first dash!! remove the space.
          And, after the last dash, enter a empty line.


          \Rems

          This posting is provided "AS IS" with no warranties, and confers no rights.

          __________________

          ** Remember to give credit where credit's due **
          and leave Reputation Points for meaningful posts

          Comment

          Working...
          X