4 Replies Latest reply on May 18, 2003 2:30 PM by gseel

    Authentication for Connections

    gseel

      Have now advanced to attempting to get a connection for the Pointbase DB based datasource.

      Whether I use getConnection with no params or with user and password, I get an 'Invalid authentication attempt principal=null' message and the stack trace shows that org.jboss.ejb.plugins.JaasSecurityManager has been called and that no users.properties file had been found.

      I have set up ManagedConnectionFactoryProperties to include Username and Password, which I thought caused default logins rather than through JAAS. Are there other steps I need to take to achieve this?

      Thanks.

        • 1. Re: Authentication for Connections
          davidjencks

          Take out the realm info and the jaas mbean reference if its there.

          • 2. Re: Authentication for Connections
            gseel

            David

            Thanks.

            Being stupid again. If I comment out the <applicationpolicy name=PointbaseDBRealm> part of my pointbase-service.xml it fails to deploy. If I comment JAAS mbean out of jboss-service.xml various other mbeans claim they depend on it.

            Can you elaborate a bit on your suggestions? Know I should buy some docco but at the moment I'm just evaluating JBoss for a client.

            • 3. Re: Authentication for Connections
              davidjencks

              The 3.0 config files are very messy, sorry.

              The applciationpolicy example in the db-service.xml file is inside a comment, so removing it will have no effect. What you need to do is remove the ... element and the <depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager

              element from the db-service.xml file.

              I don't know if this is documented in the for-pay docs.

              • 4. Re: Authentication for Connections
                gseel

                David

                Cracked it. Many thanks.