There is a patch at http://www.newwave.net/~masneyb/ adding (open)ldap support for dhcpd (3.0.5). Would be great if this patch could make it into the main ebuild (optional via ldap useflag). Little fixing is required to make the code compile (adding the LIBS statement). TIA :) Nico --- /usr/portage/net-misc/dhcp/dhcp-3.0.5.ebuild 2006-12-20 12:36:07.000000000 +0000 +++ dhcp-3.0.5.ebuild 2007-01-08 19:46:36.000000000 +0000 @@ -27,6 +27,9 @@ unpack ${A} cd "${S}" + #Enable LDAP-Support + epatch "${FILESDIR}/${PN}"-3.0.5-ldap.patch + # Gentoo patches - these will probably never be accepted upstream # Enable chroot support epatch "${FILESDIR}/${PN}"-3.0-paranoia.patch @@ -119,6 +122,7 @@ #define _PATH_DHCLIENT_DB "/var/lib/dhcp/dhclient.leases" #define _PATH_DHCLIENT_PID "/var/run/dhcp/dhclient.pid" #define DHCPD_LOG_FACILITY LOG_LOCAL1 + #define USE_SSL END cat <<-END > site.conf @@ -138,6 +142,7 @@ USRMANDIR = /usr/share/man/man1 USRMANEXT = .1 MANCAT = man + LIBS=-lssl -lcrypto -lldap -llber END ./configure --copts "-DPARANOIA -DEARLY_CHROOT -DEXTENDED_NEW_OPTION_INFO \ Reproducible: Always Steps to Reproduce: tested a few times and no problems with patch :)
Created attachment 106097 [details] modified ebuild (dhcp-3.0.5.ebuild)
Created attachment 106099 [details, diff] dhcp-3.0.5-ldap.patch from http://www.newwave.net/~masneyb/
I'm not willing to integrate LDAP into dhcpd at this time. Upstream did indicate that they would at some point though.
Upstream are now releasing new 4.0.0 alpha's - it's a good time to pester them about this if ldap support isn't already there.
I'll just reopen this bug as DCHP 4 has been released without LDAP support. I understand a lot of other distributions ship this patch, and we're losing interoperability just because of upstream blocking inclusion.
Created attachment 175402 [details, diff] Updated 2/23/2007 from http://www.newwave.net/~masneyb/ newest patch from http://www.newwave.net/~masneyb/ at 2/23/2007 are availble and with this patch dhcp work with "ldap-method dynamic;" previos patch work only "ldap-method static;".
Created attachment 192008 [details, diff] diff for net-misc/dhcp-3.0.7 BTW: ISC writes that 3.0.7 has EOL status and all versions before is just deprecated.
Created attachment 192009 [details] an ebuild for net-misc/dhcp-3.0.7 It's important for me to install schema and README.ldap
Created attachment 197029 [details] net-misc/dhcp-4.0.1.ebuild this is the patched ebuild for dhcp ldap support the patch for 3.1.2 is on the way my overlay for ldap patched dhcp ebuilds can be found in #196358
Created attachment 197054 [details, diff] diff to ebuild
Created attachment 197113 [details, diff] 3.1.2 ldap diff
Created attachment 197114 [details] 4.0.1 ldap diff new version correct dependencies on ldap? ( ssl? ( .. ) )
Created attachment 197204 [details, diff] Patches the ldap enabling patch in dhcp-4.0.1 Ldap patch in dhcp-4.0.1 is messed up and makes dhcpd read ldap-password as ldap-server, etc. All those # define SV_LDAP_SERVER 60 # define SV_LDAP_PORT 61 # define SV_LDAP_USERNAME 62 # define SV_LDAP_PASSWORD 63 # define SV_LDAP_BASE_DN 64 ldap related entries are off by 3 when compared with stables.c in the same ldap patch, so i'm correcting that. Put that patch in net-misc/dhcp/files and apply the following patch on Mario Fetka's ebuild. So far it works for me. --- dhcp-4.0.1.ebuild 2009-07-08 17:52:58.000000000 +0200 +++ dhcp-4.0.1.ebuild-with_ldap_config_patch 2009-07-08 17:52:51.000000000 +0200 @@ -73,6 +73,7 @@ epatch "${FILESDIR}/${PN}"-3.0.3-dhclient-dbus.patch # Ldap patch for dhcp + epatch "${FILESDIR}/dhcp-${MY_LDAP_PV}"-ldap.patch-config.patch epatch "${WORKDIR}/ldap-for-dhcp-${LDAP_PV}/dhcp-${MY_LDAP_PV}"-ldap.patch # Brand the version with Gentoo
Created attachment 197213 [details, diff] ldap offset such a patch is also needed for 3.1.2
(In reply to comment #13) > Created an attachment (id=197204) [edit] > Patches the ldap enabling patch in dhcp-4.0.1 > > Ldap patch in dhcp-4.0.1 is messed up and makes dhcpd read ldap-password as > ldap-server, etc. thx alredy told upstrem about this error
Created attachment 197217 [details, diff] new ebuild patch corrected some small bugs like don't download ldap patch when whrn no ldap use flag .... and many more
Created attachment 197219 [details, diff] dhcp-3.1.2.ebuild ldap patch correct some small bugs (same as with 4.0.1 patch)
my overlay holds all dhcp/ldap updates (even dhcp-4.1.0) and bug corrections layman file: http://ftp.mars.arge.at/pub/overlay/geos_one-overlay.xml overly named mds next on my todo list is mozldap support (fedora directory server)
just tested dhcp-4.1.0 from overlay mds, on amd64 & i686, both work as expected. thanks.
(In reply to comment #19) > just tested dhcp-4.1.0 from overlay mds, on amd64 & i686, both work as > expected. > > thanks. > great thanks for feedback
Created attachment 237107 [details] net-misc/dhcp-4.1.1_p1.ebuild Updated ebuild (patch now mandatory)
(In reply to comment #18) > my overlay holds all dhcp/ldap updates (even dhcp-4.1.0) and bug corrections > layman file: > http://ftp.mars.arge.at/pub/overlay/geos_one-overlay.xml > overly named mds > next on my todo list is mozldap support (fedora directory server) too bad it is 404 and too bad this happens....: http://bugs.gentoo.org/show_bug.cgi?id=331915
(In reply to comment #22) > (In reply to comment #18) > > my overlay holds all dhcp/ldap updates (even dhcp-4.1.0) and bug corrections > > layman file: > > http://ftp.mars.arge.at/pub/overlay/geos_one-overlay.xml > > overly named mds > > next on my todo list is mozldap support (fedora directory server) > > > too bad it is 404 and too bad this happens....: > http://bugs.gentoo.org/show_bug.cgi?id=331915 > the location of my overlay list has changed the company i am working for didn't want to be related to my projects the new location is http://ftp.disconnected-by-peer.at/pub/overlay/geos_one-overlay.xml thx Mario
> the location of my overlay list has changed > the company i am working for didn't want to be related to my projects > > the new location is > http://ftp.disconnected-by-peer.at/pub/overlay/geos_one-overlay.xml > > thx > Mario thank you :)
Good news for us ISC included the ldap patch into the 2.4.0 release so this ebuild mods can then be added to the 4.2.0 ebuild when it arrives (will do it in a view days when noone beats me first) and add it to my mds overlay
update to 4.2.0 is finisched all still required patches updated now in mds overlay
dhcp-4.2.1 now respects USE=ldap and USE=ssl for the ldap/ldapcrypto flags