Custom password policy setting on samba 4

0

samba 4.3.4

smb.conf : https://paste.ubuntu.com/23809659/

passwd check file : https://paste.ubuntu.com/23809667/

I have set everything according to documentation still the custom password policy doesnt work.

It let me use simple passwords and doesn't check the password with the script.

Tohid Tamboli

Posted 2017-01-17T06:13:23.667

Reputation: 101

How are you actually changing the passwords? – user1686 – 2017-01-17T07:00:02.573

As it is zentyal server im using the web portal to change password as admin.And also i tried logging in as the user and tried to change the password still it allows me to use weak passwords. – Tohid Tamboli – 2017-01-18T08:35:36.050

Answers

0

I used

libpam-pwquality

and modified the /etc/pam.d/common-password file Added the parameters i wanted and all set!!!

Tohid Tamboli

Posted 2017-01-17T06:13:23.667

Reputation: 101