Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/313.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 单独使用active directory是否可以在不使用CAS的情况下在shiro中支持单点登录?_Java_Active Directory_Shiro - Fatal编程技术网

Java 单独使用active directory是否可以在不使用CAS的情况下在shiro中支持单点登录?

Java 单独使用active directory是否可以在不使用CAS的情况下在shiro中支持单点登录?,java,active-directory,shiro,Java,Active Directory,Shiro,我在shiro中映射了一个active directory,它正确地验证了用户的身份。 现在我想在两个web应用程序中进行单点登录,这两个应用程序映射到同一个active directory。 是否可以在不使用CAS方法的情况下进行单点登录? 下面是我写的代码 **shiro.ini file** [main] authc.loginUrl = /Login.xhtml authc.usernameParam = USERNAME authc.passwordParam = USERPASSWO

我在shiro中映射了一个active directory,它正确地验证了用户的身份。 现在我想在两个web应用程序中进行单点登录,这两个应用程序映射到同一个active directory。 是否可以在不使用CAS方法的情况下进行单点登录? 下面是我写的代码

**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