[
https://issues.jboss.org/browse/TEIID-5244?page=com.atlassian.jira.plugin...
]
Ramesh Reddy edited comment on TEIID-5244 at 2/1/18 1:05 PM:
-------------------------------------------------------------
[~gadeyne.bram] can you try
{code}
${jboss.server.config.dir}
{code}
was (Author: rareddy):
[~gadeyne.bram] can you try ${jboss.server.config.dir} ?
Text Based LoginModule does not find properties files
-----------------------------------------------------
Key: TEIID-5244
URL:
https://issues.jboss.org/browse/TEIID-5244
Project: Teiid
Issue Type: Bug
Affects Versions: 10.1
Reporter: Bram Gadeyne
Assignee: Steven Hawkins
Hi,
I have this in my configuration:
{code:xml}
<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>
{code}
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)
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)