Submitted By: Mario Fetka (mario dot fetka at gmail dot com) Date: 2009-07-08 Initial Package Version: 3.1.2 Origin: http://bugs.gentoo.org/show_bug.cgi?id=160979#c13 Upstream Status: unknown Description: correct wrong offset diff -Naur ldap-for-dhcp-3.1.2-1.orig/dhcp-3.1.2-ldap.patch ldap-for-dhcp-3.1.2-1/dhcp-3.1.2-ldap.patch --- ldap-for-dhcp-3.1.2-1.orig/dhcp-3.1.2-ldap.patch 2009-07-07 20:05:05.000000000 +0000 +++ ldap-for-dhcp-3.1.2-1/dhcp-3.1.2-ldap.patch 2009-07-08 16:56:45.249825366 +0000 @@ -192,25 +192,25 @@ #endif +#if defined(LDAP_CONFIGURATION) -+# define SV_LDAP_SERVER 47 -+# define SV_LDAP_PORT 48 -+# define SV_LDAP_USERNAME 49 -+# define SV_LDAP_PASSWORD 50 -+# define SV_LDAP_BASE_DN 51 -+# define SV_LDAP_METHOD 52 -+# define SV_LDAP_DEBUG_FILE 53 -+# define SV_LDAP_DHCP_SERVER_CN 54 -+# define SV_LDAP_REFERRALS 55 ++# define SV_LDAP_SERVER 53 ++# define SV_LDAP_PORT 54 ++# define SV_LDAP_USERNAME 55 ++# define SV_LDAP_PASSWORD 56 ++# define SV_LDAP_BASE_DN 57 ++# define SV_LDAP_METHOD 58 ++# define SV_LDAP_DEBUG_FILE 59 ++# define SV_LDAP_DHCP_SERVER_CN 60 ++# define SV_LDAP_REFERRALS 61 +#if defined (USE_SSL) -+# define SV_LDAP_SSL 56 -+# define SV_LDAP_TLS_REQCERT 57 -+# define SV_LDAP_TLS_CA_FILE 58 -+# define SV_LDAP_TLS_CA_DIR 59 -+# define SV_LDAP_TLS_CERT 60 -+# define SV_LDAP_TLS_KEY 61 -+# define SV_LDAP_TLS_CRLCHECK 62 -+# define SV_LDAP_TLS_CIPHERS 63 -+# define SV_LDAP_TLS_RANDFILE 64 ++# define SV_LDAP_SSL 62 ++# define SV_LDAP_TLS_REQCERT 63 ++# define SV_LDAP_TLS_CA_FILE 64 ++# define SV_LDAP_TLS_CA_DIR 65 ++# define SV_LDAP_TLS_CERT 66 ++# define SV_LDAP_TLS_KEY 67 ++# define SV_LDAP_TLS_CRLCHECK 68 ++# define SV_LDAP_TLS_CIPHERS 69 ++# define SV_LDAP_TLS_RANDFILE 70 +#endif +#endif +