bhuisgen / rc-vacation

Vacation plugin for RoundCube Webmail
http://blog.hbis.fr/softwares/rc-vacation/
GNU General Public License v2.0
33 stars 37 forks source link

Use of BindDN for updating #15

Open Elethiomel opened 11 years ago

Elethiomel commented 11 years ago

Our Bind DN is only used for searching. It does not have the privileges to update the users entry.

Is there some way the users credentials can be used to do the update?

This plugin is exactly what we need!

Elethiomel commented 11 years ago

I managed to fix this by changing the binddn to be the user's (construct using the %email_local variable) I then set the password via %password which seems to be the password the user logged in to roundcube using

// Bind DN $rcmail_config['vacation_ldap_binddn'] = 'uid=%email_local,ou=People,dc=foo,dc=bar,dc=com';

// Bind password $rcmail_config['vacation_ldap_bindpw'] = '%password';

As the bind is as the user and the user can update their own entry, everything works now :) :)