Using LDIF for entry maintenance

General Discussion about LDAP Administrator

Moderator: Support

Using LDIF for entry maintenance

Postby jdierking » Wed Oct 04, 2006 4:19 pm

I am trying to use LDAP Admin to do some automated AD entry cleanup.

I can perform a modify on one attribute, but whenever I try to create an LDIF that performs two modifications, I cannot get the import wizard to load the file. It reports that the file type is unknown.

I tried the following syntax for the LDIF, which to my knowledge, is correct.


dn: CN=Jeffrey (Jeff) W Dierking,OU=Employees,DC=example,DC=com
changetype: modify
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: SHK 219
-

replace: st
st: AK

I tried several various syntaxes that I thought might make sese. I read the RFC and that is where I derived the above example.

I also tried this:

dn: CN=Jeffrey (Jeff) W Dierking,OU=Employees,DC=example,DC=com
changetype: modify
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: SHK 219
-

dn: CN=Jeffrey (Jeff) W Dierking,OU=Employees,DC=example,DC=com
changetype: modify
replace: st
st: AK

Thinking I would simply try to perform two separate modify statements, but it fails as well.

This concerns me for a different reason, because this leads me to believe that there is not the capability to perform mass changes with one file.

Thanks in advance for any help you might offer.
Jeff Dierking
Software Developer Senior
Lockheed Martin
jeffrey_w_dierking@rl.gov
509-376-3564
jdierking
 
Posts: 5
Joined: Wed Oct 04, 2006 3:52 pm
Location: Richland, WA

Postby Support » Thu Oct 05, 2006 8:15 am

It's a common mistake that people forget to add either '-' symbol or/and linebreak at the end of the file.
You LDIF file should be something like this:
Code: Select all
dn: CN=Jeffrey (Jeff) W Dierking,OU=Employees,DC=example,DC=com
changetype: modify
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: SHK 219
-
replace: st
st: AK
-

Support
 
Posts: 896
Joined: Sun Aug 12, 2001 12:00 am

Postby jdierking » Thu Oct 05, 2006 3:14 pm

Support wrote:It's a common mistake that people forget to add either '-' symbol or/and linebreak at the end of the file.
You LDIF file should be something like this:
Code: Select all
dn: CN=Jeffrey (Jeff) W Dierking,OU=Employees,DC=example,DC=com
changetype: modify
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: SHK 219
-
replace: st
st: AK
-



I did that and it did not work. I tried a '-', a line break and a '-' followed by a line break. I always seem to get the error seen in the attached error capture.
Attachments
ldap_admin.png
Erro when trying to modify more than one field.
ldap_admin.png (12.19 KiB) Viewed 33014 times
Jeff Dierking
Software Developer Senior
Lockheed Martin
jeffrey_w_dierking@rl.gov
509-376-3564
jdierking
 
Posts: 5
Joined: Wed Oct 04, 2006 3:52 pm
Location: Richland, WA

Postby Support » Thu Oct 05, 2006 3:30 pm

I copy-pasted the code from the file that works at my side. What is the version of LDAP Administrator that you use?

I'll send the file to you by email in a few minutes...
Support
 
Posts: 896
Joined: Sun Aug 12, 2001 12:00 am

Postby jdierking » Thu Oct 05, 2006 3:37 pm

Support wrote:I copy-pasted the code from the file that works at my side. What is the version of LDAP Administrator that you use?

I'll send the file to you by email in a few minutes...


Version 3.3.1
Jeff Dierking
Software Developer Senior
Lockheed Martin
jeffrey_w_dierking@rl.gov
509-376-3564
jdierking
 
Posts: 5
Joined: Wed Oct 04, 2006 3:52 pm
Location: Richland, WA

Postby azuercher » Mon Jul 09, 2007 7:20 pm

Hello,
I am demoing LDAP administrator with plans to use it specifically for import/export LDAP maintenance. During my tests I have encountered the exact same symptoms as this thread. Was there ever a resolution to this problem? Any help would be appreciated.

Thanks,
Aaron
azuercher
 
Posts: 2
Joined: Mon Jul 09, 2007 7:16 pm
Location: IL, USA

Never was able to over come this...

Postby jdierking » Mon Jul 09, 2007 7:53 pm

I have since been reassigned to other duties and have not been actively working on this.

I wish you the best of luck in try to get this working.
Jeff Dierking
Software Developer Senior
Lockheed Martin
jeffrey_w_dierking@rl.gov
509-376-3564
jdierking
 
Posts: 5
Joined: Wed Oct 04, 2006 3:52 pm
Location: Richland, WA

Postby azuercher » Mon Jul 09, 2007 9:07 pm

Thanks for the update. So you were never able to successfully import?
azuercher
 
Posts: 2
Joined: Mon Jul 09, 2007 7:16 pm
Location: IL, USA

Postby jdierking » Mon Jul 09, 2007 9:10 pm

No. I always got, and just did when I tried again, the same error of an unknown file.
Jeff Dierking
Software Developer Senior
Lockheed Martin
jeffrey_w_dierking@rl.gov
509-376-3564
jdierking
 
Posts: 5
Joined: Wed Oct 04, 2006 3:52 pm
Location: Richland, WA

Postby new4 » Wed Nov 14, 2007 10:58 am

Hi Hope you found the answer, if not here is what you need

dn: CN=Jeffrey (Jeff) W Dierking,OU=Employees,DC=example,DC=com
changetype: modify
replace: physicalDeliveryOfficeName
physicalDeliveryOfficeName: SHK 219
st: AK
nextldapattribute:nextldapattrributevalue
anotherldapattribute:anotherldapattrributevalue


No need to declare the replace action again and always concious of spaces and carriage returns

cheers
~~~~~~~~~~~~~~~~~~~~~~~~
<a href="http://www.new4.co.uk" target=2_blank">New4</a> - Ldap Directory powered portals
~~~~~~~~~~~~~~~~~~~~~~~~
new4
 
Posts: 1
Joined: Wed Nov 14, 2007 10:52 am
Location: Manchester England


Return to General Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron