Home:ALL Converter>Ldap Configuration Additional Properties with Micronaut

Ldap Configuration Additional Properties with Micronaut

Ask Time:2022-10-02T04:10:53         Author:Ronaldo Lanhellas

Json Formatter

I need to configure LDAP with my Micronaut app, but I to need add the property java.naming.referral=follow to JNDI configuration, so I tried this:

  security:
    enabled: true
    ldap:
      default:
         enabled: true
         context:
             server: 'ldap://server.local:389'
             managerDn: CN=ldap_kafka,CN=Managed Service Accounts,DC=mycomponat,DC=local
             managerPassword: '1234'
             properties:
               java.naming.referral: follow

But when Micronaut read this yaml instead of a map java.naming.referral=follow I have 3 keys: java, naming and referral.

Is there a way to add this property to Micronaut LDAP configuration ?

Author:Ronaldo Lanhellas,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/73921422/ldap-configuration-additional-properties-with-micronaut
yy