[Kolab-devel] change userdata (Organization, Job Title, Address, Password) via php

Matthias Busch catwiesel at gmx.net
Mon Mar 9 00:49:23 CET 2015


okay, I figured some stuff out...

- connect to ldap with:
base: dc=domain, dc=tld
username: uid=userid,ou=People,dc=domain,dc=tld
password: userpassword

-pull/edit information:
the logged in user can edit the information I want changed of himself
the password userPassword is "marked" {SSHA}

so... I'll look into use php website to
- connect to ldap://127.0.0.1:389
- with basedn "dc=domain, dc=tld"
- with username (from $_POST) as "uid=username,ou=People,dc=domain,dc=tld"
- with password (from $_POST)

- pull the information I want to show and possibly edit from ldap
- fill html website with the information in form/input type text
- write all those input types into ldap

password needs special attention
- before write, create SSHA and put in ldap with {SSHA} tag

only... how do I deal with the salted part of the salted sha hash?


More information about the devel mailing list