Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 166406 Details for
Bug 238681
Bind ldap dlz support is broken
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bind.patch (text/plain), 1.04 KB, created by
Isakov Alexandr
on 2008-09-25 19:12:17 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Isakov Alexandr
Created:
2008-09-25 19:12:17 UTC
Size:
1.04 KB
patch
obsolete
>--- bind-9.4.0b2/contrib/dlz/drivers/dlz_ldap_driver.c 2005-09-05 00:18:19.000000000 +0000 >+++ bind-9.4.0b2.patched/contrib/dlz/drivers/dlz_ldap_driver.c 2006-10-30 18:53:14.000000000 +0000 >@@ -136,6 +136,17 @@ > isc_result_t result = ISC_R_SUCCESS; > int ldap_result; > LDAPURLDesc *ldap_url = NULL; >+ char * pch; >+ int i; >+ >+ while (1) { >+ pch = (char*) memchr (URL, '%', strlen(URL)); >+ if (pch!=NULL) { >+ // printf ("Character l was at position %d.\n", pch-URL3+1); >+ i = pch-URL; >+ URL[i] = '_'; >+ } else break; >+ } > > if (!ldap_is_ldap_url(URL)) { > isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE, >@@ -203,6 +214,15 @@ > if (ldap_url != NULL) > ldap_free_urldesc(ldap_url); > >+ while (1) { >+ pch = (char*) memchr (URL, '_', strlen(URL)); >+ if (pch!=NULL) { >+ // printf ("Character l was at position %d.\n", pch-URL3+1); >+ i = pch-URL; >+ URL[i] = '%'; >+ } else break; >+ } >+ > return result; > } > /*% Connects / reconnects to LDAP server */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238681
: 166406 |
217050
|
217051
|
217053