Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 238681 | Differences between
and this patch

Collapse All | Expand All

(-)bind-9.4.0b2/contrib/dlz/drivers/dlz_ldap_driver.c (+20 lines)
Lines 136-141 Link Here
136
	isc_result_t result = ISC_R_SUCCESS;
136
	isc_result_t result = ISC_R_SUCCESS;
137
	int ldap_result;
137
	int ldap_result;
138
	LDAPURLDesc *ldap_url = NULL;
138
	LDAPURLDesc *ldap_url = NULL;
139
	char * pch;
140
	int i;
141
142
        while (1) {
143
            pch = (char*) memchr (URL, '%', strlen(URL));
144
            if (pch!=NULL) {
145
		//            printf ("Character l was at position %d.\n", pch-URL3+1);
146
                i = pch-URL;
147
    		URL[i] = '_';
148
	    } else break;
149
	}
139
150
140
	if (!ldap_is_ldap_url(URL)) {
151
	if (!ldap_is_ldap_url(URL)) {
141
		isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE,
152
		isc_log_write(dns_lctx, DNS_LOGCATEGORY_DATABASE,
Lines 203-208 Link Here
203
	if (ldap_url != NULL)
214
	if (ldap_url != NULL)
204
		ldap_free_urldesc(ldap_url);
215
		ldap_free_urldesc(ldap_url);
205
216
217
	while (1) {
218
            pch = (char*) memchr (URL, '_', strlen(URL));
219
            if (pch!=NULL) {
220
	    //            printf ("Character l was at position %d.\n", pch-URL3+1);
221
	      i = pch-URL;
222
	      URL[i] = '%';
223
	    } else break;
224
	}
225
206
	return result;
226
	return result;
207
}
227
}
208
/*% Connects / reconnects to LDAP server */
228
/*% Connects / reconnects to LDAP server */

Return to bug 238681