auth/credentials: Dynamically calculate the salt principal (unless speccified)
[samba.git] / source3 / winbindd / winbindd_util.c
index 7527a78b30e7e6be756828f4523cff6d0234d186..2234efeed542ec82258b7ccaaf0da0d18c9cd267 100644 (file)
@@ -835,7 +835,7 @@ static bool migrate_secrets_tdb_to_ldb(struct winbindd_domain *domain)
                   NULL /* oldpass */,
                   cli_credentials_get_domain(creds),
                   cli_credentials_get_realm(creds),
-                  cli_credentials_get_salt_principal(creds),
+                  cli_credentials_get_salt_principal(creds, creds),
                   0, /* Supported enc types, unused */
                   &domain->sid,
                   cli_credentials_get_password_last_changed_time(creds),