Re: ldap change password
| From: | Holger Blasum | Date: | Wed, 07 Mar 2007 23:00:16 +0000 |
| Subject: | Re: ldap change password | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250041@lists.php.net to get a copy of this message | ||
Hi Fabio,
On 03-07, Fabio Silva wrote:
> Hi all, i would like to know if anybody has a script in php that
> change the password of the users in ldap???
> That the user can do it by yourself....
http://logout.sh/computers/ldap/ looks like a
starting point.
In that example, however the connection from the web server to
the ldap server is not encrypted (which might be an issue if the
webserver is different from the ldap server and you are not
using ssh tunnelling for the connection), googling ldap_connect and 663
(the port of LDAP with TLS) gives you other recipes. (For the TLS
exchange you would also have to generate an X.509 cert, see eg
http://www.guug.de/veranstaltungen/ffg2003/papers/ffg2003-blasum-en.pdf
for essentially the same where python was used in place of php.)
Regards,
--
Holger Blasum +49-174-7313590 (cell) GnuPG 1024D/ACDFC3B769DC1ED66B47