s4:update_keytab LDB module - we don't need to search for the "distinguishedName...
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 6 Nov 2010 19:23:35 +0000 (20:23 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sat, 6 Nov 2010 20:08:28 +0000 (20:08 +0000)
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov  6 20:08:28 UTC 2010 on sn-devel-104

source4/dsdb/samdb/ldb_modules/update_keytab.c

index e39b2609391293522a1b033cc78148ea990a8023..6a9245f89e04ffa7e0654d8664c07f1d52dbb559 100644 (file)
@@ -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);