s4:update_keytab LDB module - no need to filter for the DN
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Tue, 25 Oct 2011 18:06:45 +0000 (20:06 +0200)
committerStefan Metzmacher <metze@samba.org>
Sat, 26 Nov 2011 09:17:18 +0000 (10:17 +0100)
We launch a search request with base scope on exactly the same DN (see
downwards).

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/dsdb/samdb/ldb_modules/update_keytab.c

index 2d4a903aeb9c9a7c7f8fa216654161cdf97e6c9f..3658c1b3ce8bbd0f5f9e8d08f37f42a3bacc5161 100644 (file)
@@ -89,8 +89,8 @@ static int add_modified(struct ldb_module *module, struct ldb_dn *dn, bool do_de
        struct ldb_result *res;
        int ret;
 
-       filter = talloc_asprintf(data, "(&(dn=%s)(&(objectClass=kerberosSecret)(privateKeytab=*)))",
-                                ldb_dn_get_linearized(dn));
+       filter = talloc_asprintf(data,
+                                "(&(objectClass=kerberosSecret)(privateKeytab=*))");
        if (!filter) {
                return ldb_oom(ldb);
        }