Hi guys. How can i set up logging for openldap so i can find out why the damn thing won't start? :P i've got the good old ldap_bind: can't contact LDAP server (-1) problem... and i'd like to look at a log file to see what is causing the problem I know how to set the loglevel to 256 in the configuration file, but no idea what file to look at for the output. Help! :D
Thanks and Kind Regards,
Ian Moroney Field Engineer
T: 020 8891 3010 M: 07791 965924 F: 020 8288 2591 www.techdivision.co.uk http://www.techdivision.co.uk/
TechDivision - Making IT Work
--On Tuesday, February 06, 2007 6:46 PM +0000 Ian Moroney ian.moroney@techdivision.co.uk wrote:
Hi guys. How can i set up logging for openldap so i can find out why the damn thing won't start? :P i've got the good old ldap_bind: can't contact LDAP server (-1) problem... and i'd like to look at a log file to see what is causing the problem I know how to set the loglevel to 256 in the configuration file, but no idea what file to look at for the output. Help! :D
Personally, when slapd won't work, I turn on debugging:
slapd -d -1
and read the output.
Of course, being unable to bind to the ldap server doesn't mean it isn't running... I assume you checked to see whether or not there was a slapd process?
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITS/Shared Application Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
<quote who="Ian Moroney">
Hi guys. How can i set up logging for openldap so i can find out why the damn thing won't start? :P i've got the good old ldap_bind: can't contact LDAP server (-1) problem... and i'd like to look at a log file to see what is causing the problem I know how to set the loglevel to 256 in the configuration file, but no idea what file to look at for the output. Help! :D
Add to your syslog.conf:
LOCAL4.* -/var/log/openldap.log
etc. and restart slapd and syslog
See:
http://www.openldap.org/faq/data/cache/80.html
Ian Moroney wrote:
Hi guys. How can i set up logging for openldap so i can find out why the damn thing won't start? :P
"Logging" is not a debug tool. Read the slapd(8) manpage and use the -d flag.
i've got the good old ldap_bind: can't contact LDAP server (-1) problem... and i'd like to look at a log file to see what is causing the problem I know how to set the loglevel to 256 in the configuration file, but no idea what file to look at for the output. Help! :D
openldap-software@openldap.org