[Date Prev][Date Next] [Chronological] [Thread] [Top]

how to reconstruct ldap database



Hollo, I'm new in Ldap,
 
 I use
 
Linux Suse 8.0
openldap2-2.1.4-46
openldap-lib-1.2.13
 
 
I don't know what happen in my Ldap server. I erased some record in the next way.
 

 

 # ldapdelete -v -D 'cn=Manager, dc=Colegio Oficial de Arquitectos de Madrid,dc=es' -x -f borrar.ldif -w password

ldap_initialize( <DEFAULT> )

deleting entry " uid=COL666,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"

Delete Result: Success (0)

deleting entry " uid=COL669,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"

Delete Result: Success (0)

deleting entry " uid=COL690,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"

Delete Result: Success (0)

deleting entry " uid=COL760,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"

Delete Result: Success (0)

deleting entry " uid=COL827,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"

Delete Result: Success (0)

deleting entry " uid=COL863,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"

Killed

 

 

 

But before it finished, (uid=COL863 is not the last one), it stopped without return system prompt, and the CPU was in 100% and there were more than 30 ldap process. So I had to kill ldapdelete command. But after it was not posible to connect to ldap server. I restarted it, but then it was not posible for ever, and port 389 was not open. So I had to reinstall the full openldap2-2.1.4-46 package, and load another time the data. Why happens this? How can I avoid to reinstall it? Is there a recover method without reinstall?

 

Any help will be appreciated. Thanks very much.

 

borrar.ldif (the file for deleting)
 
uid=COL666,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es
 uid=COL669,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es
 uid=COL690,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es
 uid=COL760,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es
 uid=COL827,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es
 uid=COL863,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es
 uid=COL919,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es
 uid=COL965,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es
 uid=COL967,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es

 

/var/log/messages

Jun 12 10:15:45 coco slapd[1176]: daemon: conn=138 fd=29 connection from IP=127.0.0.1:32970 (IP=0.0.0.0:389) accepted.
Jun 12 10:15:45 coco slapd[1557]: conn=138 op=0 BIND dn="cn=Manager,dc=Colegio Oficial de Arquitectos de Madrid,dc=es" method=128
Jun 12 10:15:45 coco slapd[1557]: conn=138 op=0 RESULT tag=97 err=0 text=
Jun 12 10:15:45 coco slapd[1565]: conn=138 op=1 DEL dn="uid=COL666,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"
Jun 12 10:15:45 coco slapd[1565]: conn=138 op=1 RESULT tag=107 err=0 text=
Jun 12 10:15:45 coco slapd[1603]: conn=138 op=2 DEL dn="uid=COL669,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"
Jun 12 10:15:45 coco slapd[1603]: conn=138 op=2 RESULT tag=107 err=0 text=
Jun 12 10:15:45 coco slapd[1610]: conn=138 op=3 DEL dn="uid=COL690,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"
Jun 12 10:15:45 coco slapd[1610]: conn=138 op=3 RESULT tag=107 err=0 text=
Jun 12 10:15:45 coco slapd[1552]: conn=138 op=4 DEL dn="uid=COL760,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"
Jun 12 10:15:45 coco slapd[1552]: conn=138 op=4 RESULT tag=107 err=0 text=
Jun 12 10:15:45 coco slapd[1602]: conn=138 op=5 DEL dn="uid=COL827,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"
Jun 12 10:15:45 coco slapd[1602]: conn=138 op=5 RESULT tag=107 err=0 text=
Jun 12 10:15:45 coco slapd[1608]: conn=138 op=6 DEL dn="uid=COL863,ou=smb,dc=Colegio Oficial de Arquitectos de Madrid,dc=es"
Jun 12 10:16:16 coco slapd[1176]: conn=136 fd=28 closed
Jun 12 10:16:23 coco dhcpd: DHCPREQUEST for 192.168.200.194 from 00:04:75:ca:4b:b2 (equipo3) via eth1
Jun 12 10:16:23 coco dhcpd: DHCPACK on 192.168.200.194 to 00:04:75:ca:4b:b2 (equipo3) via eth1
Jun 12 10:17:09 coco dhcpd: DHCPREQUEST for 192.168.200.195 from 00:04:75:ca:4b:3b (equipo1) via eth1
Jun 12 10:17:09 coco dhcpd: DHCPACK on 192.168.200.195 to 00:04:75:ca:4b:3b (equipo1) via eth1
Jun 12 10:17:16 coco dhcpd: DHCPREQUEST for 192.168.200.199 from 00:07:e9:aa:85:b9 (publico2) via eth1
Jun 12 10:17:16 coco dhcpd: DHCPACK on 192.168.200.199 to 00:07:e9:aa:85:b9 (publico2) via eth1
Jun 12 10:19:39 coco smbd[1675]: [2003/06/12 10:19:39, 0] lib/util_sock.c:read_data(436)
Jun 12 10:19:39 coco smbd[1675]:   read_data: read failure for 4. Error = Connection reset by peer
Jun 12 10:19:39 coco slapd[1176]: daemon: conn=139 fd=28 connection from IP=127.0.0.1:33615 (IP=0.0.0.0:389) accepted.
Jun 12 10:19:39 coco slapd[1176]: conn=139 fd=28 closed