Linux forum: ldap restore from ldif file problem

by: egulik1 January 11, 2013 8:11 AM PST

Like this

0 people like this thread

Staff pick

ldap restore from ldif file problem

by egulik1 - 1/11/13 8:11 AM

Hello,
I have a problem with restoring from a ldiff backup file that I did just recently using this command:
[CODE]$ ldapsearch -h localhost -p 1389 -D cn=admin -w somepassword -b "dc=somedomain,dc=com" "objectclass=*" |perl -p -0040 -e 's/\n //' >> 01102013.vl34.ldiff[/CODE]

I removed everything from ldap using Apache Directory Studio but when I tried using this command:

[CODE]$ sudo ldapadd -h localhost -p 1389 -x -D cn=admin -w somepassword -f 01102013.vl34.ldiff[/CODE]

I get this:
[CODE]
adding new entry "dc=somedomain,dc=com"
adding new entry "ou=services,dc=somedomain,dc=com"
....
and couple of more lines like that but then I get this:

*** stack smashing detected ***: ldapadd terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x4d)[0x8fbfcd]
/lib/libc.so.6[0x8fbf7a]
ldapadd[0x8055614]
ldapadd[0x80541db]
ldapadd[0x804adef]
/lib/libc.so.6(__libc_start_main+0xe6)[0x819ce6]
ldapadd[0x804a6b1]
======= Memory map: ========
00110000-00111000 r-xp 00000000 00:00 0 [vdso]
00111000-0011d000 r-xp 00000000 fd:00 278303 /lib/libnss_files-2.12.so
0011d000-0011e000 r--p 0000b000 fd:00 278303 /lib/libnss_files-2.12.so
0011e000-0011f000 rw-p 0000c000 fd:00 278303 /lib/libnss_files-2.12.so
0011f000-00124000 r-xp 00000000 fd:00 261484 /lib/libnss_dns-2.12.so
00124000-00125000 r--p 00004000 fd:00 261484 /lib/libnss_dns-2.12.so
00125000-00126000 rw-p 00005000 fd:00 261484 /lib/libnss_dns-2.12.so
006df000-00728000 r-xp 00000000 fd:00 284863 /lib/libfreebl3.so
00728000-00729000 r--p 00048000 fd:00 284863 /lib/libfreebl3.so
00729000-0072a000 rw-p 00049000 fd:00 284863 /lib/libfreebl3.so
0072a000-0072e000 rw-p 00000000 00:00 0
00730000-00737000 r-xp 00000000 fd:00 284864 /lib/libcrypt-2.12.so
00737000-00738000 r--p 00007000 fd:00 284864 /lib/libcrypt-2.12.so
00738000-00739000 rw-p 00008000 fd:00 284864 /lib/libcrypt-2.12.so
00739000-00760000 rw-p 00000000 00:00 0
007aa000-007c7000 r-xp 00000000 fd:00 284837 /lib/libgcc_s-4.4.6-20120305.so.1
007c7000-007c8000 rw-p 0001d000 fd:00 284837 /lib/libgcc_s-4.4.6-20120305.so.1
007d4000-007d8000 r-xp 00000000 fd:00 284849 /lib/libplc4.so
007d8000-007d9000 r--p 00003000 fd:00 284849 /lib/libplc4.so
007d9000-007da000 rw-p 00004000 fd:00 284849 /lib/libplc4.so
007e1000-007ff000 r-xp 00000000 fd:00 284832 /lib/ld-2.12.so
007ff000-00800000 r--p 0001d000 fd:00 284832 /lib/ld-2.12.so
00800000-00801000 rw-p 0001e000 fd:00 284832 /lib/ld-2.12.so
00803000-0098f000 r-xp 00000000 fd:00 284833 /lib/libc-2.12.so
0098f000-00991000 r--p 0018c000 fd:00 284833 /lib/libc-2.12.so
00991000-00992000 rw-p 0018e000 fd:00 284833 /lib/libc-2.12.so
00992000-00995000 rw-p 00000000 00:00 0
00997000-0099a000 r-xp 00000000 fd:00 284840 /lib/libdl-2.12.so
0099a000-0099b000 r--p 00002000 fd:00 284840 /lib/libdl-2.12.so
0099b000-0099c000 rw-p 00003000 fd:00 284840 /lib/libdl-2.12.so
009b6000-009cd000 r-xp 00000000 fd:00 284838 /lib/libpthread-2.12.so
009cd000-009ce000 r--p 00016000 fd:00 284838 /lib/libpthread-2.12.so
009ce000-009cf000 rw-p 00017000 fd:00 284838 /lib/libpthread-2.12.so
009cf000-009d1000 rw-p 00000000 00:00 0
00aea000-00afc000 r-xp 00000000 fd:00 284835 /lib/libz.so.1.2.3
00afc000-00afd000 r--p 00011000 fd:00 284835 /lib/libz.so.1.2.3
00afd000-00afe000 rw-p 00012000 fd:00 284835 /lib/libz.so.1.2.3
00b21000-00b36000 r-xp 00000000 fd:00 284845 /lib/libresolv-2.12.so
00b36000-00b37000 ---p 00015000 fd:00 284845 /lib/libresolv-2.12.so
00b37000-00b38000 r--p 00015000 fd:00 284845 /lib/libresolv-2.12.so
00b38000-00b39000 rw-p 00016000 fd:00 284845 /lib/libresolv-2.12.so
00b39000-00b3b000 rw-p 00000000 00:00 0
00c7f000-00c8c000 r-xp 00000000 fd:00 261714 /lib/liblber-2.4.so.2.5.6
00c8c000-00c8d000 r--p 0000d000 fd:00 261714 /lib/liblber-2.4.so.2.5.6
00c8d000-00c8e000 rw-p 0000e000 fd:00 261714 /lib/liblber-2.4.so.2.5.6
05af8000-05b11000 r-xp 00000000 fd:00 43422 /usr/lib/libsasl2.so.2.0.23
05b11000-05b12000 r--p 00018000 fd:00 43422 /usr/lib/libsasl2.so.2.0.23
05b12000-05b13000 rw-p 00019000 fd:00 43422 /usr/lib/libsasl2.so.2.0.23
05b25000-05b70000 r-xp 00000000 fd:00 284874 /lib/libldap-2.4.so.2.5.6
05b70000-05b71000 r--p 0004a000 fd:00 284874 /lib/libldap-2.4.so.2.5.6
05b71000-05b72000 rw-p 0004b000 fd:00 284874 /lib/libldap-2.4.so.2.5.6
05bd2000-05bd5000 r-xp 00000000 fd:00 284850 /lib/libplds4.so
05bd5000-05bd6000 r--p 00002000 fd:00 284850 /lib/libplds4.so
05bd6000-05bd7000 rw-p 00003000 fd:00 284850 /lib/libplds4.so
05bd9000-05d0d000 r-xp 00000000 fd:00 43393 /usr/lib/libnss3.so
05d0d000-05d10000 r--p 00134000 fd:00 43393 /usr/lib/libnss3.so
05d10000-05d12000 rw-p 00137000 fd:00 43393 /usr/lib/libnss3.so
05d14000-05d4e000 r-xp 00000000 fd:00 284848 /lib/libnspr4.so
05d4e000-05d4f000 r--p 00039000 fd:00 284848 /lib/libnspr4.so
05d4f000-05d50000 rw-p 0003a000 fd:00 284848 /lib/libnspr4.so
05d50000-05d52000 rw-p 00000000 00:00 0
05d5f000-05d7b000 r-xp 00000000 fd:00 42912 /usr/lib/libnssutil3.so
05d7b000-05d7e000 r--p 0001c000 fd:00 42912 /usr/lib/libnssutil3.so
05d7e000-05d7f000 rw-p 0001f000 fd:00 42912 /usr/lib/libnssutil3.so
05d81000-05da9000 r-xp 00000000 fd:00 43395 /usr/lib/libsmime3.so
05da9000-05dab000 r--p 00027000 fd:00 43395 /usr/lib/libsmime3.so
05dab000-05dac000 rw-p 00029000 fd:00 43395 /usr/lib/libsmime3.so
05dae000-05de7000 r-xp 00000000 fd:00 43394 /usr/lib/libssl3.so
05de7000-05de9000 r--p 00038000 fd:00 43394 /usr/lib/libssl3.so
05de9000-05dea000 rw-p 0003a000 fd:00 43394 /usr/lib/libssl3.so
08048000-0805a000 r-xp 00000000 fd:00 43523 /usr/bin/ldapmodify
0805a000-0805b000 r--p 00011000 fd:00 43523 /usr/bin/ldapmodify
0805b000-0805c000 rw-p 00012000 fd:00 43523 /usr/bin/ldapmodify
0805c000-0809e000 rw-p 00000000 00:00 0 [heap]
b7fed000-b7ff2000 rw-p 00000000 00:00 0
b7ffc000-b8000000 rw-p 00000000 00:00 0
bffeb000-c0000000 rw-p 00000000 00:00 0 [stack][/CODE]

I guess the process fails because not all data are imported, I did some research but can't seem to find

a real solution to that. I was hoping that someone could shed some light on that problem or maybe

solution if that happened to someone in the past?
I'm using CentOS 6.3 - 2.6.32-279.5.1.el6.i686 with OpenDS-2.2.1 for ldap.
Thanks

Forum Icon Legend

  • UnreadUnread
  • ReadRead
  • Locked threadLocked thread
  •   
  •   
  •   
  •   
  •   
  •   
  •   
  • ModeratorModerator
  • CNET StaffCNET Staff
  • Samsung StaffSamsung Staff
  • Norton Authorized Support TeamNorton Authorized Support Team
  • AVG StaffAVG Staff
  • avast! Staffavast! Staff
  • Webroot Support TeamWebroot Support Team
  • Acer Customer Experience TeamAcer Customer Experience Team
  • Windows Outreach TeamWindows Outreach Team
  • DISH staffDISH staff
  • Dell StaffDell Staff
  • Intel StaffIntel Staff
  • QuestionQuestion
  • Resolved questionResolved question
  • General discussionGeneral discussion
  • TipTip
  • Alert or warningAlert or warning
  • PraisePraise
  • RantRant

You are e-mailing the following post: Post Subject

Your e-mail address is used only to let the recipient know who sent the e-mail and in case of transmission error. Neither your address nor the recipient's address will be used for any other purpose.

Sorry, there was a problem emailing this post. Please try again.

Submit Email Cancel

Thank you. Sent email to

Close

Thank you. Sent email to

Close

You are reporting the following post: Post Subject

If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

Offensive: Sexually explicit or offensive language

Spam: Advertisements or commercial links

Disruptive posting: Flaming or offending other users

Illegal activities: Promote cracked software, or other illegal content

Sorry, there was a problem submitting your post. Please try again.

Submit Report Cancel

Your message has been submitted and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.

Close

Your message has been submitted and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.

Close

You are posting a reply to: Post Subject

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to the CNET Forums policies for details. All submitted content is subject to CBS Interactive Site Terms of Use.

You are currently tracking this discussion. Click here to manage your tracked discussions.

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

Sorry, there was a problem submitting your post. Please try again.

Sorry, there was a problem generating the preview. Please try again.

Duplicate posts are not allowed in the forums. Please edit your post and submit again.

Submit Reply Preview Cancel

Thank you, , your post has been submitted and will appear on our site shortly.

Close