Hi Fyodor There is something missing in the tutorial. I already corrected the tutorial but have to wait for a review.
You have to add the role(s) you added to the tomcat environment to the Geoserver environment too. The tutorial misses the step adding the role "tomcat" to the default Geoserver role service. But there is a predefined Geoserver role called ADMIN. Try to use "ADMIN" as your role name. Cheers Christian Zitat von Fyodor Kravchenko <[email protected]>: > Hi, > > following the instructions at > http://docs.geoserver.org/latest/en/user/security/tutorials/j2ee/index.html > , I didn't manage to make Geoserver log me in as admin with admin rights. > > I tried to change the role in Tomcat 6 (tomcat-users.xml) to > ADMINISTRATOR, I also tried to change admin role names to > ROLE_ADMINISTRATOR in data/security/role/roles.xml and role/config.xml > with no success. > > (Seems the j2ee user roles provided by Tomcat are not passed to Spring > Security. Previously I had to config > org.springframework.security.core.authority.mapping.SimpleAttributes2GrantedAuthoritiesMapper > in GeoServer's app security context to make it work, but now I coundn't > determine how to do it now) > > Is there anyone who managed to make j2ee authentication work as > expected, i.e. to log in as admin? > > -Fyodor > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
