Hey Fyodor

Long story for short, you found a bug, see
http://jira.codehaus.org/browse/GEOS-5402

I will try to fix ASAP.

Christian

Zitat von [email protected]:

> Hi Fyodor
>
> Your config files seem to be correct.
>
> Did you modify the web.xml as described here
> http://docs.geoserver.org/latest/en/user/security/tutorials/j2ee/index.html
>
> And yes, it is ADMIN, look at the last paragraph in
> http://docs.geoserver.org/latest/en/user/security/usergrouprole/interaction.html
>
> Can you remove the anonymous filter and send me the stack trace.
>
> Christian
>
> Zitat von Fyodor Kravchenko <[email protected]>:
>
>> Hi, Christian,
>>
>> thanks! Is it really ADMIN , not ADMINISTRATOR ?
>>
>> Anyway, changing the role name to ADMIN in tomcat-users.xml,
>> security/role/deafult/roles.xml and security/role/deafult/config.xml
>> didnt change my situation. I can log in, but don't see administratice
>> interface.
>>
>> here are my configs:
>>
>> data/security/config.xml:
>> ....
>> <filterChain>
>> <filters name="web" path="/web/**,/gwc/rest/web/**">
>> <filter>contextAsc</filter>
>> <filter>j2ee</filter>
>> <filter>anonymous</filter>
>> <filter>guiException</filter>
>> <filter>interceptor</filter>
>> </filters>
>> ....
>> (j2ee is the name of the filter)
>>
>> /data/security/role/default/config.xml
>> <roleService>
>> <id>16e00a91:13abbcb23a3:-7ffc</id>
>> <name>default</name>
>> <className>org.geoserver.security.xml.XMLRoleService</className>
>> <fileName>roles.xml</fileName>
>> <checkInterval>10000</checkInterval>
>> <validating>true</validating>
>> <adminRoleName>ADMIN</adminRoleName>
>> <groupAdminRoleName>GROUP_ADMIN</groupAdminRoleName>
>> </roleService>
>>
>> roles.xml:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <roleRegistry version="1.0" xmlns="http://www.geoserver.org/security/roles";>
>> <roleList>
>> <!-- this is a trace of my experiments with addint ROLE_ prefix-->
>> <role id="ROLE_ADMIN"/>
>> <role id="ADMIN"/>
>> </roleList>
>> <userList>
>> <userRoles username="admin">
>> <roleRef roleID="ADMIN"/>
>> </userRoles>
>> </userList>
>> <groupList/>
>> </roleRegistry>
>>
>> tomcat-users.xml:
>> <role rolename="manager-gui"/>
>> <role rolename="ADMIN"/>
>> <user username="tomcat" password="tomcat" roles="manager-gui"/>
>> <user username="admin" password="password" roles="ADMIN"/>
>>
>> Thanks!
>> -Fyodor
>>
>> 08.11.2012 14:29, [email protected] ?????:
>>> 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.
>>>
>>>
>>
>>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_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.



------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to