hi,
i need help about ldap configuration, please.
i configured slapd.conf like this:
/include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd.args loglevel none modulepath /usr/lib/ldap moduleload back_hdb sizelimit 500
backend hdb database hdb suffix "dc=amahoro,dc=bi" directory "/var/lib/ldap" dbconfig set_cachesize 0 2097152 0 dbconfig set_lk_max_objects 1500 dbconfig set_lk_max_lockers 1500 index objectClass eq lastmod on checkpoint 512 30 /
andldap.conf like this:
/# # LDAP Defaults #
# See ldap.conf(5) for details # This file should be world readable but not world writable.
BASE dc=amahoro,dc=bi URI ldap://192.168.5.4
#SIZELIMIT 12 #TIMELIMIT 15 #DEREF never/
but running ldapsearch the answer is /ldap_sasl_interactive_bind_s: Can't contact LDAP server (-1)/
what is wrong?
thanks
Am Mon, 20 Feb 2012 07:54:13 +0100 schrieb stefano stefano.malini@gmail.com:
hi,
i need help about ldap configuration, please.
i configured slapd.conf like this:
/include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd.args loglevel none modulepath /usr/lib/ldap moduleload back_hdb
[...] you have not defined the module as file.
man slpad.conf(5) moduleload <filename> Specify the name of a dynamically loadable module to load. In order to recieve more information, run slapd(8) in debugging mode.
-Dieter
I just startedto useldap.I did the installationon debianwith apt-get installdirectlyso I didn'tcompilethe source. which file shouldbe loadedin moduleload? how runslapdindebugmode?
thanks
On 02/20/2012 08:36 AM, Dieter Klünter wrote:
Am Mon, 20 Feb 2012 07:54:13 +0100 schrieb stefanostefano.malini@gmail.com:
hi,
i need help about ldap configuration, please.
i configured slapd.conf like this:
/include /etc/ldap/schema/core.schema include /etc/ldap/schema/cosine.schema include /etc/ldap/schema/nis.schema include /etc/ldap/schema/inetorgperson.schema pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd.args loglevel none modulepath /usr/lib/ldap moduleload back_hdb
[...] you have not defined the module as file.
man slpad.conf(5) moduleload<filename> Specify the name of a dynamically loadable module to load. In order to recieve more information, run slapd(8) in debugging mode.
-Dieter
Am Mon, 20 Feb 2012 09:46:56 +0100 schrieb stefano stefano.malini@gmail.com:
I just startedto useldap.I did the installationon debianwith apt-get installdirectlyso I didn'tcompilethe source. which file shouldbe loadedin moduleload? how runslapdindebugmode?
[...]
modulepath /usr/lib/ldap moduleload back_hdb
[...]
you have not defined the module as file.
man slapd.conf(5) moduleload<filename> Specify the name of a dynamically loadable module to load. In order to recieve more information, run slapd(8) in debugging mode.
You have defined the directory which contains modules, visit this directory. The correct file name of back_hdb module should be back_hdb.la. With regard to debugging mode of slapd, I referenced man slapd(8), which says: -d debug-level Turn on debugging as defined by debug-level. for more information on debugging see man slapd.conf(5), in particular on loglevel. loglevel <integer> [...] Specify the level at which debugging ...
Just add an apropriate loglevel to the -d flag of slapd.
-Dieter
openldap-technical@openldap.org