Can only active directory support single sign-on to shiro without using CAS?

I have mapped the active directory to siro, which authenticates the user correctly. Now, I want to make one mark in two web apps that map to the same active directory. Is it possible to make one mark without using the CAS approach? Below is the code I wrote,

**shiro.ini file**
[main]
authc.loginUrl = /Login.xhtml
authc.usernameParam = USERNAME
authc.passwordParam = USERPASSWORD
authc.rememberMeParam = rememberMe
user.loginUrl = /Login.xhtml

activeDirectoryRealm = org.apache.shiro.realm.activedirectory.ActiveDirectoryRealm
activeDirectoryRealm.systemUsername = testuser
activeDirectoryRealm.systemPassword = password
activeDirectoryRealm.searchBase = DC=XXX,DC=XXXXXX,DC=com
activeDirectoryRealm.url = ldap://XXX.XXXXXX.com:389

[users]

[urls]
/Login.xhtml = authc
/** = authc
/Login.xhtml = anon
/app/** = user

I would be very grateful, if any of you could help me with this. Thanks in advance

      

+3


source to share





All Articles