From ddcc2d1a9707c876238d11c26c6580028a9de8f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 2 Jun 2004 14:19:07 +0000 Subject: [PATCH] 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 --- lib/hdb/hdb-ldap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hdb/hdb-ldap.c b/lib/hdb/hdb-ldap.c index daad1462f..29aba2273 100644 --- a/lib/hdb/hdb-ldap.c +++ b/lib/hdb/hdb-ldap.c @@ -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;