[Date Prev][Date Next] [Chronological] [Thread] [Top]

Can't contact LDAP server (sorry, it's long)



Hi,

I'm trying to start the openldap server.
I've read some documentation, but where the ldapadd would be work : it isn't.
I run on a Debian potato.
let me pesent some of my configuration files :

	#/etc/openldap/ldap.conf
	HOST iea.mine.nu
	PORT 389
	BASE dc=iea, dc=mine, dc=nu, o=IEALDAP, c=FR

	#/etc/openldap/slapd.conf
	include         /etc/openldap/slapd.at.conf
	include         /etc/openldap/slapd.oc.conf
	schemacheck     off
	pidfile         /var/run/slapd.pid
	argsfile        /var/run/slapd.args
	database        ldbm
	suffix          "dc=iea, dc=mine, dc=nu, o=IEALDAP, c=FR"
	rootdn          "cn=manager, dc=iea, dc=mine, dc=nu, o=IEALDAP, c=FR"
	#here this is not the real :
	rootpw          somesecretpassword
	directory       "/var/lib/openldap"
	replogfile      "/var/log/openldap/slapd.log"
	access to * by dn="cn=manager, dc=iea, dc=mine, dc=nu, o=IEALDAP, c=FR"\
	write

and i start the slapd with :
	#/etc/init.d/openldap
	# not all the script
	DAEMON=/usr/sbin/slapd
	 start-stop-daemon --start --quiet --pidfile /var/run/slapd.pid \
         --exec $DAEMON

right, i'm write this ldif file:
	#test
	dn: dc=iea, dc=mine, dc=nu, o=IEALDAP, c=FR
	dc: iea
	dc: mine
	dc: nu
	o: IEALDAP
	c: FR
	objectclass: organization
	objectclass: dcObject

	dn: cn=manager, dc=iea, dc=mine, dc=nu, o=IEALDAP, c=FR
	cn: manager
	cn: Philippe
	sn: Hermoso
	mail: philippe@iea.mine.nu
	objectclass: person
	uid: manager

and run this command :
	$ldif2ldbm -i test

it look's  ok:
	$ ldapsearch -h iea.mine.nu -b ' dc=iea, dc=mine, dc=nu, o=IEALDAP,\
	c=FR' 'objectclass=*'

	dc=iea, dc=mine, dc=nu, o=IEALDAP, c=FR
	dc=iea
	dc=mine
	dc=nu
	o=IEALDAP
	c=FR
	objectclass=organization
	objectclass=dcObject
	
	cn=manager, dc=iea, dc=mine, dc=nu, o=IEALDAP, c=FR
	cn=manager
	cn=Philippe
	sn=Hermoso
	mail=philippe@iea.mine.nu
	objectclass=person
	uid=manager
	
but, when i try to add this ldif file:
	#test2
	dn: cn=Laila Filali, dc=iea, dc=mine, dc=nu, o=IEALDAP, c=FR 
	cn: Laila Filali
	cn: Princesse
	sn: Filali
	title: Un sacré numéro 
	mail: laila@iea.mine.nu 
	uid: lfilali
	objectclass: person

with this command (and the real password):
	$  ldapadd  -h iea.mine.nu -w password -D 'cn=manager, dc=iea, dc=mine,\
	dc=nu, o=IEALDAP, c=FR' -f test2 -d 1

i've got:
	ldap_init
	ldap_bind_s
	ldap_simple_bind_s
	ldap_simple_bind
	ldap_send_initial_request
	open_ldap_connection
	ldap_connect_to_host: iea.mine.nu:389
	sd 4 connected to: 192.168.0.1
	ldap_delayed_open successful, ld_host is (null)
	ldap_send_server_request
	ber_flush: 71 bytes to sd 4
	ldap_result
	wait4msg (infinite timeout)
	** Connections:
	* host: iea.mine.nu  port: 389  (default)
	  refcnt: 2  status: Connected
	    last used: Wed Dec  8 16:17:57 1999

	    ** Outstanding Requests:
	     * msgid 1,  origid 1, status InProgress
	        outstanding referrals 0, parent count 0
		** Response Queue:
		   Empty
		   do_ldap_select
		   read1msg
		   ber_get_next
		   ldap_perror
	ldap_bind: Can't contact LDAP server

Can you see the problem ? 
Your help will be appreciated.

Thank you for your read.

-- 
Philippe
-+-
"Accepter sans sourciller n'est que le premier pas dans la spirale infernale de
la compromission généralisée par laquelle chacun se fait le complice de 
l'oppression de chaque autre. Toute atteinte à la liberté de quiconque est une 
atteinte à la liberté de tous" -+- François René Rideau : "Le libre Logiciel"