summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-06 20:23:35 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-11-06 20:08:28 +0000
commitacb8a8d3304c8060e6039eac53a564d86331e264 (patch)
tree920246f58fa3e8b29ebb0b427ac548ccda050228 /source4
parenta093e10896a4768dba0cd793a04b7d5d1366fee2 (diff)
downloadsamba-acb8a8d3304c8060e6039eac53a564d86331e264.tar.gz
samba-acb8a8d3304c8060e6039eac53a564d86331e264.tar.bz2
samba-acb8a8d3304c8060e6039eac53a564d86331e264.zip
s4:update_keytab LDB module - we don't need to search for the "distinguishedName" attribute
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Nov 6 20:08:28 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/update_keytab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/update_keytab.c b/source4/dsdb/samdb/ldb_modules/update_keytab.c
index e39b260939..6a9245f89e 100644
--- a/source4/dsdb/samdb/ldb_modules/update_keytab.c
+++ b/source4/dsdb/samdb/ldb_modules/update_keytab.c
@@ -237,7 +237,7 @@ static int ukt_search_modified_callback(struct ldb_request *req,
static int ukt_search_modified(struct update_kt_ctx *ac)
{
struct ldb_context *ldb;
- static const char * const attrs[] = { "distinguishedName", NULL };
+ static const char * const no_attrs[] = { NULL };
struct ldb_request *search_req;
int ret;
@@ -246,7 +246,7 @@ static int ukt_search_modified(struct update_kt_ctx *ac)
ret = ldb_build_search_req(&search_req, ldb, ac,
ac->dn, LDB_SCOPE_BASE,
"(&(objectClass=kerberosSecret)"
- "(privateKeytab=*))", attrs,
+ "(privateKeytab=*))", no_attrs,
NULL,
ac, ukt_search_modified_callback,
ac->req);