Skip to content

'search_fields' is not an array #9

Open
@p-try

Description

@p-try

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.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions