[Samba] remote password change, if password is expired

Marco Gaiarin gaio at sv.lnf.it
Tue Mar 27 13:44:18 UTC 2018


Mandi! Waishon via samba
  In chel di` si favelave...

> 
> if you like to write something on your own using PHP you can use this library:
> https://github.com/ldaptools/ldaptools
> Then ask the users on the webpage for their username and password and bind with it to the LDAP.
> Then you've to send an delete request of the unicodePwd field with the old password and then an add request with the new password. Both requests have to be in one query otherwise samba is denying the change.

Good hint! Thanks!


But i think that in this way password policy and 'check password
script' are not honoured, eg you modify directly the LDAP data without
password quality checks.


For this reason i prefere to use ''standard'' tools, eg PAM/winbind.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the samba mailing list