Quantcast
Viewing all articles
Browse latest Browse all 31638

Errors importing LDIF file generated by PeopleSoft

Hi All,

I am working with our PeopleSoft admins to get PeopleSoft setup as the authoritative source for directory type information. We are establishing a process where PeopleSoft will build an LDIF file of any changes it wants to make to AD, it will go to our System Admins who will review the changes, and then import them into AD. We are in the testing phase now, and cant seem to get any of the LDIF files to import.

Here is the file, spit out by PeopleSoft:

dn: cn=testA\, psoft,ou=Employees,ou=User Accounts,dc=domain1,dc=company
changetype: modify
objectClass: top
replace: mail
cn: testA\, psoft
mail: traceyA@company.org

dn: cn=testB\, psoft,ou=Employees,ou=User Accounts,dc=domain1,dc=company
changetype: modify
objectClass: top
cn: testB\, psoft
replace: mail
mail: traceyB@company.org

It errors like:

PS C:\temp> ldifde -i -f RAJU_PERSON6.ldif -s DC1
Connecting to "DC1"
Logging in as current user using SSPI
Importing directory from file "RAJU_PERSON6.ldif"
Loading entries.
There is a syntax error in the input file
Failed on line 1.  The last token starts with 'ï'.
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.


I have done some research on it, on these forums and abroad, and I have found a few things:

1. When using "changetype: modify" you need to have your change listed on the next line

2. You dont need the "objectClass: top" line (or any object class lines for a modify)

3. I havent found anyone else using a line like "cn: testB\, psoft"

4. The file needs to be "UTF-8" format

5. And finally, I likely need quotes around

dn: cn=testB\, psoft,ou=Employees,ou=User Accounts,dc=domain1,dc=company

So, I recreated the file to look like:

dn: "cn=testA\, psoft,ou=Employees,ou=User Accounts,dc=domain1,dc=company"
changetype: modify
replace: mail
mail: traceyA@company.org

dn: "cn=testB\, psoft,ou=Employees,ou=User Accounts,dc=domain1,dc=company"
changetype: modify
replace: mail
mail: traceyB@company.org

I ran the import again and get this failure:

PS C:\temp> ldifde -i -f nates_edited.ldif -s DC1
Connecting to "DC1"
Logging in as current user using SSPI
Importing directory from file "nates_edited.ldif"
Loading entries.
There is a syntax error in the input file
Failed on line 3.  The last token starts with '"'.
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.

I have messed around with this, editing the file and trying different things and am just having a real hard time figuring out what I need to do.  Any thoughts from the community?



Viewing all articles
Browse latest Browse all 31638

Trending Articles