From 17649d29d8f9fdead4b3bc3b38aeb7ec7523cd26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 11 Dec 2004 22:41:46 +0000 Subject: [PATCH] (LDAP_firstkey): When iterating over all entries, search for samba accounts too, From: "James F. Hranicky" git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14386 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hdb/hdb-ldap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hdb/hdb-ldap.c b/lib/hdb/hdb-ldap.c index 1f86c72cd..ad8e56003 100644 --- a/lib/hdb/hdb-ldap.c +++ b/lib/hdb/hdb-ldap.c @@ -1387,7 +1387,8 @@ LDAP_firstkey(krb5_context context, HDB *db, unsigned flags, return ret; msgid = ldap_search(HDB2LDAP(db), HDB2BASE(db), - LDAP_SCOPE_SUBTREE, "(objectclass=krb5Principal)", + LDAP_SCOPE_SUBTREE, + "(|(objectClass=krb5Principal)(objectClass=sambaSamAccount))", krb5kdcentry_attrs, 0); if (msgid < 0) return HDB_ERR_NOENTRY;