Dear all,

I'm looking for a way to make my JAAS config configurable from the outside, 
best from a file from ${karaf.home}/container/etc

It should be similar like the org.apache.karaf.jaas.cfg configuration but 
should contain also further information like the following JAAS config:

  <jaas:config name="test">
    <jaas:module className="org.apache.karaf.jaas.modules.ldap.LDAPLoginModule" 
flags="required">
     environment = TEST
      connection.url = ldap://test:389
      connection.username = cn=test,dc=test,dc=test,dc=org
      connection.password = 1234
      user.base.dn = ou=test,dc=test,dc=test,dc=org
      user.filter = (&amp;(cn=%u)(isActive=TRUE))
      user.search.subtree = false
      role.base.dn = ou=app,dc=test,dc=test,dc=org
      role.filter = (&amp;(cn=%u)(isActive=TRUE))
      role.name.attribute = uniqueMember
      role.search.subtree = false
      service.role.base.dn = ou=test,dc=test,dc=test,dc=org
      service.role.filter = (isActive=TRUE)
      service.role.name.attribute = cn
      service.role.search.subtree = false
      authentication = simple
    </jaas:module>
  </jaas:config>

Especially the connection information should be externalized to enable a proper 
staging between environments.

Has anyone already some experience in achieving such a setup?

Many thanks for your support and kind regards,

Christoph

Reply via email to