10 Replies Latest reply on Sep 16, 2008 11:36 AM by peterj

    Windows Authentication with Jboss

    mangal9i

      Hi All,
      This is My first Interaction with Jboss.

      Basically I'm a BI developer. I'm using Pentaho Open souce BI which uses Jboss. Jboss gets installed with the installation of Pentaho itself.

      Now I want to implement the Windows Authetication in pentaho. Means instead of login screen at http://localhost:8080/ I want user should be authenticated by his/her windows account.

      I try to google it around but couldn't find any good document which will guide me step by step in this regards.

      So can you give me some detailed document on same which will guide me step by step.

      Thanks in Advance
      Regards

        • 1. Re: Windows Authentication with Jboss
          peterj

          Are the Windows accounts being managed by Active Directory? If so, see http://wiki.jboss.org/wiki/LdapExtLoginModule.

          I also have another source, but it is not free. I can provide the URL if you are interested.

          • 2. Re: Windows Authentication with Jboss

            Hello,
            what you want to do simply you cannot do it in Java because it would be something platform dependant. Maybe you could look for a Single Sign On Module but I'm not aware of any that can do what you want.
            The only thing you have got from a Java Main is

            System.getProperty("user.name")


            which will return your windows user name.
            regards

            • 3. Re: Windows Authentication with Jboss
              mangal9i

              Thnks Peter and Francis.
              yes Peter you can send me the Url.

              Many thanks

              • 4. Re: Windows Authentication with Jboss
                mangal9i

                I will try the solution given by you and will let you know.

                • 5. Re: Windows Authentication with Jboss
                  mangal9i

                   

                  "PeterJ" wrote:
                  Are the Windows accounts being managed by Active Directory? If so, see http://wiki.jboss.org/wiki/LdapExtLoginModule.

                  I also have another source, but it is not free. I can provide the URL if you are interested.


                  Hi Peter,
                  Just going through the link given by you, That arcticle talks about the jboss-4.0.3, and I'm having Jboss 2.0 will it work there?

                  • 6. Re: Windows Authentication with Jboss
                    peterj

                    JBoss 2.0? Are you using JBoss Web Server? Also, is it really version 2.0 or is it 2.1? I ask because I could not find where to download 2.0 (I could find only 1.0.1 and 2.1).

                    The wiki link is for the JBoss Application Server, and though it mentions version 4.0.3, the steps apply to 4.2.x and to 5.0. You can also apply the same steps to JBoss Web Server 1.0 because it uses the same basic configuration options as JBoss Application Server.

                    However, JBoss Web Server 2.1 reverts back to the original Tomcat directory structure, and thus probably also reverts back to the original Tomcat configuration options. Therefore, neither the wiki page I gave nor the additional non-free resource I offered will help. However, 2.1 does come with the docs which should provide login configuration information.

                    • 7. Re: Windows Authentication with Jboss
                      mangal9i

                      Hi Peter,
                      I check into the server Info and I saw this JbossWeb/2.0.0GA. So I guess it's web server.
                      Anything more?
                      And as I told previously, I din't istall the Jboss Seperatly, It got installed with the setup of Pentaho open source BI. So don't even have any configuration information documents for Jboss.

                      Regards

                      • 8. Re: Windows Authentication with Jboss
                        peterj

                         

                        I check into the server Info and I saw this JbossWeb/2.0.0GA. So I guess it's web server.


                        Not necessarily - the App Server contains the Web Server so this line would still show up (in which case you are running JBoss Application Server 4.2.1.GA - it contains JBoss Web 2.0.0.GA)

                        Let's try another way - do you have a file server/xxx/conf/login-config.xml under the JBoss directory? (where 'xxx' is a configuration name - it could be anything) If so, then the link I provided earlier will work for you.

                        • 9. Re: Windows Authentication with Jboss
                          mangal9i

                          Hi peter,
                          I had login-xml in 2 places
                          one is at
                          \pentaho\bi-server\jboss\server\default\conf

                          and 2nd one at
                          pentaho\bi-server\jboss\server\default\deploy\jboss-portal.sar\conf

                          • 10. Re: Windows Authentication with Jboss
                            peterj

                            This gets better with every post. You are actually running JBoss Application Server with JBoss Portal. I had no idea that Pentaho came with JBoss Portal.

                            You can use the link I provided for every application other than the Portal.

                            For JBoss Portal, see http://wiki.jboss.org/wiki/ConfigurePortalForMicrosoftActiveDirectory