You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2023/07/03 05:48:06 UTC
[causeway-app-simpleapp] 02/02: reconfigures to use shiro ldap realm directly
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch shiro-ldap-realm
in repository https://gitbox.apache.org/repos/asf/causeway-app-simpleapp.git
commit 0fc4f384d568bf2343e326f8b8e0ace2422a539f
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Mon Jul 3 06:47:57 2023 +0100
reconfigures to use shiro ldap realm directly
---
webapp/src/main/resources/shiro.ini | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/webapp/src/main/resources/shiro.ini b/webapp/src/main/resources/shiro.ini
index a6e5eb9..dffecff 100644
--- a/webapp/src/main/resources/shiro.ini
+++ b/webapp/src/main/resources/shiro.ini
@@ -1,22 +1,16 @@
[main]
-contextFactory = \
- org.apache.causeway.extensions.shirorealmldap.realm.impl.CausewayLdapContextFactory
-contextFactory.systemAuthenticationMechanism = simple
+contextFactory = org.apache.shiro.realm.ldap.JndiLdapContextFactory
contextFactory.url = ldap://localhost:10389
contextFactory.systemUsername = uid=admin,ou=system
contextFactory.systemPassword = secret
contextFactory.authenticationMechanism = CRAM-MD5
-ldapRealm = \
- org.apache.causeway.extensions.shirorealmldap.realm.impl.CausewayLdapRealm
-#ldapRealm.groupObjectClass = groupOfUniqueNames
-#ldapRealm.uniqueMemberAttribute = uniqueMember
-#ldapRealm.uniqueMemberAttributeValueTemplate = uid={0}
-#ldapRealm.searchBase = ou=users,ou=system
+ldapRealm = org.apache.shiro.realm.ldap.DefaultLdapRealm
ldapRealm.contextFactory = $contextFactory
+securityManager.realms = $ldapRealm
[users]