summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-10-25 20:06:45 +0200
committerStefan Metzmacher <metze@samba.org>2011-11-26 10:17:18 +0100
commit83c039378bb9622820d8005b196297733fe731f0 (patch)
treeb8344d627eee2ec21e195f59d9c607fc6dda09e2 /source4/dsdb/samdb/ldb_modules
parent2c73eb4204fd62442bc62c311a016991631b4a18 (diff)
downloadsamba-83c039378bb9622820d8005b196297733fe731f0.tar.gz
samba-83c039378bb9622820d8005b196297733fe731f0.tar.bz2
samba-83c039378bb9622820d8005b196297733fe731f0.zip
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 <metze@samba.org>
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-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 2d4a903aeb..3658c1b3ce 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);
}