Hello all.
We are running our application within a Wildfly 10.1 server
We have setup our login to our postgres DB to be via LDAP
This is working fine.
We tried to do the same with Wildfly 22 and elytron but it seems that password is not passed to login process.
We are stuck many days with this problem.
Are we doing sth wrong here?
Any help is appreciated
<dir-context name="idmDC" url=our_ldap_url" principal="principal_query">
<credential-reference clear-text="xxxxx"/>
</dir-context>
<ldap-realm name="idmLR" dir-context="idmDC" direct-verification="true">
<identity-mapping rdn-identifier="uid" search-base-dn="cn=users,cn=accounts,dc=internal,dc=net">
<attribute-mapping>
<attribute from="cn" to="Roles" filter="(member=uid={0},cn=users,cn=accounts,dc=internal,dc=net)" filter-base-dn="cn=groups,cn=accounts,dc=internal,dc=net"/>
</attribute-mapping>
</identity-mapping>
</ldap-realm>
roles are retrieved without problems
<datasource jndi-name="java:/devDS" pool-name="devDS">
<connection-url>jdbc:postgresql://localhost:5432/testDB</connection-url>
<driver>postgres</driver>
<pool>
<max-pool-size>100</max-pool-size>
</pool>
<security>
<elytron-enabled>true</elytron-enabled>
<authentication-context>test-authentication-context</authentication-context>
</security>
<validation>
<check-valid-connection-sql>select 1</check-valid-connection-sql>
<background-validation>false</background-validation>
</validation>
<timeout>
<idle-timeout-minutes>5</idle-timeout-minutes>
</timeout>
</datasource>
<authentication-client>
<authentication-configuration name="test-authentication-configuration" realm="idmLR" forwarding-mode="authentication"/>
<authentication-context name="test-authentication-context">
<match-rule authentication-configuration="test-authentication-configuration"/>
</authentication-context>
</authentication-client>
If i put here ream="idmLR" i get "No matching credentials in Subject"
If I put security-domaim="testSD" I get FATAL: invalid password packet size
where testSD
<security-domain name="
testSD " default-realm="idmLR" permission-mapper="default-permission-mapper">
<realm name="idmLR" role-decoder="from-roles-attribute"/>
</security-domain>
Can anyone help here? Have we setup sth wrong?
BR
Apostolos