Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl
Hi Thomas, Thanks for your help. Are you saying that the Tomcat JDBC realm users will be automatically becoming registered xwiki users if AppServerTrustedAuthServiceImpl is turned on. Should we see all the users in realm in the xwiki user list if AppServerTrustedAuthServiceImpl is configured correctly? Thx again. Ji -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne Sent: Tuesday, November 04, 2014 2:56 AM To: XWiki Users Subject: Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl To know if you are authenticated from XWiki point of view look at the top right corner, you should see you name or id there (so probably jsmith here). If you are not authenticated then you should have a login button/link instead. You can also enable debug log for this authenticator. Search for it in Administration - Logging and set log level to TRACE or DEBUG. When this is done you should see details on what is happening in this authenticator in your application server log. On Mon, Nov 3, 2014 at 7:10 PM, Ji Zhang jzh...@tradeinformatics.com wrote: Thanks Clemens. How do I test if this authentication works? For example, I have an user jsmith/password in Tomcat JDBC realm. How do I assign the viewing privileges to jsmith? Thanks again. Ji -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Clemens Klein-Robbenhaar Sent: Monday, November 03, 2014 11:42 AM To: users@xwiki.org Subject: Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl On 11/03/2014 05:15 PM, Ji Zhang wrote: Guys, I am new to Xwiki. I have a xwiki deployed on tomcat 6. I need to use authentication against tomcat JDBC realm. AppServerTrustedAuthServiceImpl seems to my option. Are there some detailed documents or examples for using it? yes: add a line do the xwiki.cfg in the WEB-INF folder, as explained here: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HCo ntainerAuthentication That (and restarting tomcat) should be everything you need to do. Cheers, Clemens ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl
Thomas, 1) The logging level is set to be trace for all by default, but I don't see where anything regarding authentication in any of the log file in TOMCAT/logs directory ( catalina.out is the stdout log ) 2) If I do the following: -- logout from xwiki from browser -- Keep log out -- put URL http://techdev1:9090/XWiki/bin/view/XYZ/ into browser == this is protected by realm -- return -- immediately getting 403 Question: why I am not getting log-in prompt? Thanks, Ji -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Ji Zhang Sent: Wednesday, November 05, 2014 12:17 PM To: XWiki Users Subject: Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl Hi Thomas, Thanks for your help. Are you saying that the Tomcat JDBC realm users will be automatically becoming registered xwiki users if AppServerTrustedAuthServiceImpl is turned on. Should we see all the users in realm in the xwiki user list if AppServerTrustedAuthServiceImpl is configured correctly? Thx again. Ji -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne Sent: Tuesday, November 04, 2014 2:56 AM To: XWiki Users Subject: Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl To know if you are authenticated from XWiki point of view look at the top right corner, you should see you name or id there (so probably jsmith here). If you are not authenticated then you should have a login button/link instead. You can also enable debug log for this authenticator. Search for it in Administration - Logging and set log level to TRACE or DEBUG. When this is done you should see details on what is happening in this authenticator in your application server log. On Mon, Nov 3, 2014 at 7:10 PM, Ji Zhang jzh...@tradeinformatics.com wrote: Thanks Clemens. How do I test if this authentication works? For example, I have an user jsmith/password in Tomcat JDBC realm. How do I assign the viewing privileges to jsmith? Thanks again. Ji -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Clemens Klein-Robbenhaar Sent: Monday, November 03, 2014 11:42 AM To: users@xwiki.org Subject: Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl On 11/03/2014 05:15 PM, Ji Zhang wrote: Guys, I am new to Xwiki. I have a xwiki deployed on tomcat 6. I need to use authentication against tomcat JDBC realm. AppServerTrustedAuthServiceImpl seems to my option. Are there some detailed documents or examples for using it? yes: add a line do the xwiki.cfg in the WEB-INF folder, as explained here: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HCo ntainerAuthentication That (and restarting tomcat) should be everything you need to do. Cheers, Clemens ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl
Now I have the configuration below: 1) security setting in web.xml: security-constraint web-resource-collection web-resource-nameTomcatRealmUserArea/web-resource-name url-pattern/bin/view/XYZ/*/url-pattern /web-resource-collection auth-constraint role-nameTomcatRealmUsers/role-name /auth-constraint /security-constraint 2) xwiki.conf: xwiki.authentication.authclass=com.xpn.xwiki.user.impl.xwiki.AppServerTrustedAuthServiceImpl 3) Basic authentication: #-# Authentication type. You can use 'basic' to always use basic authentication. The restriction works, I got 403 (HTTP Status 403 - Access to the requested resource has been denied ) when I try to access: http://mymachine:9090/xWiki/bin/view/XYZ/Tutorial+1 The question is: How to access this page successful? Thanks. -Original Message- From: Ji Zhang Sent: Monday, November 03, 2014 1:10 PM To: users@xwiki.org Subject: RE: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl Thanks Clemens. How do I test if this authentication works? For example, I have an user jsmith/password in Tomcat JDBC realm. How do I assign the viewing privileges to jsmith? Thanks again. Ji -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Clemens Klein-Robbenhaar Sent: Monday, November 03, 2014 11:42 AM To: users@xwiki.org Subject: Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl On 11/03/2014 05:15 PM, Ji Zhang wrote: Guys, I am new to Xwiki. I have a xwiki deployed on tomcat 6. I need to use authentication against tomcat JDBC realm. AppServerTrustedAuthServiceImpl seems to my option. Are there some detailed documents or examples for using it? yes: add a line do the xwiki.cfg in the WEB-INF folder, as explained here: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HContainerAuthentication That (and restarting tomcat) should be everything you need to do. Cheers, Clemens ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Question regarding AppServerTrustedAuthServiceImpl
Guys, I am new to Xwiki. I have a xwiki deployed on tomcat 6. I need to use authentication against tomcat JDBC realm. AppServerTrustedAuthServiceImpl seems to my option. Are there some detailed documents or examples for using it? Thanks inadvance. Ji Zhang Trade Informatics, LLC. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl
Thanks Clemens. How do I test if this authentication works? For example, I have an user jsmith/password in Tomcat JDBC realm. How do I assign the viewing privileges to jsmith? Thanks again. Ji -Original Message- From: users [mailto:users-boun...@xwiki.org] On Behalf Of Clemens Klein-Robbenhaar Sent: Monday, November 03, 2014 11:42 AM To: users@xwiki.org Subject: Re: [xwiki-users] Question regarding AppServerTrustedAuthServiceImpl On 11/03/2014 05:15 PM, Ji Zhang wrote: Guys, I am new to Xwiki. I have a xwiki deployed on tomcat 6. I need to use authentication against tomcat JDBC realm. AppServerTrustedAuthServiceImpl seems to my option. Are there some detailed documents or examples for using it? yes: add a line do the xwiki.cfg in the WEB-INF folder, as explained here: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Authentication#HContainerAuthentication That (and restarting tomcat) should be everything you need to do. Cheers, Clemens ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users