• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

DHCP with LDAP Backend

Scheduled Pinned Locked Moved DHCP and DNS
1 Posts 1 Posters 4.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    bahba
    last edited by Sep 22, 2011, 2:29 PM

    Hi,

    I am using pfSense for some years and now using 2.0 version as a FIREWALL+DHCP+++++++++. :-)

    I already have a LDAP server with DHCP schema (configured on a Debian with dhcp.schema from isc-dhcp-server package) and would like to use it as a backend to pfSense DHCP. My LDAP are ok working as a backend to samba, e-mail, apache, etc.

    On pfSense I had 2 lan interfaces (172.16.0.1 and 192.168.0.1) and configured DHCP with all options ok and with LDAP URI for each lan like: ldap://my_ldap_ip/ou=DHCP,dc=mydomain

    I had configured DHCP hosts on my LDAP using this config as a base reference: http://wiki.herzbube.ch/index.php/ISCDHCP.

    dc=mydomain
    |
    ou=DHCP,dc=mydomain
    |
    dn: cn=host1,ou=DHCP,dc=mydomain
    cn: host1
    objectClass: top
    objectClass: dhcpHost
    dhcpHWAddress: ethernet 00:aa:fa:f01:8d:00
    dhcpStatements: fixed-address 192.168.2.4

    The connection is ok: Sep 22 11:22:46 ldapserver slapd[17445]: conn=39 fd=26 ACCEPT from IP=my_pfsense_ip:21023 (IP=0.0.0.0:389)

    The problem:
    When the host1 are configured on pfSense with MAC, Hostname, IP… the DHCP server send the correct IP to client. But, when the host1 is not configured on pfSense and configured on LDAP the DHCP send a random IP from the configured DHCP range.

    I want all the DHCP configs on pfSense (I don't need then on LDAP but if necessary I can put) and only hosts on LDAP.

    How to do it?

    Thanks a lot and sorry for my bad english.
    VR

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received