[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap server doesn't run after inserting some groups (cn)
- To: openldap-technical@openldap.org
- Subject: Re: ldap server doesn't run after inserting some groups (cn)
- From: stefano malini <lozingalo@gmail.com>
- Date: Thu, 26 Apr 2012 08:07:02 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=/mBcRN3YvtzF9Mo7M2rX7OE6khMT6LaHZa8vF9uCIeg=; b=UE4cYAgZh15dQlWgfAKlxFD8QP24OgmkmBTpzMa0o+1SXBYNdm8cjCezC6zuY7CEzk 7kIESTDVMmIDFW8lwojyxyrXNSU8Dq+545FUpBsNLnQ1fAXfJxOTYbo/QXGK4IjE9qwq sNn3KVl4BgKMd/7qY4KQpBnqJ1JxPol7y24jf5bn4kiCsyqJrKC+gRG7f0ZtcLXoUjl+ OgPYCt0UupNvpLqWKPumJemKNZhQAwSVWMWlrUlh2ZW93v/xM2dTvjLPkSWXOGGpyS1c GeYq0sfTThjVTToJA4+6C1gjYSb8dVs9tx30zdj+eiiHzPoC5tyuBTZ9ulnybfgS570G NRkA==
- In-reply-to: <B137DFCE8D3B646C0E2A08FD@[192.168.1.100]>
- References: <4F9832DF.4020006@gmail.com> <B137DFCE8D3B646C0E2A08FD@[192.168.1.100]>
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16
ok, am sorry.
as said i have LDAP server on Debian Squeeze.
It was working fine until adding this ldif file:
GNU nano 2.2.4 File: /etc/ldap/cn.ldif
#gruppo Studenti
dn: cn=Students,ou=Groups,dc=amahoro,dc=bi
cn: Students
gidNumber: 2000
objectClass: posixGroup
#gruppo Staff
dn: cn=Staff,ou=Groups,dc=amahoro,dc=bi
cn: Staff
gidNumber: 2001
objectClass: posixGroup
#gruppo Admins
dn: cn=Admins,ou=Groups,dc=amahoro,dc=bi
cn: Admins
gidNumber: 2002
objectClass: posixGroup
#gruppo Teachers
dn: cn=Teachers,ou=Groups,dc=amahoro,dc=bi
cn: Teachers
gidNumber: 2003
objectClass: posixGroup
The first time i tried using ldapadd but it gave me this error:
root@amahoro:/etc/ldap# ldapadd -x -W -D 'cn=Manager,dc=amahoro,dc=bi'
-f cn.ldif
Enter LDAP Password:
adding new entry "cn=Students,ou=Groups,dc=amahoro,dc=bi"
ldap_add: Other (e.g., implementation specific) error (80)
additional info: index generation failed
Then i used slapadd without errors:
root@amahoro:/etc/ldap# slapadd -v -f /etc/ldap/slapd.conf -l cn.ldif
hdb_db_open: database "dc=amahoro,dc=bi": unclean shutdown detected;
attempting recovery.
added: "cn=Students,ou=Groups,dc=amahoro,dc=bi" (00000009)
added: "cn=Staff,ou=Groups,dc=amahoro,dc=bi" (0000000a)
added: "cn=Admins,ou=Groups,dc=amahoro,dc=bi" (0000000b)
added: "cn=Teachers,ou=Groups,dc=amahoro,dc=bi" (0000000c)
_#################### 100.00% eta none elapsed none fast!
Closing DB...
From this moment the ldap server has stopped to work.
This is /var/log/syslog tring to use the server.
Apr 25 19:02:14 amahoro slapd[1463]: hdb_db_open: database
"dc=amahoro,dc=bi" cannot be opened, err 13. Restore from backup!
Apr 25 19:02:14 amahoro slapd[1463]: bdb(dc=amahoro,dc=bi):
txn_checkpoint interface requires an environment configured for the
transaction subsystem
Apr 25 19:02:14 amahoro slapd[1463]: bdb_db_close: database
"dc=amahoro,dc=bi": txn_checkpoint failed: Invalid argument (22).
Apr 25 19:02:14 amahoro slapd[1463]: backend_startup_one (type=hdb,
suffix="dc=amahoro,dc=bi"): bi_db_open failed! (13)
Apr 25 19:02:14 amahoro slapd[1463]: bdb_db_close: database
"dc=amahoro,dc=bi": alock_close failed
Apr 25 19:02:14 amahoro slapd[1463]: slapd stopped.
Apr 25 19:02:34 amahoro nslcd[1085]: [334873] failed to bind to LDAP
server ldap://localhost:389: Can't contact LDAP server: Transport
endpoint is not connected
Apr 25 19:02:34 amahoro nslcd[1085]: [334873] no available LDAP server found
The server is connected to the lan but ldap server doesn't work.
What do you think?
Thanks
On 04/25/2012 08:35 PM, Quanah Gibson-Mount wrote:
--On Wednesday, April 25, 2012 7:22 PM +0200 stefano malini
<lozingalo@gmail.com> wrote:
Hi,
I had a good LDAP server on Debian Squeeze, everything was ok. I was able
to login using ldap users, i was able to make research using ldapsearch.
Now, after adding an ldif file with some groups it doesn't run.
Trying ldapsearch the answer is
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
What can be happened?
You don't provide enough information to answer your question.
--Quanah
--
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra :: the leader in open source messaging and collaboration