mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
In uid2dn, only return success if a unique DN was found
This commit is contained in:
parent
408e751200
commit
51b87202e0
@ -188,7 +188,7 @@ int nssov_uid2dn(Operation *op,nssov_info *ni,struct berval *uid,struct berval *
|
||||
op2.ors_slimit = SLAP_NO_LIMIT;
|
||||
rc = op2.o_bd->be_search( &op2, &rs );
|
||||
filter_free_x( op, op2.ors_filter, 1 );
|
||||
return rc == LDAP_SUCCESS;
|
||||
return rc == LDAP_SUCCESS && !BER_BVISNULL(dn);
|
||||
}
|
||||
|
||||
/* the maximum number of uidNumber attributes per entry */
|
||||
|
Loading…
Reference in New Issue
Block a user