openldap 2.4 and ppolicy

Matthew Seaman matthew at FreeBSD.org
Mon Dec 5 10:00:36 UTC 2016


On 12/05/16 01:55, Per Olof Ljungmark wrote:
> Can someone who implemented ppolicy on FreeBSD please enlighten me on
> how this is done with the cn=config backend? Openldap can be really
> frustrating at times!

I've done this, and it is working exactly as designed for me.

You need an entry similar to this:

dn: olcOverlay={5}ppolicy
objectClass: olcOverlayConfig
objectClass: olcPPolicyConfig
olcOverlay: {5}ppolicy
olcPPolicyDefault: cn=Default Password Policy,ou=Policy,dc=example,dc=com
olcPPolicyHashCleartext: TRUE
olcPPolicyUseLockout: TRUE
olcPPolicyForwardUpdates: FALSE
structuralObjectClass: olcPPolicyConfig

Located at

cn=config/olcDatabase={1}mdb

This tells LDAP to load the ppolicy overlay.

Here olcDatabase {0} is the config tree read from
${LOCALBASE}/etc/openldap/slapd.d/ with olcDatabase {1} being our LDAP tree.
Then you need to define your password policy at the specified DN within
your main LDAP tree.

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20161205/b5afea50/attachment.sig>


More information about the freebsd-ports mailing list