mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s4: Remove obsolete "samdb_password_quality_ok" function (it's just a one-line wrapper)
This commit is contained in:
@ -1560,15 +1560,6 @@ int samdb_search_for_parent_domain(struct ldb_context *ldb, TALLOC_CTX *mem_ctx,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
check that a password is sufficiently complex
|
|
||||||
*/
|
|
||||||
static bool samdb_password_complexity_ok(const char *pass)
|
|
||||||
{
|
|
||||||
return check_password_quality(pass);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
set the user password using plaintext, obeying any user or domain
|
set the user password using plaintext, obeying any user or domain
|
||||||
@ -1716,7 +1707,7 @@ NTSTATUS samdb_set_password(struct ldb_context *ctx, TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
/* possibly check password complexity */
|
/* possibly check password complexity */
|
||||||
if (restrictions && (pwdProperties & DOMAIN_PASSWORD_COMPLEX) &&
|
if (restrictions && (pwdProperties & DOMAIN_PASSWORD_COMPLEX) &&
|
||||||
!samdb_password_complexity_ok(new_pass)) {
|
!check_password_quality(new_pass)) {
|
||||||
if (reject_reason) {
|
if (reject_reason) {
|
||||||
*reject_reason = SAMR_REJECT_COMPLEXITY;
|
*reject_reason = SAMR_REJECT_COMPLEXITY;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user