summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-02-06 12:27:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:43 -0500
commit4aa1f83ca5629bb2a086c7431e8e96301f6af79f (patch)
treed6d539b5bd14e10f114fda504683536b74407331 /source4
parent6e25473ad8d8165dc0e499f1296ab1026524e9bc (diff)
downloadsamba-4aa1f83ca5629bb2a086c7431e8e96301f6af79f.tar.gz
samba-4aa1f83ca5629bb2a086c7431e8e96301f6af79f.tar.bz2
samba-4aa1f83ca5629bb2a086c7431e8e96301f6af79f.zip
r21179: Anything more complex than this causes the keytab never to be updated...
Andrew Bartlett (This used to be commit c3977b4bae1e1b5e4ff4a64c7146534536685e91)
Diffstat (limited to 'source4')
-rw-r--r--source4/dsdb/samdb/ldb_modules/update_keytab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/update_keytab.c b/source4/dsdb/samdb/ldb_modules/update_keytab.c
index 411f8c98ef..fa61887bd5 100644
--- a/source4/dsdb/samdb/ldb_modules/update_keytab.c
+++ b/source4/dsdb/samdb/ldb_modules/update_keytab.c
@@ -61,7 +61,8 @@ static int add_modified(struct ldb_module *module, struct ldb_dn *dn, BOOL delet
}
cli_credentials_set_conf(item->creds);
- filter = talloc_asprintf(item, "(&(&(objectClass=kerberosSecret)(&(privateKeytab=*)(|(secret=*)(ntPwdHash=*))))(dn=%s))",
+/* filter = talloc_asprintf(item, "(&(&(&(objectClass=kerberosSecret)(privateKeytab=*))(|(secret=*)(ntPwdHash=*)))(distinguishedName=%s))", */
+ filter = talloc_asprintf(item, "dn=%s",
ldb_dn_get_linearized(dn));
status = cli_credentials_set_secrets(item->creds, module->ldb, NULL, filter);
talloc_free(filter);