Allow the objectClass to be "sambaSamAccount" or structural_object
when searching for uid entries. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13905 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -806,8 +806,8 @@ LDAP__lookup_princ(krb5_context context,
|
||||
*msg = NULL;
|
||||
|
||||
rc = asprintf(&filter,
|
||||
"(&(objectclass=sambaSamAccount)(uid=%s))",
|
||||
userid);
|
||||
"(&(|(objectclass=sambaSamAccount)(objectclass=%s))(uid=%s))",
|
||||
structural_object, userid);
|
||||
if (rc < 0) {
|
||||
krb5_set_error_string(context, "asprintf: out of memory");
|
||||
ret = ENOMEM;
|
||||
|
Reference in New Issue
Block a user