requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Avatar Picture Field Mapping value configured in LDAP settings breaks LDAP authentication #237

Closed bagovino closed 4 years ago

bagovino commented 4 years ago

Version: Wiki.js 2.0.0-beta.275 using Docker

Actual behavior

Having an Avatar Picture Field Mapping value configured in LDAP settings breaks LDAP authentication.

Expected behavior

Having an Avatar Picture Field Mapping configured in LDAP settings should not break LDAP authentication.

Steps to reproduce the behavior

Configure the LDAP authentication in strategy with appropriate values. In our case the Avatar Picture Field Mapping value should be "thumbnailPhoto". Create a new user using the LDAP strategy. Attempt to login as that user and we get the error as shown in the screenshot. Removing the value in Avatar Picture Field Mapping works around the error and allows the user to log in.

I'm pretty sure we store the image file directly in thumbnailPhoto attribute... I'm not sure if that might be the issue here if some other value is expected.

Screen Shot 2019-09-11 at 12 05 24 PM
bagovino commented 4 years ago

Just realized this was in the 1.x repo... closing this and will re-open in 2.0.