summaryrefslogtreecommitdiff
path: root/source4/dsdb/common
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-13 10:43:42 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-08-14 00:14:14 +0200
commite2b12c6f6acf9ed833bf584cd2556a83d59b01eb (patch)
tree8c7275bb6247688bcf46f2d8ce641fe8557a9581 /source4/dsdb/common
parent6dab7c9dbec1d8eb29990a616f1e446dc4d016eb (diff)
downloadsamba-e2b12c6f6acf9ed833bf584cd2556a83d59b01eb.tar.gz
samba-e2b12c6f6acf9ed833bf584cd2556a83d59b01eb.tar.bz2
samba-e2b12c6f6acf9ed833bf584cd2556a83d59b01eb.zip
s4: Remove obsolete "samdb_password_quality_ok" function (it's just a one-line wrapper)
Diffstat (limited to 'source4/dsdb/common')
-rw-r--r--source4/dsdb/common/util.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source4/dsdb/common/util.c b/source4/dsdb/common/util.c
index 5c5386b64c..af31f17864 100644
--- a/source4/dsdb/common/util.c
+++ b/source4/dsdb/common/util.c
@@ -1560,15 +1560,6 @@ int samdb_search_for_parent_domain(struct ldb_context *ldb, TALLOC_CTX *mem_ctx,
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
@@ -1716,7 +1707,7 @@ NTSTATUS samdb_set_password(struct ldb_context *ctx, TALLOC_CTX *mem_ctx,
/* possibly check password complexity */
if (restrictions && (pwdProperties & DOMAIN_PASSWORD_COMPLEX) &&
- !samdb_password_complexity_ok(new_pass)) {
+ !check_password_quality(new_pass)) {
if (reject_reason) {
*reject_reason = SAMR_REJECT_COMPLEXITY;
}