Closed Nepoh closed 3 months ago
Thank you for the well-written issue! I wasn't sure whether LDAP would work like this, but this specific error is unexpected for sure. I will look into it.
This is likely a problem with your LDAP configuration in Opencast. Take a look at this part of org.opencastproject.userdirectory.ldap.cfg.template
:
You probably have to set the name
line. See the docs for more information. Please report back if this worked!
You are right! After adjusting the configuration, Opencast correctly returns the name
field in info/me.json
for LDAP users and login to Tobira works as expected.
Thanks a lot for the hint and sorry for the hassle!
No worries, I'm glad the problem is fixed for you!
Hi,
I am not sure whether this is a bug or intentionally not supported: When using the basic Opencast login mechanism
I can successfully log in to Tobira with the Opencast admin account, but not with an Opencast LDAP user. Authentication fails with the following error:
When logged in as admin,
/info/me.json
looks like this:for LDAP users on the other hand, it looks like this:
I guess Tobira expects the
name
field to be present, but it looks like this is not the case for all Opencast user providers. May be falling back tousername
if there is noname
in the response would be an option?Btw: I am running Tobira 2.8 and Opencast 14.4 (but JSON response for LDAP users looks the same in opencast 15.2).