1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s4:kdc: Remove unused parameter

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Joseph Sutton 2023-04-04 12:54:08 +12:00 committed by Andreas Schneider
parent e4b81f7f6d
commit 1469c19b74
4 changed files with 6 additions and 9 deletions

View File

@ -1407,7 +1407,7 @@ static krb5_error_code samba_kdc_message2entry(krb5_context context,
* and computers should never be members of Protected Users, or
* they may fail to authenticate.
*/
status = samba_kdc_get_user_info_from_db(mem_ctx, p, msg, &user_info_dc);
status = samba_kdc_get_user_info_from_db(p, msg, &user_info_dc);
if (!NT_STATUS_IS_OK(status)) {
ret = EINVAL;
goto out;

View File

@ -1064,8 +1064,7 @@ int mit_samba_kpasswd_change_password(struct mit_samba_context *ctx,
return ENOMEM;
}
status = samba_kdc_get_user_info_from_db(tmp_ctx,
p,
status = samba_kdc_get_user_info_from_db(p,
p->msg,
&user_info_dc);
if (!NT_STATUS_IS_OK(status)) {

View File

@ -1203,8 +1203,7 @@ static NTSTATUS samba_add_compounded_auth(TALLOC_CTX *mem_ctx,
* structure. If the resulting structure is not talloc_free()d, it will be
* reused on future calls to this function.
*/
NTSTATUS samba_kdc_get_user_info_from_db(TALLOC_CTX *mem_ctx,
struct samba_kdc_entry *skdc_entry,
NTSTATUS samba_kdc_get_user_info_from_db(struct samba_kdc_entry *skdc_entry,
const struct ldb_message *msg,
const struct auth_user_info_dc **user_info_dc)
{
@ -1422,7 +1421,7 @@ NTSTATUS samba_kdc_get_user_info_dc(TALLOC_CTX *mem_ctx,
NTSTATUS nt_status;
const struct auth_user_info_dc *user_info_dc = NULL;
nt_status = samba_kdc_get_user_info_from_db(mem_ctx, skdc_entry, skdc_entry->msg, &user_info_dc);
nt_status = samba_kdc_get_user_info_from_db(skdc_entry, skdc_entry->msg, &user_info_dc);
if (!NT_STATUS_IS_OK(nt_status)) {
DBG_ERR("Getting user info for PAC failed: %s\n",
nt_errstr(nt_status));
@ -2317,7 +2316,7 @@ krb5_error_code samba_kdc_verify_pac(TALLOC_CTX *mem_ctx,
goto done;
}
nt_status = samba_kdc_get_user_info_from_db(mem_ctx, client, client->msg, &user_info_dc);
nt_status = samba_kdc_get_user_info_from_db(client, client->msg, &user_info_dc);
if (!NT_STATUS_IS_OK(nt_status)) {
DBG_ERR("Getting user info for PAC failed: %s\n",
nt_errstr(nt_status));

View File

@ -77,8 +77,7 @@ int samba_krbtgt_is_in_db(struct samba_kdc_entry *skdc_entry,
bool *is_in_db,
bool *is_trusted);
NTSTATUS samba_kdc_get_user_info_from_db(TALLOC_CTX *mem_ctx,
struct samba_kdc_entry *skdc_entry,
NTSTATUS samba_kdc_get_user_info_from_db(struct samba_kdc_entry *skdc_entry,
const struct ldb_message *msg,
const struct auth_user_info_dc **user_info_dc);