[prev in list] [next in list] [prev in thread] [next in thread] 

List:       geronimo-user
Subject:    Re: LDAP default role.
From:       Jack Cai <greensight () gmail ! com>
Date:       2010-03-22 1:55:53
Message-ID: 5e7fd1eb1003211855m89cdd75k91e52e4f10c89133 () mail ! gmail ! com
[Download RAW message or body]

So another way to solve the problem - can you config the LDAP to set up a
group that includes all the users?

-Jack

2010/3/19 Lubom=C3=ADr Bene=C5=A1 <Lubomir.Benes@seznam.cz>

> Hello,
>
> I have a servlet where I want to get user principal for further chcking. =
I
> know that to get the user principal from request.getUserPrincipal() I hav=
e
> to be logged in. Every user logged in will have a privilege to access thi=
s
> servlet. What role should I set in
> <auth-constraint>
>        <role-name> ... </role-name>
> </auth-constraint>
> when I am not able to get role from LDAP. Is there any way how to assign
> every LDAP user a default role or is there any way how to force servlet
> login but to allow access for each user?
>

[Attachment #3 (text/html)]

So another way to solve the problem - can you config the LDAP to set up a group that \
includes all the users?<br><br>-Jack<br><br><div class="gmail_quote">2010/3/19 \
Lubomír Beneš <span dir="ltr">&lt;<a \
href="mailto:Lubomir.Benes@seznam.cz">Lubomir.Benes@seznam.cz</a>&gt;</span><br> \
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); \
margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br> <br>
I have a servlet where I want to get user principal for further chcking. I know that \
to get the user principal from request.getUserPrincipal() I have to be logged in. \
Every user logged in will have a privilege to access this servlet. What role should I \
set in<br>

&lt;auth-constraint&gt;<br>
            &lt;role-name&gt; ... &lt;/role-name&gt;<br>
&lt;/auth-constraint&gt;<br>
when I am not able to get role from LDAP. Is there any way how to assign every LDAP \
user a default role or is there any way how to force servlet login but to allow \
access for each user?<br> </blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic