Open
Description
Thank you very much for this very useful plugin! I have noticed that the configuration in the sample file does not work the way it is provided. This line is in config.inc.php.dist:
'search_fields' => ['mail', 'sAMAccountName'],
I wondered for some time why the plugin didn't work for me. Through Wireshark I found out that the LDAP search query always only searched the cn attribute instead of the provided fields. It turned out that 'search_fields' is expected to be a string, not an array, in the Roundcube LDAP implementation. Once I changed it to
'search_fields' => 'sAMAccountName',
everything started working. I suggest changing the sample config accordingly.