1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-18 09:49:49 +02:00
ldapcherry/docs/ppolicy_api.rst
2015-07-20 01:30:12 +02:00

779 B

Implementing password policy modules

API

The password policy modules must respect following API:

ldapcherry.ppolicy.PPolicy

Configuration

Parameters are declared in the main configuration file, inside the ppolicy section.

After having set self.config to config in the constructor, parameters can be recovered by self.get_param:

ldapcherry.ppolicy.PPolicy

Example

Here is the simple default ppolicy module that comes with LdapCherry:

../ldapcherry/ppolicy/simple.py