Hi, sorry for the late reply.
Yes I did but with no luck, even using the
$rcmail_config['use_tls'] = false;
or
$rcmail_config['use_tls'] = true;
the syslog answer doesn't change and remains
Oct 8 10:43:23 webmail roundcube: Unknown Net_LDAP2 Error (-1)#012Parameters:#012Base: #012Filter: (objectClass=*)#012Scope: base: Unknown Net_LDAP2 Error (-1) (-1):
Oct 8 10:43:23 webmail roundcube: Unable to fetch rootDSE entry to see if TLS is supoported: Unknown Net_LDAP2 Error (-1)#012Parameters:#012Base: #012Filter: (objectClass=*)#012Scope: base: Unknown Net_LDAP2 Error (-1): Unknown Net_LDAP2 Error (-1) (-1):
I've then tried to reinstall everything on a second machine, so I have 2 roundcube setup, and configuring LDAP (no SSL!) connection to my AD only for testing purpose using:
$rcmail_config['password_ldap_userDN_mask'] = 'cn=Name Surname,cn=Users,dc=domain,dc=it';
instead of
$rcmail_config['password_ldap_userDN_mask'] = 'userPrincipalName=%login,cn=Users,dc=domain,dc=it';
With this configuration the password pluging works and the userPassword attribute is changed.
Configuring
$rcmail_config['password_ldap_userDN_mask'] = 'userPrincipalName=%login,cn=Users,dc=domain,dc=it';
the answer on syslog is:
Oct 8 10:54:16 webmail roundcube: Could not fetch entry userPrincipalName=user@domain.it,cn=Users,dc=domain,dc=it: no entry found: (1000):
So it seems that using a DN mask on the userPrincipalName attribute doesn't work (on my AD the userPrincipalName contains exactly the user@domain.it string).
While trying to solve the problems with SSL configuration I can accept the working solution without SSL
I've also tried to look at the code, but seems greek to me...
Any suggestion?
Thanks