raspberrypi / piserver

Raspberry Pi Server wizard to serve Raspbian to network booting Pis
310 stars 60 forks source link

how to support self service password change #58

Closed chengjianwen closed 5 years ago

chengjianwen commented 5 years ago

When the user login, the user should can change their password. I installed self-service-password and it's config file seems support LDAP. https://github.com/ltb-project/self-service-password/tree/master/conf But I don't known how to config that. or any other solution for that.

maxnet commented 5 years ago

Note that the user can change its own password already by running "passwd" on the shell. And there is also an option to force change password on first login when adding users in piserver.

However if you want to be able to let users reset their password if they forget it through some web portal like that you will need to experiment with it yourself, as we have not tried using such solutions.

Login details needed should be (untested):

Username: cn=admin,dc=raspberrypi,dc=local Admin password is chosen randomly on piserver installation and can be found in the file: /var/lib/piserver/settings.json

Base DN: dc=raspberrypi,dc=local LDAP username attribute: cn

chengjianwen commented 5 years ago

I tried it and it worked. in config.inc.php, I filled in the values mentioned by you. [code] $ldap_url = "ldap:///"; $ldap_binddn = "cn=admin,dc=raspberrypi,dc=local"; $ldap_bindpw = "Ddld949TLZlsbdvmVuAhg24WhwXhftKH"; $ldap_base = "dc=raspberrypi,dc=local"; $ldap_login_attribute = "cn"; [/code] BTW, I can use passwd also. Thanks.