From 837230f85e12e72186dacfb97fe2dbf8a37d28f0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 28 Jul 2010 17:30:09 +1000 Subject: s4-credentials: get all attributes in cli_credentials_set_secrets() This ensures we get whenChanged, which is needed by the s3 winbind code to ensure we don't repeatedly try to change the password --- source4/auth/credentials/credentials_files.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'source4') diff --git a/source4/auth/credentials/credentials_files.c b/source4/auth/credentials/credentials_files.c index e0fd052cbc..8ad395ddc8 100644 --- a/source4/auth/credentials/credentials_files.c +++ b/source4/auth/credentials/credentials_files.c @@ -185,22 +185,6 @@ _PUBLIC_ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred, int ldb_ret; struct ldb_message *msg; - const char *attrs[] = { - "secret", - "priorSecret", - "samAccountName", - "flatname", - "realm", - "secureChannelType", - "unicodePwd", - "msDS-KeyVersionNumber", - "saltPrincipal", - "privateKeytab", - "krb5Keytab", - "servicePrincipalName", - "ldapBindDn", - NULL - }; const char *machine_account; const char *password; @@ -235,7 +219,7 @@ _PUBLIC_ NTSTATUS cli_credentials_set_secrets(struct cli_credentials *cred, ldb_ret = dsdb_search_one(ldb, ldb, &msg, ldb_dn_new(mem_ctx, ldb, base), LDB_SCOPE_SUBTREE, - attrs, 0, "%s", filter); + NULL, 0, "%s", filter); if (ldb_ret != LDB_SUCCESS) { *error_string = talloc_asprintf(cred, "Could not find entry to match filter: '%s' base: '%s': %s: %s\n", -- cgit