[Geoserver-devel] [JIRA] (GEOS-8132) Roles not assigned when authorizing using headers and LDAP

GIS Hallstahammar created an issue

GeoServer / BugGEOS-8132

Roles not assigned when authorizing using headers and LDAP

Issue Type:

BugBug

Assignee:

Unassigned

Attachments:

localhost.2017-05-08.log

Created:

09/May/17 4:22 PM

Environment:

GeoServer: 2.11.0
Java: 1.8.0_92 (64 bits)
OS: Windows Server 2012 R2
Web server: Apache httpd 2.4.25
Application server: Tomcat 8.5

Priority:

MediumMedium

Reporter:

GIS Hallstahammar

When authorizing using headers and an active directory account, roles are not assigned (tried it using cURL). Using a local GeoServer account it works fine, cURL returns the response from getCapabilities. Using an AD-account It seems as though the login is successful in the GeoServer log:

2017-05-08 16:37:32,839 TRACE [geoserver.security] - logged in as USER

But in the Tomcat logs I encounter the following message:

08-May-2017 16:37:32.854 SEVERE [http-nio-8080-exec-1] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [dispatcher] in context with path [/geoserver] threw exception
at org.geoserver.security.filter.GeoServerCredentialsFromRequestHeaderFilter.doAuthenticate(GeoServerCredentialsFromRequestHeaderFilter.java:165)
java.lang.ClassCastException: org.springframework.security.core.authority.SimpleGrantedAuthority cannot be cast to org.geoserver.security.impl.GeoServerRole

Full Tomcat log is attached.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.929.2#100040-sha1:94c1764)

Atlassian logo