- 'server' -> 'service' in dhclient-script (#462343)

- Fix dhcpd so it can find configuration data via LDAP (#452985)
This commit is contained in:
David Cantrell 2008-09-29 19:09:29 +00:00
parent 2d1ec1921c
commit 8a3e2aa7de
2 changed files with 5 additions and 4 deletions

View File

@ -1073,8 +1073,8 @@ diff -up /dev/null dhcp-4.0.0/server/ldap.c
+ creds.bv_val = strdup(ldap_password);
+ creds.bv_len = strlen(ldap_password);
+
+ if ((ret == ldap_sasl_bind_s (ld, ldap_username, LDAP_SASL_SIMPLE,
+ &creds, NULL, NULL, NULL)) != LDAP_SUCCESS)
+ if ((ret = ldap_sasl_bind_s (ld, ldap_username, LDAP_SASL_SIMPLE,
+ &creds, NULL, NULL, NULL)) != LDAP_SUCCESS)
+ {
+ log_error ("Error: Cannot login into ldap server %s:%d: %s",
+ ldap_server, ldap_port, ldap_err2string (ret));
@ -1478,7 +1478,7 @@ diff -up /dev/null dhcp-4.0.0/server/ldap.c
+ return (EOF);
+
+ cfile->bufix = 1;
+ cfile->buflen = strlen (cfile->inbuf);
+ cfile->buflen = strlen (cfile->inbuf) - 1;
+ if (cfile->buflen > 0)
+ ldap_write_debug (cfile->inbuf, cfile->buflen);
+

View File

@ -440,8 +440,9 @@ fi
%{_libdir}/libdhcp4client.so
%changelog
* Tue Sep 16 2008 David Cantrell <dcantrell@redhat.com> - 12:4.0.0-24
* Mon Sep 29 2008 David Cantrell <dcantrell@redhat.com> - 12:4.0.0-24
- 'server' -> 'service' in dhclient-script (#462343)
- Fix dhcpd so it can find configuration data via LDAP (#452985)
* Fri Aug 29 2008 David Cantrell <dcantrell@redhat.com> - 12:4.0.0-23
- Prevent $metric from being set to '' (#460640)