In the build directory you find a parameterized ldap init file
In the stack directory you will find a compose file that initializes the ldap host to connect to.
Hope this helps, Eduard
Op donderdag 2 mei 2019 09:58:08 UTC+2 schreef Bernd Schmidt:
Bernd Schmidt
unread,
May 2, 2019, 7:26:38 AM5/2/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Payara Forum
Thank you for your example.
This is like we are doing the configuration at the moment, but we want to replace the current authentification with JSR-375. So I need to configure the ldap password within the annotation @LdapIdentityStoreDefinition
Best regards,
Bernd Schmidt
eduard...@gmail.com
unread,
May 2, 2019, 8:12:44 AM5/2/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to payara...@googlegroups.com
Ah, I'm sorry, didn't understand that directly
It doesn't look like in @LdapIdentityStoreDefinition the bindDnPassword
field can only be hard coded. I would prefer to have that configured
outside the application, so I will probably not use
@LdapIdentityStoreDefinition myself.
However, it is not possible at this moment to retrieve the ${ALIAS=ldap-password} programmatically (so that it could be returned as value of an EL expression). But the ldap password can certainly be referenced from 'external' like a MicroProfile Config file for example (using the intermediate step of using an EL expression to an applicationScoped CDI bean )
If you like such a functionality, programmatically access an aliased password, please request it through our GitHub - https://github.com/payara/Payara/issues
Regards
Rudy
Rudy De Busscher
unread,
May 7, 2019, 10:50:36 AM5/7/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Payara Forum
Hi,
I was a bit too fast with my response. It is possible to retrieve the value of the aliased password since the MicroProfile Config implemenation of Payara supports the alias store (see https://docs.payara.fish/documentation/microprofile/config.html where alias store has priority 105)
So the following construct retrieves your ldap password
@Inject
@ConfigProperty(name="ldap-password")
private String ldapPassword.
Which then can be exposed through EL.
Regards
Rudy
eduard...@gmail.com
unread,
May 7, 2019, 3:20:57 PM5/7/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message