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

slapcat: slap_init no backend for "dc=magtech,dc=com,dc=au"



I am currently attempting to get an LDAP server running in
our organization but I am having a problem getting the LDAP
server to return anything meaningfull. I have downloaded and
installed OpenLDAP V2.0.19 and edited the slapd.conf file to
put in just the DN and Organization entries as shown below :

slapd.conf :
include /usr/share/openldap/schema/core.schema
include /usr/share/openldap/schema/cosine.schema
include /usr/share/openldap/schema/corba.schema
include /usr/share/openldap/schema/inetorgperson.schema
include /usr/share/openldap/schema/java.schema
include /usr/share/openldap/schema/krb5-kdc.schema
include /usr/share/openldap/schema/kerberosobject.schema
include /usr/share/openldap/schema/misc.schema
include /usr/share/openldap/schema/nadf.schema
include /usr/share/openldap/schema/nis.schema
include /usr/share/openldap/schema/openldap.schema
 
#include /usr/share/openldap/schema/rfc822-MailMember.schema
#include /usr/share/openldap/schema/pilot.schema
#include /usr/share/openldap/schema/autofs.schema
#include /usr/share/openldap/schema/samba.schema
#include /usr/share/openldap/schema/qmail.schema
#include /usr/share/openldap/schema/mull.schema
 
include /etc/openldap/schema/local.schema
 
 
# Define global ACLs to disable default read access.
#include /etc/openldap/slapd.netmeeting.conf
include /etc/openldap/slapd.access.conf
 
 
# Do not enable referrals until AFTER you have a working
directory
# service AND an understanding of referrals.
#referral       ldap://root.openldap.org
 
pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args
 
modulepath      /usr/lib/openldap
#moduleload      back_dnssrv.la
#moduleload      back_ldap.la
#moduleload      back_passwd.la
#moduleload      back_sql.la
 
# To allow TLS-enabled connections, create
/usr/share/ssl/certs/slapd.pem
# and uncomment the following lines.
#TLSCipherSuite         HIGH:MEDIUM:+SSLv2
TLSCertificateFile      /etc/openldap/ldap.pem
TLSCertificateKeyFile   /etc/openldap/ldap.pem
TLSCACertificateFile    /etc/openldap/ldap.pem
 
#######################################################################
# ldbm database definitions
#######################################################################
 
 
objectclass
        requires
                top
 
database        ldbm
cachesize       1000
dbcachesize     100000
suffix 		"o=dc=magtech,dc=com,dc=au, c=AU"
rootdn          "cn=Manager,dc=magtech,dc=com,dc=au"
rootpw          XXXXXXXXX

#rootdn         "cn=Manager,o=My Organization Name,c=US"
# The database directory MUST exist prior to running slapd
AND
# should only be accessable by the slapd/tools. Mode 700
recommended.
directory       /var/lib/ldap
 
# Indices to maintain
#index  objectClass                             eq
index   objectClass,uid,uidNumber,gidNumber     eq
index   cn,mail,surname,givenname              
eq,subinitial
 
 
# Basic ACL
access to attr=userPassword
        by self write
        by anonymous auth
        by dn="uid=root,ou=People,dc=magtech,dc=com,dc=au"
write
        by * none
 
access to *
        by dn="uid=root,ou=People,dc=magtech,dc=com,dc=au"
write
        by * read

end-of-slapd.conf

I could start slapd and below is part of the output with a
(-1) debug level :

@(#) $OpenLDAP: slapd 2.0.19-Release (Tue Dec 25 09:04:04
CET 2001) $
       
snailtalk@ke.mandrakesoft.com:/home/snailtalk/RPM/BUILD/openldap-2.0.19/servers/slapd
daemon_init: ldap:/// ldaps:///
daemon_init: listen on ldap:///
daemon_init: listen on ldaps:///
daemon_init: 2 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: socket() failed errno=97 (Address family not
supported by protocol)
daemon: initialized ldap:///
ldap_url_parse_ext(ldaps:///)
daemon: socket() failed errno=97 (Address family not
supported by protocol)
daemon: initialized ldaps:///
daemon_init: 2 listeners opened
slapd init: initiated server.
slap_sasl_init: initialized!
reading config file /etc/openldap/slapd.conf

Now if I tried to use ldapsearch or ldapadd I always get
some error but cannot determine what it is due to, if anyone
has any ideas it would be greatly appreciated.

When I use ldapsearch I get the following error (as part of
debug output):

[root@ocean doc]# ldapsearch -x -b 'dc=magtech,dc=com,dc=au'
'(objectclass=*)'
version: 2

#
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

If I use "slapcat" to get a dump of the database I get a
"backend" type error as part of it's debug output :

[root@ocean doc]# slapcat -f /etc/openldap/slapd.conf -d-1
-b 'dc=magtech,dc=com,dc=au'
slapcat init: initiated tool.
reading config file /etc/openldap/slapd.conf
line 10 (include       
/usr/share/openldap/schema/core.schema)
reading config file /usr/share/openldap/schema/core.schema
....
slapcat: slap_init no backend for "dc=magtech,dc=com,dc=au"


If anyone has experienced these problems with this version
any help would be appreciated. In essence I modified the
sample data in the slapd.conf file and started slapd (all as
"root"), then proceeded to test it by using ldapsearch and
slapcat.

At this stage I am trying just to get our Organization name
and rootDN setup before adding any other entries into the
LDAP database. 

I am running all of this on a Linux Mandrake V8.1 platform
running on an Athlon based Server with 512MB RAM and oodles
of disk space.

Regards
Paul
-- 
###################################################################
Paul Milazzo
Magellan Technologies
65 Johnston St
Annandale, 2038 NSW, Australia
Tel +61 2 9518 7011
Fax +61 2 9518 7620
Email : paulm@magtech.com.au
Web   : http://www.magtech.com.au
In theory, there's no difference between theory and
practice. In practice,
there is. - Unknown.
###################################################################
begin:vcard 
n:Milazzo;Paul
tel;fax:(02) 9518 7620
tel;work:(02) 9518 7011
x-mozilla-html:FALSE
url:http://www.magtech.com.au/
org:Magellan Technology
adr:;;65 Johnston St;Annandale;NSW;2038;Australia
version:2.1
email;internet:paulm@magtech.com.au
x-mozilla-cpt:;17408
fn:Paul Milazzo
end:vcard