phpldapadmin is able to login both anonymously and as cn=Manager,dc=office. However, it reports, in the left column:
Code: Select all
dc=office
his base entry does not exist
Code: Select all
#ldapsearch -x -b "dc=office"
# extended LDIF
#
# LDAPv3
# base <dc=dave> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
# numResponses: 1
Code: Select all
dn: dc=office
dc: office
objectClass: dcObject
objectClass: organizationalUnit
ou: the office
Code: Select all
# slapadd -v -l /tmp/base.ldif
ldbm_back_db_open: database already in use
backend_startup_one: bi_db_open failed! (-1)
slap_startup failed
Code: Select all
@(#)$Id: ldap.conf,v 2.45 2006/01/13 16:15:34 lukeh Exp $
host 127.0.0.1
base dc=office
# uri ldap://127.0.0.1/
# uri ldaps://127.0.0.1/
# uri ldapi://%2fvar%2frun%2fldapi_sock/
# Note: %2f encodes the '/' used as directory separator
ldap_version 3
rootbinddn cn=Manager,dc=office
#port 389
# The search scope.
scope sub
Code: Select all
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
password-hash {SSHA}
loglevel 296
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
TLSCertificateFile /etc/ssl/private/ldap.pem
TLSCertificateKeyFile /etc/openldap/ssl/ldap.pem
TLSCACertificateFile /etc/ssl/private/ldap.pem
# database bdb
database ldbm
suffix "dc=dave"
rootdn "cn=Manager,dc=dave"
# checkpoint 32 30 # <kbyte> <min>
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw {SSHA}xxx
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /var/lib/openldap-data
# mode 0600
# Indices to maintain
index objectClass eq
index cn,uid eq
index uidNumber eq
index gidNumber eq
access to *
by users read
by anonymous read
access to attrs=userPassword,gecos,description,loginShell
by self write

