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

PANIC: fatal region error detected; run recovery OR Internal (implementation specific) error (80)



Hi all

Im starting to take the plunge to learn LDAP.

Im reading the "OpenLDAP Software 2.3 Administrators Guide".

Im trying to start out by creating databases and doing a query.

I use debian (testing), and so have editted the slapd.conf file.

============== Cut and Paste
database        bdb
suffix          "dc=brent,dc=local"
rootdn          "cn=Manager,dc=brent,dc=local"
#rootpw         {MD5}Xr4ilOzQ4PCOq3aQ0qbuaQ==
rootpw          secret
directory       "/var/lib/ldap"

database        bdb
suffix          "dc=com,dc=local,dc=edu,dc=org"
rootdn          "cn=Manager,dc=com,dc=local,dc=edu,dc=org"
#rootpw         {MD5}Xr4ilOzQ4PCOq3aQ0qbuaQ==
rootpw          secret
directory       "/var/lib/ldap"

oot@zion:/etc/ldap# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
#
# LDAPv3
# base <> with scope baseObject
# filter: (objectclass=*)
# requesting: namingContexts
#

#
dn:
namingContexts: dc=brent,dc=local
namingContexts: dc=com,dc=local,dc=edu,dc=org

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1
root@zion:/etc/ldap#

So now if i try to add via ldapadd, I get the following

zion:/tmp/ldap# ldapadd -x -D "cn=Manager,dc=brent,dc=local" -W -f
/home/bclark/OPENLDAP/test1
Enter LDAP Password:
adding new entry "dc=brent, dc=local"
ldapadd: Internal (implementation specific) error (80)

And here is my test1 file

zion:/tmp/ldap# cat /home/bclark/OPENLDAP/test1
# Domain Entry
dn: dc=brent, dc=local
objectclass: dcObject
objectclass: organization
o: Abc Consulting
dc: brent.local

dn:cn=Manager,dc=brent, dc=local
objectclass: organizationalRole
cn=Manager
zion:/tmp/ldap#

I really dont know why this is happening, and what am I doing wrong. I
increased the loglevel to 1 and this has sparked an interest.

Jan  6 01:33:06 zion slapd[25718]: >>> dnPrettyNormal:
<cn=Manager,dc=brent,dc=local>
Jan  6 01:33:06 zion slapd[25718]: <<< dnPrettyNormal:
<cn=Manager,dc=brent,dc=local>, <cn=manager,dc=brent,dc=local>
Jan  6 01:33:06 zion slapd[25718]: do_bind: version=3
dn="cn=Manager,dc=brent,dc=local" method=128
Jan  6 01:33:06 zion slapd[25718]: do_bind: v3 bind:
"cn=Manager,dc=brent,dc=local" to "cn=Manager,dc=brent,dc=local"
Jan  6 01:33:06 zion slapd[25718]: send_ldap_result: conn=5 op=0 p=3
Jan  6 01:33:06 zion slapd[25718]: send_ldap_response: msgid=1 tag=97 err=0
Jan  6 01:33:06 zion slapd[25718]: connection_get(17): got connid=5
Jan  6 01:33:06 zion slapd[25718]: connection_read(17): checking for
input on id=5
Jan  6 01:33:06 zion slapd[25718]: do_add
Jan  6 01:33:06 zion slapd[25718]: >>> dnPrettyNormal: <dc=brent, dc=local>
Jan  6 01:33:06 zion slapd[25718]: <<< dnPrettyNormal:
<dc=brent,dc=local>, <dc=brent,dc=local>
Jan  6 01:33:06 zion slapd[25718]: bdb(dc=brent,dc=local): PANIC:
fatal region error detected; run recovery

If someone could help, I would me most grateful.

Kind Regards
Brent Clark