krb5_pwcheck, kadm5_setup_passwd_quality_check, kadm5_add_passwd_quality_verifier,
Contents
Description
These functions perform the quality check for the heimdal database library.
There are two versions of the shared object API; the old version (0) is deprecated, but still supported.
The new version (1) supports multiple password quality checking policies in the same shared object. See
below for details.
The password quality checker will run all policies that are configured by the user. If any policy
rejects the password, the password will be rejected.
Policy names are of the form ‘module-name:policy-name’ or, if the the policy name is unique enough, just
‘policy-name’.
Library
Kerberos 5 Library (libkadm5srv, -lkadm5srv)
Name
krb5_pwcheck, kadm5_setup_passwd_quality_check, kadm5_add_passwd_quality_verifier,
kadm5_check_password_quality — Heimdal warning and error functions
Running The Checks
kadm5_setup_passwd_quality_check sets up type 0 checks. It sets up all type 0 checks defined in
krb5.conf(5) if called with the last two arguments null.
kadm5_add_passwd_quality_verifier sets up type 1 checks. It sets up all type 1 tests defined in
krb5.conf(5) if called with a null second argument. kadm5_check_password_quality runs the checks in the
order in which they are defined in krb5.conf(5) and the order in which they occur in a module's funcs
array until one returns non-zero.
See Also
libtool(1), krb5(3), krb5.conf(5) HEIMDAL February 29, 2004 KADM5_PWCHECK(3)
Synopsis
#include<kadm5-protos.h>#include<kadm5-pwcheck.h>voidkadm5_setup_passwd_quality_check(krb5_contextcontext, constchar*check_library,
constchar*check_function);
krb5_error_codekadm5_add_passwd_quality_verifier(krb5_contextcontext, constchar*check_library);
constchar*kadm5_check_password_quality(krb5_contextcontext, krb5_principalprincipal, krb5_data*pwd_data);
int(*kadm5_passwd_quality_check_func)(krb5_contextcontext, krb5_principalprincipal, krb5_data*password,
constchar*tuning, char*message, size_tlength);
