(main): Call kadm5_setup_passwd_quality_check and
kadm5_add_passwd_quality_verifier. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15105 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2003 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 2003, 2005 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -79,6 +79,11 @@ main(int argc, char **argv)
|
|||||||
pw_data.data = password;
|
pw_data.data = password;
|
||||||
pw_data.length = strlen(password);
|
pw_data.length = strlen(password);
|
||||||
|
|
||||||
|
kadm5_setup_passwd_quality_check (context, NULL, NULL);
|
||||||
|
ret = kadm5_add_passwd_quality_verifier(context, NULL);
|
||||||
|
if (ret)
|
||||||
|
krb5_errx(context, 1, "kadm5_add_passwd_quality_verifier");
|
||||||
|
|
||||||
s = kadm5_check_password_quality (context, p, &pw_data);
|
s = kadm5_check_password_quality (context, p, &pw_data);
|
||||||
if (s)
|
if (s)
|
||||||
krb5_errx(context, 1, "kadm5_check_password_quality:\n%s", s);
|
krb5_errx(context, 1, "kadm5_check_password_quality:\n%s", s);
|
||||||
|
Reference in New Issue
Block a user