[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Bug in saslauthz.c (ITS#1687)
Full_Name: Anthony Brock
Version: 2.0.XX HEAD
OS: Solaris 8
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (209.170.224.27)
There is an improperly initialized variable in the sasl_authz.c file. As this
variable is needed in the calling function when using the sasl-regexp function,
please apply the following patch:
*** servers/slapd/saslauthz.c.orig Tue Mar 5 06:22:49 2002
--- servers/slapd/saslauthz.c Wed Mar 20 15:06:37 2002
***************
*** 59,68 ****
uri += sizeof("dn:")-1;
uri += strspn( uri, " " );
bv.bv_val = uri;
! /* FIXME: if dnNormalize actually uses input bv_len we
! * will have to make this right.
*/
! is_dn: bv.bv_len = 1;
rc = dnNormalize2( NULL, &bv, searchbase );
if (rc == LDAP_SUCCESS) {
*scope = LDAP_SCOPE_BASE;
--- 59,68 ----
uri += sizeof("dn:")-1;
uri += strspn( uri, " " );
bv.bv_val = uri;
! /* dnNormalize actually uses input bv_len so
! * we have to properly set this value.
*/
! is_dn: bv.bv_len = strlen(uri);
rc = dnNormalize2( NULL, &bv, searchbase );
if (rc == LDAP_SUCCESS) {
*scope = LDAP_SCOPE_BASE;