Hello list,
On a test VM I create a replica of my LDAP server, install pureFtp-ldap and configure it.
It work perfectly. I can login on my vm, use ftp user too.
But when I try to start ldap with the init script, it failed. I found that on the log file:
Oct 8 16:02:38 ldap-test slapd[3507]: @(#) $OpenLDAP: slapd (Apr 23 2013 12:16:04) $#012#011root@lupin:/tmp/buildd/openldap-2.4.31/debian/build/servers/slapd Oct 8 16:02:38 ldap-test slapd[3507]: daemon: bind(10) failed errno=2 (No such file or directory) Oct 8 16:02:38 ldap-test slapd[3507]: slapd stopped. Oct 8 16:02:38 ldap-test slapd[3507]: connections_destroy: nothing to destroy.
If I launch it on the cli: # slapd
Everything work perfectly.
I can figure what's wrong with the startup script.
Is somebody could see what's wrong ?
Thanks in advance, Jacques Foucry
--On Tuesday, October 08, 2013 4:15 PM +0200 Jacques Foucry jacques.foucry@novasparks.com wrote:
Hello list,
On a test VM I create a replica of my LDAP server, install pureFtp-ldap and configure it.
It work perfectly. I can login on my vm, use ftp user too.
But when I try to start ldap with the init script, it failed. I found that on the log file:
This likely runs as something other than root, and specifies a specific configuration location.
If I launch it on the cli: # slapd
This runs as root and uses the default location for configuration.
Examine your init script and see where it is trying to load its configuration from.
--Quanah
--
Quanah Gibson-Mount Architect - Server Zimbra Software, LLC -------------------- Zimbra :: the leader in open source messaging and collaboration
Le 08/10/2013 18:30, Quanah Gibson-Mount a écrit : Hello,
Examine your init script and see where it is trying to load its configuration from.
Well I look at the startup script and it looks good. But, I try to run init on debug mode (sh -x ./slapd start).
It fails too but I can see the command line use to start:
start-stop-daemon --start --quiet --oknodo --pidfile /var/run/openldap/slapd.pid --exec /usr/sbin/slapd -- -h ldap:/// ldapi:/// -g openldap -u openldap -f /etc/ldap/slapd.conf
All folder exists, openldap user and groups too and the config file path is correct.
I found that: + /usr/bin/tput hpa 0 + [ 1 -eq 0 ] + [ 1 -eq 255 ] + /bin/echo -ne [FAIL [FAIL+ /usr/bin/tput rc
tput is define (TPUT=/lib/lsb/init-functions) in sourced functions library.
Sounds not a OpenLDAP issue/problem.
Thanks for your help. Jacques
openldap-technical@openldap.org