Manage password policy in OpenLDAP Clment OUDOT - - PowerPoint PPT Presentation

manage password policy in openldap
SMART_READER_LITE
LIVE PREVIEW

Manage password policy in OpenLDAP Clment OUDOT - - PowerPoint PPT Presentation

Manage password policy in OpenLDAP Clment OUDOT coudot@linagora.com First time you see me? Let's introduce! LDAPcoholic since many years Fake developer, real hacker Let's begin with the password policy draft (Behera draft) A draft? Is it


slide-1
SLIDE 1

Clément OUDOT coudot@linagora.com

Manage password policy in OpenLDAP

slide-2
SLIDE 2

LDAPcoholic since many years Fake developer, real hacker First time you see me? Let's introduce!

slide-3
SLIDE 3

Let's begin with the password policy draft (Behera draft)

slide-4
SLIDE 4

A draft? Is it not a standard? Well, not really. The fjrst draft (version 0) was written in 1999.

slide-5
SLIDE 5

The latest version (version 10) was published in 2009 This draft is expired since February 2010

slide-6
SLIDE 6

So, can we use it? Of course! Most of LDAP servers implement it.

slide-7
SLIDE 7

What are you waiting for? Explain me how it works!

slide-8
SLIDE 8

Ok, let me do the LDAP

  • client. You will play the LDAP

server.

slide-9
SLIDE 9

Ok, I send you an BIND operation with the extended control 1.3.6.1.4.1.42.2.27.8.5.1 I see your password is expired, I refuse the BIND and I send a fmag in the response control.

slide-10
SLIDE 10

Thanks to this response control, I can advertise the user. See, it's easy! Client and Server just need to know how to manage the control.

slide-11
SLIDE 11

With which LDAP operations can we use this control? BIND for authentication. MOD and PASSMOD for password change.

slide-12
SLIDE 12

For authentication, it defjnes account locking, password expiration and password reset

slide-13
SLIDE 13

For modifjcation, it can check password size, presence in history, password quality. With this, administrators will have the power to bother all their users. Niark Niark

slide-14
SLIDE 14

Let me now present you my friend OpenLDAP Hi! I am the fastest LDAP server on earth!

slide-15
SLIDE 15

I own a password policy overlay since many years I support version 9 of the Behera draft and let the possibility to implement a custom password checker module

slide-16
SLIDE 16

I imagine that confjguring password policy overlay is a nightmare! Calm down, you just need a brain!

slide-17
SLIDE 17

First, load the overlay: Then confjgure it:

  • lcModuleLoad: ppolicy.la

dn: olcOverlay={1}ppolicy,olcDatabase={1}bdb,cn=config

  • bjectClass: olcOverlayConfig
  • bjectClass: olcPPolicyConfig
  • lcOverlay: {1}ppolicy
  • lcPPolicyDefault: ou=default,ou=ppolicy,dc=example,dc=com
  • lcPPolicyHashCleartext: TRUE
  • lcPPolicyUseLockout: FALSE
  • lcPPolicyForwardUpdates: FALSE
slide-18
SLIDE 18

So is it over? That was easy! No, we now need to confjgure the policy

slide-19
SLIDE 19

Policy confjguration is an entry in the LDAP directory The fjrst lines of the entry are:

dn: ou=default,ou=ppolicy,dc=example,dc=com

  • bjectClass: pwdPolicy
  • bjectClass: pwdPolicyChecker
  • bjectClass: organizationalUnit
  • bjectClass: top
  • u: default
slide-20
SLIDE 20

pwdAllowUserChange: TRUE pwdAttribute: userPassword pwdCheckModule: check_password.so pwdCheckQuality: 2 pwdExpireWarning: 0 pwdInHistory: 10 pwdLockout: TRUE pwdMaxAge: 31536000 pwdMinAge: 600 pwdMaxFailure: 10 pwdMinLength: 8 pwdMustChange: TRUE PwdSafeModify : FALSE

Then all parameters are attributes of this entry

slide-21
SLIDE 21

Can we have more than one policy ? Yes we can!

slide-22
SLIDE 22

Just create another policy confjguration entry Then link it to a user account:

dn: uid=bobama,ou=users,dc=example,dc=com

  • bjectClass: inetOrgPerson
  • bjectClass: organizationalPerson

ObjectClass : person

  • bjectClass: top

uid : bobama cn : Barack OBAMA sn : OBAMA userPassword: michellemabelle pwdPolicySubentry : ou=nsa,ou=ppolicy,dc=example,dc=com

slide-23
SLIDE 23

Did you heard about LDAP Tool Box project? Yes, they provide a password checker module and OpenLDAP package for Debian and CentOS

slide-24
SLIDE 24

They also package some contributed overlays like lastbind and smbk5pwd Indeed, good job!

slide-25
SLIDE 25

This is all folks! Any question?

slide-26
SLIDE 26