Annotate
mod_lib_ldap/dev/README.md @ 4832:bfd4af4caddc
mod_password_policy: Support for additional policies provided by other modules
E.g. check a password contains an uppercase character:
module:provides("password-policy", {
name = "contains_uppercase";
check_password = function (password, policy)
return (policy ~= true) or (not not password:match("%u"));
end;
})
Config:
password_policy = {
contains_uppercase = true;
}
author |
Matthew Wild <mwild1@gmail.com> |
date |
Wed, 22 Dec 2021 14:48:46 +0000 |
parent |
809:1d51c5e38faa |
rev |
line source |
809
|
1 Developer Utilities/Tests
|
|
2 =========================
|
|
3
|
|
4 This directory exists for reasons of sanity checking. If you wish
|
|
5 to run the tests, set up Prosody as you normally would, and install the LDAP
|
|
6 modules as normal as well. Set up OpenLDAP using the configuration directory
|
|
7 found in this directory (slapd.conf), and run the following command to import
|
|
8 the test definitions into the LDAP server:
|
|
9
|
|
10 ldapadd -x -w prosody -D 'cn=Manager,dc=example,dc=com' -f posix-users.ldif
|
|
11
|
|
12 Then just run prove (you will need perl and AnyEvent::XMPP installed):
|
|
13
|
|
14 prove t
|