[JBoss-user] [Security JAAS/JBoss] - Re: Migrating from Weblogic to JBoss : problem with weapp au

2005-08-03 Thread [EMAIL PROTECTED]
Ignored due to duplicate posting.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888222#3888222

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888222


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Migrating from Weblogic to JBoss : problem with weapp au

2005-08-02 Thread djeanprost
I made a dump of the request.getUserPrincipal(). Here it is :

14:53:46,846 INFO  [STDOUT] debut de 
org.jboss.web.tomcat.security.JBossGenericPrincipal
  name = djeanprost
  password = null
  realm = [EMAIL PROTECTED]
  roles =
   debut de tableau
EPArchitectureSI
EPEncadrementIntermediaire
EPPoleCompetences
LorisIntranet
absenteismeIntranet
ameliorationpermanenteIntranet
barGEDIntranet
basedocCMECDPIntranet
basedocCMEIntranet
basedocGRHIntranet
basedocPHSIntranet
basedocPSOIntranet
basedocQCOIntranet
collaborateur
collaborateurUtilisateurVersions
declarationAbsenteismeIntranet
dossiersStatistiquesIntranet
ficheAbsenteisme
intendance
outilsCommerciaux
outilsPedagogiquesIntranet
utilisateurRelancesIntranet
   fin de tableau
  authPrincipal = djeanprost
  callerPrincipal = djeanprost
  credentials = password1
  subject = Objet :
Principal : djeanprost
Principal : 
Roles(members:absenteismeIntranet,basedocCMECDPIntranet,utilisateurRelancesIntranet,outilsCommerciaux,collaborateurUtilisateurVers
ions,outilsPedagogiquesIntranet,ficheAbsenteisme,basedocPHSIntranet,basedocCMEIntranet,intendance,dossiersStatistiquesIntranet,EPEncadrementIntermedia
ire,basedocGRHIntranet,basedocPSOIntranet,declarationAbsenteismeIntranet,barGEDIntranet,EPPoleCompetences,EPArchitectureSI,LorisIntranet,ameliorationp
ermanenteIntranet,collaborateur,basedocQCOIntranet)

  userRoles =
   debut de liste
absenteismeIntranet
basedocCMECDPIntranet
utilisateurRelancesIntranet
outilsCommerciaux
collaborateurUtilisateurVersions
outilsPedagogiquesIntranet
ficheAbsenteisme
basedocPHSIntranet
basedocCMEIntranet
intendance
dossiersStatistiquesIntranet
EPEncadrementIntermediaire
basedocGRHIntranet
basedocPSOIntranet
barGEDIntranet
declarationAbsenteismeIntranet
EPPoleCompetences
EPArchitectureSI
LorisIntranet
ameliorationpermanenteIntranet
basedocQCOIntranet
collaborateur
   fin de liste
fin de org.jboss.web.tomcat.security.JBossGenericPrincipal


You can see that my principal doesn't have the role utilisateurCollaborateur 
although I specified role-mapping with jboss-web.xml which is below :
jboss-web
security-domainjava:/jaas/djp/security-domain
context-rootaccueil/context-root
   security-role
  role-nameutilisateurCollaborateur/role-name
  principal-namecollaborateur/principal-name
   /security-role
/jboss-web

Here is my web.xml (a subset)
web-app
  
servlet-namemainServlet/servlet-name
servlet-classcom.dexia.common.gui.WebServlet/servlet-class
init-param
  param-namewebAppClassName/param-name
  param-valuecom.dexia.sofaxis.accueil.gui.AccueilGUI/param-value
/init-param
  
  servlet-mapping
...
  /servlet-mapping
  security-constraint
web-resource-collection
  web-resource-nameprotected/web-resource-name
  url-pattern/services/url-pattern
  url-pattern/main.jsp/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
auth-constraint
   role-nameutilisateurCollaborateur/role-name
/auth-constraint
  /security-constraint
  login-config
auth-methodFORM/auth-method
 form-login-config
 form-login-page/connexion.jsp/form-login-page
 form-error-page/echecConnexion.jsp/form-error-page
/form-login-config
  /login-config

  security-role
 role-nameutilisateurCollaborateur/role-name
  /security-role


...

Does anyone has a clue ?


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3887961#3887961

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887961


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user