I want to active Ldap Login Module in apache karaf 3.0.3.
My karaf-jaas-module.xml is ;
.
.
.
<jaas:config name="karaf" rank="2">
<jaas:module className="org.apache.karaf.jaas.modules.ldap.LDAPLoginModule" flags="required">
initialContextFactory=com.sun.jndi.ldap.LdapCtxFactory
connection.username=admin
connection.password=xxxxxxx
connection.protocol=
connection.url=ldap://activedirectory_host:389
user.base.dn=cn=orcladmin,cn=users,dc=vmldapdevelop,dc=com
user.filter=(sAMAccountName=%u)
user.search.subtree=true
role.base.dn=ou=Groups,ou=there,DC=local
role.name.attribute=cn
role.filter=(member=%nsdn)
role.search.subtree=true
authentication=simple
</jaas:module>
</jaas:config>
.
.
.
And i wrote jaas:realm-list in karaf console and not seen LdapLoginModule.
karaf@root()> jaas:realm-list
Index | Realm Name | Login Module Class Name
----------------------------------------------------------------------------
1 | karaf | org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
2 | karaf | org.apache.karaf.jaas.modules.publickey.PublickeyLoginModule
How can i do this?
Yes its in blueprint folder. And this folder is in jaas_module bundle. But change anything in this xml, karaf doesn't seen it. Because its override it.
I solve my problem. I create new xml file, which name is ldap-module.xml and my configuration is in it. And i put this xml in deploy folder.
So, my new xml override other xml and when i write "jaas:realm-list" on karaf console, i saw this output ;
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (3.0.3)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.
karaf@root()>
karaf@root()>
karaf@root()>
karaf@root()> jaas:realm-list
Index | Realm Name | Login Module Class Name
-----------------------------------------------------------------------
1 | karaf | org.apache.karaf.jaas.modules.ldap.LDAPLoginModule
karaf@root()>
Thanks.