diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-07-28 17:30:09 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-09-11 22:32:43 +1000 |
commit | 837230f85e12e72186dacfb97fe2dbf8a37d28f0 (patch) | |
tree | 362daa1c05bbc4fceb98089d0d3ce5070233aabf /source4 | |
parent | bc6a3a2e3f783b8a7dd87e72c55443fbfde12c00 (diff) | |
download | samba-837230f85e12e72186dacfb97fe2dbf8a37d28f0.tar.gz samba-837230f85e12e72186dacfb97fe2dbf8a37d28f0.tar.bz2 samba-837230f85e12e72186dacfb97fe2dbf8a37d28f0.zip |
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
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/credentials/credentials_files.c | 18 |
1 files changed, 1 insertions, 17 deletions
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", |