From: Matthias Dieter Wallnöfer Date: Tue, 25 Oct 2011 18:06:45 +0000 (+0200) Subject: s4:update_keytab LDB module - no need to filter for the DN X-Git-Tag: ldb-1.1.4~90 X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=83c039378bb9622820d8005b196297733fe731f0;p=kai%2Fsamba-autobuild%2F.git s4:update_keytab LDB module - no need to filter for the DN We launch a search request with base scope on exactly the same DN (see downwards). Signed-off-by: Stefan Metzmacher --- diff --git a/source4/dsdb/samdb/ldb_modules/update_keytab.c b/source4/dsdb/samdb/ldb_modules/update_keytab.c index 2d4a903aeb9..3658c1b3ce8 100644 --- a/source4/dsdb/samdb/ldb_modules/update_keytab.c +++ b/source4/dsdb/samdb/ldb_modules/update_keytab.c @@ -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); }