From c4ca5c21a02ca10ea843a41c09669eb780daeee0 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 9 Sep 2017 20:23:03 +0200 Subject: [PATCH] Add PPolicy overlay --- fixtures/config.ldif | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/fixtures/config.ldif b/fixtures/config.ldif index 856d6de..1c086b6 100644 --- a/fixtures/config.ldif +++ b/fixtures/config.ldif @@ -44,10 +44,9 @@ include: file:///etc/ldap/schema/core.ldif include: file:///etc/ldap/schema/cosine.ldif include: file:///etc/ldap/schema/nis.ldif include: file:///etc/ldap/schema/inetorgperson.ldif - # additional schemas -# include: file:///etc/ldap/schema/ppolicy.ldif -# +include: file:///etc/ldap/schema/ppolicy.ldif + # Load module dn: cn=module{0},cn=config objectClass: olcModuleList @@ -72,6 +71,14 @@ cn: module{2} olcModulePath: /usr/lib/ldap olcModuleLoad: refint.la +# Load password policy module +dn: cn=module{3},cn=config +objectClass: olcModuleList +objectClass: top +cn: module{3} +olcModulePath: /usr/lib/ldap +olcModuleLoad: ppolicy.la + # Set defaults for the backend dn: olcBackend=mdb,cn=config objectClass: olcBackendConfig @@ -154,3 +161,12 @@ objectClass: olcRefintConfig objectClass: top olcOverlay: {1}refint olcRefintAttribute: memberof member manager owner + +# ppolicy enforces password policies, such as used algorithm or length +dn: olcOverlay={2}ppolicy,olcDatabase={1}mdb,cn=config +objectClass: olcConfig +objectClass: olcOverlayConfig +objectClass: olcPPolicyConfig +objectClass: top +olcOverlay: {2}ppolicy +olcPPolicyDefault: cn=Default,ou=Policies,@SUFFIX@