projkt4
4th September 2004, 06:49 PM
hi all, i am trying to get my ldap service to start and i am getting a failure every time. i tried running:
su root -c /usr/local/libexec/slapd
and i get this error;
bash: line 1: /usr/local/libexec/slapd: No such file or directory
when i try running:
slapd -d -1
i get this:
@(#) $OpenLDAP: slapd 2.1.22 (Oct 23 2003 10:23:24) $
root@bugs.devel.redhat.com:/usr/src/build/319319-i386/BUILD/openldap-2.1.22/build-servers/servers/slapd
daemon_init: <null>
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: socket() failed errno=97 (Address family not supported by protocol)
daemon: initialized ldap:///
daemon_init: 2 listeners opened
slapd init: initiated server.
slap_sasl_init: initialized!
bdb_initialize: initialize BDB backend
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
reading config file /etc/openldap/slapd.conf
line 4 (database bdb)
bdb_db_init: Initializing BDB database
line 5 (suffix "dc=klamathia,dc=org)
>>> dnPrettyNormal: <dc=klamathia,dc=org>
=> ldap_bv2dn(dc=klamathia,dc=org,0)
<= ldap_bv2dn(dc=klamathia,dc=org,0)=0
/etc/openldap/slapd.conf: line 5: suffix DN is invalid
slapd shutdown: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.
so i check my slapd.conf:
# slapd.conf /etc/openldap/
#modified by projkt4 09.03.04
database bdb
suffix "dc=klamathia,dc=org
rootdn "cd=admin,dc=klamathia,dc=org"
rootpw secret
directory /admin/dbased/frontier.ldif
#end
so i can conclude that i am misdirecting slapd to the wrong directory. the openldap walkthrough says that i should be pointing the directory to
/usr/local/var/openldap-data
problem is i dont have a directory called /usr/local/var
what should i be putting in this line?
P.S.
i caught the missing quotes, but i still get the same error
corrected, but still broken;
database bdb
suffix "dc=klamathia,dc=org"
rootdn "cd=admin,dc=klamathia,dc=org"
rootpw secret
directory /admin/dbased/frontier.ldif
P.P.S.
in staring at that diognostic i feel more confident that it has to do with my line dealing with SUFFIX
suffix "dc=klamathia,dc=org"
now i am only parialy sure that i have this setup correctly, i have my host name as klamathia, so i am not sure if i need the ,dc=org because i dont have .org in the hostname. am i going in the right direction?
su root -c /usr/local/libexec/slapd
and i get this error;
bash: line 1: /usr/local/libexec/slapd: No such file or directory
when i try running:
slapd -d -1
i get this:
@(#) $OpenLDAP: slapd 2.1.22 (Oct 23 2003 10:23:24) $
root@bugs.devel.redhat.com:/usr/src/build/319319-i386/BUILD/openldap-2.1.22/build-servers/servers/slapd
daemon_init: <null>
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: socket() failed errno=97 (Address family not supported by protocol)
daemon: initialized ldap:///
daemon_init: 2 listeners opened
slapd init: initiated server.
slap_sasl_init: initialized!
bdb_initialize: initialize BDB backend
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
reading config file /etc/openldap/slapd.conf
line 4 (database bdb)
bdb_db_init: Initializing BDB database
line 5 (suffix "dc=klamathia,dc=org)
>>> dnPrettyNormal: <dc=klamathia,dc=org>
=> ldap_bv2dn(dc=klamathia,dc=org,0)
<= ldap_bv2dn(dc=klamathia,dc=org,0)=0
/etc/openldap/slapd.conf: line 5: suffix DN is invalid
slapd shutdown: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.
so i check my slapd.conf:
# slapd.conf /etc/openldap/
#modified by projkt4 09.03.04
database bdb
suffix "dc=klamathia,dc=org
rootdn "cd=admin,dc=klamathia,dc=org"
rootpw secret
directory /admin/dbased/frontier.ldif
#end
so i can conclude that i am misdirecting slapd to the wrong directory. the openldap walkthrough says that i should be pointing the directory to
/usr/local/var/openldap-data
problem is i dont have a directory called /usr/local/var
what should i be putting in this line?
P.S.
i caught the missing quotes, but i still get the same error
corrected, but still broken;
database bdb
suffix "dc=klamathia,dc=org"
rootdn "cd=admin,dc=klamathia,dc=org"
rootpw secret
directory /admin/dbased/frontier.ldif
P.P.S.
in staring at that diognostic i feel more confident that it has to do with my line dealing with SUFFIX
suffix "dc=klamathia,dc=org"
now i am only parialy sure that i have this setup correctly, i have my host name as klamathia, so i am not sure if i need the ,dc=org because i dont have .org in the hostname. am i going in the right direction?