mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +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:
parent
e4b81f7f6d
commit
1469c19b74
@ -1407,7 +1407,7 @@ static krb5_error_code samba_kdc_message2entry(krb5_context context,
|
|||||||
* and computers should never be members of Protected Users, or
|
* and computers should never be members of Protected Users, or
|
||||||
* they may fail to authenticate.
|
* 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)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
ret = EINVAL;
|
ret = EINVAL;
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -1064,8 +1064,7 @@ int mit_samba_kpasswd_change_password(struct mit_samba_context *ctx,
|
|||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = samba_kdc_get_user_info_from_db(tmp_ctx,
|
status = samba_kdc_get_user_info_from_db(p,
|
||||||
p,
|
|
||||||
p->msg,
|
p->msg,
|
||||||
&user_info_dc);
|
&user_info_dc);
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
|
@ -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
|
* structure. If the resulting structure is not talloc_free()d, it will be
|
||||||
* reused on future calls to this function.
|
* reused on future calls to this function.
|
||||||
*/
|
*/
|
||||||
NTSTATUS samba_kdc_get_user_info_from_db(TALLOC_CTX *mem_ctx,
|
NTSTATUS samba_kdc_get_user_info_from_db(struct samba_kdc_entry *skdc_entry,
|
||||||
struct samba_kdc_entry *skdc_entry,
|
|
||||||
const struct ldb_message *msg,
|
const struct ldb_message *msg,
|
||||||
const struct auth_user_info_dc **user_info_dc)
|
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;
|
NTSTATUS nt_status;
|
||||||
const struct auth_user_info_dc *user_info_dc = NULL;
|
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)) {
|
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||||
DBG_ERR("Getting user info for PAC failed: %s\n",
|
DBG_ERR("Getting user info for PAC failed: %s\n",
|
||||||
nt_errstr(nt_status));
|
nt_errstr(nt_status));
|
||||||
@ -2317,7 +2316,7 @@ krb5_error_code samba_kdc_verify_pac(TALLOC_CTX *mem_ctx,
|
|||||||
goto done;
|
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)) {
|
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||||
DBG_ERR("Getting user info for PAC failed: %s\n",
|
DBG_ERR("Getting user info for PAC failed: %s\n",
|
||||||
nt_errstr(nt_status));
|
nt_errstr(nt_status));
|
||||||
|
@ -77,8 +77,7 @@ int samba_krbtgt_is_in_db(struct samba_kdc_entry *skdc_entry,
|
|||||||
bool *is_in_db,
|
bool *is_in_db,
|
||||||
bool *is_trusted);
|
bool *is_trusted);
|
||||||
|
|
||||||
NTSTATUS samba_kdc_get_user_info_from_db(TALLOC_CTX *mem_ctx,
|
NTSTATUS samba_kdc_get_user_info_from_db(struct samba_kdc_entry *skdc_entry,
|
||||||
struct samba_kdc_entry *skdc_entry,
|
|
||||||
const struct ldb_message *msg,
|
const struct ldb_message *msg,
|
||||||
const struct auth_user_info_dc **user_info_dc);
|
const struct auth_user_info_dc **user_info_dc);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user