LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-10-2015, 07:18 AM   #1
thierix
LQ Newbie
 
Registered: May 2015
Posts: 1

Rep: Reputation: 0
connect isc-dhcp to ldap failed debian jessie


hello i need help
I'm not abble to connect correctly my isc-dhcp-server(v4.3.1-6) with ldap server(slapd v2.4.40)

systemctl status isc-dhcp-server.service said: isc-dhcp-server[50716]: Error: Cannot login into ldap server localhost:389: Can't contact LDAP server
my password is good !
i've configured ldap server with ldif
my /etc/ldap/ldap.conf is:

BASE dc=lakaz,dc=lan
URI ldap://localhost
SIZELIMIT 12
TIMELIMIT 15
DEREF never

my dhcp.conf is
##################################################
##### fichier de configuration serveur DHCP ######
##### /etc/dhcp/dhcpd.conf #######
#
##config pour ldap;
ldap-server "localhost";
ldap-port 389;
ldap-base-dn "dc=lakaz,dc=lan";
ldap-username "ou=dhcpmanager,dc=lakaz,dc=lan";
ldap-password {SSHA}***************************;
ldap-password "**********";
ldap-method static;
ldap-debug file "/var/log/dhcp-ldap-startup.log";
ldap-dhcp-server-cn "server";
#
# config de base pour le serveur dhcp:
# interfaces reseaux ecoutées (eth0 box eth1 local)
# voir fichier /etc/default/isc-dhcp-server
#INTERFACES="eth0 eth1 local";
# controls whether or not the server will attempt to do a DNS update when a lease is confirmed.
ddns-update-style none;
# nom du domaine sur le reseau local
#option domain-name "lakaz.lan";
# Adresse de la box
#option routers 10.0.0.254;
option routers 172.16.0.21;
# option router fe80::20c:29ff:fe91:20e3
# serveur DNS
option domain-name-servers 10.0.0.254, 208.67.222.222;
# Temps durant lequel les adresses seront allouées aux clients
default-lease-time 86400;
#defaut 600
max-lease-time 604800;
#defaut 7200
# autorité du serveur sur le reseau local
authoritative;
# Niveau de log pour serveur dhcp
log-facility local7;
# Attribution des adresses des clients
subnet 172.16.0.0 netmask 255.255.0.0 {
# rang d'attribution
range 172.16.0.100 172.16.0.200;
#Broadcast pour les information générales
option broadcast-address 172.16.0.255;
}
# adresses fixes
# host passacaglia {
# hardware ethernet 0:0:c0:5d:bd:95;
# filename "vmunix.passacaglia";
# server-name "toccata.fugue.com";
# }
# host fantasia {
# hardware ethernet 08:00:07:26:c0:a5;
# fixed-address fantasia.fugue.com;
# }


any idea to find solution ??
 
Old 05-11-2015, 02:28 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Seems like dhcp cant find ldap in the first place. ldap running? (netstat -tulpn | grep 389). iptables in place? Check /var/log/dhcp-ldap-startup.log if it holds any more infos. Maybe put some debug commands into dhcp config or start it directly with some debug options.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I perform maintenance on a master DNS/DHCP (BIND9/ISC-DHCP) Ubuntu server? Sniperm4n Linux - Server 2 09-09-2013 01:19 PM
how we can fix this isc-dhcp-server failed ? rjdbarsal Linux - Networking 3 07-12-2013 10:51 PM
Convert Linux ISC DHCP to Windows Netsh DHCP ravmohun Linux - Server 3 03-01-2012 04:29 AM
Debian Squeeze - isc-dhcp3-server failed to start (subnet problem?) uezelbruezel2000 Linux - Networking 2 11-16-2010 01:55 AM
Migrate DHCP from Microsoft to ISC DHCP on Linux rsmccain Linux - Networking 4 10-27-2006 07:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration