2017-03-21 7 views
0

현재 activiti를 기반으로하는 Java 웹 응용 프로그램을 개발하고 있으며 인증 시스템으로 ldap을 사용하려고합니다. I 표시된대로 그대로 구성되었지만이 명령을 java System.out.println (processEngine.getIdentityService(). createGroupQuery(). list(). size())에 쓸 때. "이 쿼리는 LDAPGroupManager에서 지원하지 않습니다."라는 오류가 나타납니다. 어떻게 할 수 있습니까? 미리 감사드립니다.LDAP Bean을 사용하는 모든 LDAP 사용자 가져 오기

<?xml version="1.0" encoding="UTF-8"?> 
<beans xmlns="http://www.springframework.org/schema/beans" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" 
xmlns:tx="http://www.springframework.org/schema/tx" 
xsi:schemaLocation=" 
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd 
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd 
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd"> 

<bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource"> 
<property name="driverClass" value="org.h2.Driver" /> 
<property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" /> 
<property name="username" value="sa" /> 
<property name="password" value="" /> 
</bean> 
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> 
<property name="dataSource" ref="dataSource" /> 
</bean> 
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"> 
<property name="dataSource" ref="dataSource" /> 
<property name="transactionManager" ref="transactionManager" /> 
<property name="databaseSchemaUpdate" value="true" /> 
<property name="jobExecutorActivate" value="false" /> 

<property name="configurators"> 
<list> 
<bean class="org.activiti.ldap.LDAPConfigurator"> 

<!-- Server connection params --> 
<property name="server" value="ldap://localhost" /> 
<property name="port" value="10389" /> 
<property name="user" value="uid=admin,ou=system" /> 
<property name="password" value="secret" /> 

<!-- Query params --> 
<property name="baseDn" value="o=mojo" /> 
<property name="queryUserByUserId" value="(&amp;(objectClass=inetOrgPerson)(uid={0}))" /> 
<property name="queryUserByFullNameLike" value="(&amp;(objectClass=inetOrgPerson)(|({0}=*{1}*)({2}=*{3}*)))" /> 
<property name="queryGroupsForUser" value="(&amp;(objectClass=groupOfUniqueNames)(uniqueMember={0}))" /> 

<!-- Attribute config --> 
<property name="userIdAttribute" value="uid" /> 
<property name="userFirstNameAttribute" value="cn" /> 
<property name="userLastNameAttribute" value="sn" /> 

<property name="groupIdAttribute" value="cn" /> 
<property name="groupNameAttribute" value="cn" /> 

</bean> 
</list> 
</property> 
</bean> 
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"> 
<property name="processEngineConfiguration" ref="processEngineConfiguration" /> 
</bean> 
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" /> 
<bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" /> 
<bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" /> 
<bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" /> 
<bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" /> 

</beans> 
+0

이이 LDAPGroupManager 지원하지 않는 빈과 모든 LDAP 사용자를 얻을 수 없다 –

답변

0

우리는 우리가이가 LDAPGroupManager 지원하지 않는 빈과 모든 LDAP 사용자를 얻을 수