Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5244

Text Based LoginModule does not find properties files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 10.2
    • 10.1
    • None
    • None
    • Workaround Exists
    • Hide

      Using the full path in stead of $(jboss.server.config.dir) resolves the issue.

      Show
      Using the full path in stead of $(jboss.server.config.dir) resolves the issue.

    Description

      Hi,

      I have this in my configuration:

      <security-domain name="teiid-security" cache-type="default">
                          <authentication>
                              <login-module code="UsersRoles" flag="required">
                                  <module-option name="usersProperties" value="$(jboss.server.config.dir)/teiid-security-users.properties"/>
                                  <module-option name="rolesProperties" value="$(jboss.server.config.dir)/teiid-security-roles.properties"/>
                              </login-module>
                          </authentication>
                      </security-domain>
      

      The two files teiid-security-roles.properties and teiid-security-users.properties are located in the configuration directory of wildfly.

      I see this error message in the logs: It seems like teiid is using the value as a directory.

      2018-02-01 15:20:40,918 ERROR [org.jboss.security] (NIO1) PBOX00261: Failed to load users/passwords/roles files: java.io.IOException: PBOX00072: Properties file $(jboss.server.config.dir)/teiid-security-users.properties/defaultUsers.properties not found
      at org.jboss.security.auth.spi.Util.loadProperties(Util.java:212)
      at org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:205)
      at org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:219)
      at org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:146)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-rareddy Ramesh Reddy
              gadeynebram Bram Gadeyne (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: