<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic GET ALL LDAP USERS WITH LDAP BEAN in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-all-ldap-users-with-ldap-bean/m-p/33121#M14022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,I am currently devloping a java web application based on activiti and i want to use ldap as an authentification system.&lt;/P&gt;&lt;P&gt;I Configured ldap as it its 's shown,but when i write this command in java&amp;nbsp;&lt;SPAN class=""&gt; &lt;/SPAN&gt;System.out.println(processEngine.getIdentityService().createGroupQuery().list().size()); &amp;nbsp;i got an &amp;nbsp;error "This query is not supported by the LDAPGroupManager".So what can i do ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;beans xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:aop="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/aop" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/aop&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; xmlns:tx="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/tx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/tx&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; xsi:schemaLocation="&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/beans/spring-beans-2.0.xsd&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/tx" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/tx&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/tx/spring-tx-2.0.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/tx/spring-tx-2.0.xsd&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/aop" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/aop&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.springframework.org/schema/aop/spring-aop-2.0.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.springframework.org/schema/aop/spring-aop-2.0.xsd&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource"&amp;gt;&lt;BR /&gt; &amp;lt;property name="driverClass" value="org.h2.Driver" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="username" value="sa" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="password" value="" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&amp;gt;&lt;BR /&gt; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;BR /&gt; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;property name="configurators"&amp;gt;&lt;BR /&gt; &amp;lt;list&amp;gt;&lt;BR /&gt; &amp;lt;bean class="org.activiti.ldap.LDAPConfigurator"&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;!-- Server connection params --&amp;gt;&lt;BR /&gt; &amp;lt;property name="server" value="ldap://localhost" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="port" value="10389" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="user" value="uid=admin,ou=system" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="password" value="secret" /&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;!-- Query params --&amp;gt;&lt;BR /&gt; &amp;lt;property name="baseDn" value="o=mojo" /&amp;gt; &lt;BR /&gt; &amp;lt;property name="queryUserByUserId" value="(&amp;amp;amp;(objectClass=inetOrgPerson)(uid={0}))" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="queryUserByFullNameLike" value="(&amp;amp;amp;(objectClass=inetOrgPerson)(|({0}=*{1}*)({2}=*{3}*)))" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="queryGroupsForUser" value="(&amp;amp;amp;(objectClass=groupOfUniqueNames)(uniqueMember={0}))" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!-- Attribute config --&amp;gt;&lt;BR /&gt; &amp;lt;property name="userIdAttribute" value="uid" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="userFirstNameAttribute" value="cn" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="userLastNameAttribute" value="sn" /&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;property name="groupIdAttribute" value="cn" /&amp;gt;&lt;BR /&gt; &amp;lt;property name="groupNameAttribute" value="cn" /&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt; &amp;lt;/list&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&amp;gt;&lt;BR /&gt; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" /&amp;gt;&lt;BR /&gt; &amp;lt;bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" /&amp;gt;&lt;BR /&gt; &amp;lt;bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" /&amp;gt;&lt;BR /&gt; &amp;lt;bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" /&amp;gt;&lt;BR /&gt; &amp;lt;bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 10:01:25 GMT</pubDate>
    <dc:creator>fatma19</dc:creator>
    <dc:date>2017-03-21T10:01:25Z</dc:date>
    <item>
      <title>GET ALL LDAP USERS WITH LDAP BEAN</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-ldap-users-with-ldap-bean/m-p/33121#M14022</link>
      <description>Hi,I am currently devloping a java web application based on activiti and i want to use ldap as an authentification system.I Configured ldap as it its 's shown,but when i write this command in java&amp;nbsp; System.out.println(processEngine.getIdentityService().createGroupQuery().list().size()); &amp;nbsp;i got an &amp;nbsp;er</description>
      <pubDate>Tue, 21 Mar 2017 10:01:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-ldap-users-with-ldap-bean/m-p/33121#M14022</guid>
      <dc:creator>fatma19</dc:creator>
      <dc:date>2017-03-21T10:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: GET ALL LDAP USERS WITH LDAP BEAN</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-ldap-users-with-ldap-bean/m-p/33122#M14023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the source (&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-ldap/src/main/java/org/activiti/ldap/LDAPGroupManager.java" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;) to see what queries are available to the LDAPGroupManager.&lt;/P&gt;&lt;P&gt;As you can see, list() must have a userid as part of the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The specific code snippet is below:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE data-tab-size="8" style="color: #24292e; background-color: #ffffff;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;@Override&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" data-line-number="89" style="color: rgba(27, 31, 35, 0.298039); padding: 0px 10px;"&gt;&lt;/TD&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;public&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a71d5d;"&gt;List&amp;lt;&lt;SPAN class="" style="color: #333333;"&gt;Group&lt;/SPAN&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="" style="color: #795da3;"&gt;findGroupByQueryCriteria&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #333333;"&gt;GroupQueryImpl&lt;/SPAN&gt; &lt;SPAN class="" style="color: #ed6a43;"&gt;query&lt;/SPAN&gt;, &lt;SPAN class="" style="color: #333333;"&gt;Page&lt;/SPAN&gt; &lt;SPAN class="" style="color: #ed6a43;"&gt;page&lt;/SPAN&gt;) {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" data-line-number="90" style="color: rgba(27, 31, 35, 0.298039); padding: 0px 10px;"&gt;&lt;/TD&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;&lt;SPAN class="" style="color: #969896;"&gt;// Only support for groupMember() at the moment&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" data-line-number="91" style="color: rgba(27, 31, 35, 0.298039); padding: 0px 10px;"&gt;&lt;/TD&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;if&lt;/SPAN&gt; (query&lt;SPAN class="" style="color: #a71d5d;"&gt;.&lt;/SPAN&gt;getUserId() &lt;SPAN class="" style="color: #a71d5d;"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0086b3;"&gt;null&lt;/SPAN&gt;) {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" data-line-number="92" style="color: rgba(27, 31, 35, 0.298039); padding: 0px 10px;"&gt;&lt;/TD&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;return&lt;/SPAN&gt; findGroupsByUser(query&lt;SPAN class="" style="color: #a71d5d;"&gt;.&lt;/SPAN&gt;getUserId());&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" data-line-number="93" style="color: rgba(27, 31, 35, 0.298039); padding: 0px 10px;"&gt;&lt;/TD&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;} &lt;SPAN class="" style="color: #a71d5d;"&gt;else&lt;/SPAN&gt; {&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" data-line-number="94" style="color: rgba(27, 31, 35, 0.298039); padding: 0px 10px;"&gt;&lt;/TD&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;&lt;SPAN class="" style="color: #a71d5d;"&gt;throw&lt;/SPAN&gt; &lt;SPAN class="" style="color: #a71d5d;"&gt;new&lt;/SPAN&gt; &lt;SPAN class="" style="color: #333333;"&gt;ActivitiIllegalArgumentException&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #183691;"&gt;"This query is not supported by the LDAPGroupManager"&lt;/SPAN&gt;);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" data-line-number="95" style="color: rgba(27, 31, 35, 0.298039); padding: 0px 10px;"&gt;&lt;/TD&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="" data-line-number="96" style="color: rgba(27, 31, 35, 0.298039); padding: 0px 10px;"&gt;&lt;/TD&gt;&lt;TD class="" style="color: #24292e; padding: 0px 10px;"&gt;}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 17:45:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-ldap-users-with-ldap-bean/m-p/33122#M14023</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-03-21T17:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: GET ALL LDAP USERS WITH LDAP BEAN</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-all-ldap-users-with-ldap-bean/m-p/33123#M14024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so what is the sollution to get the list of users in a group ?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 20:10:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-all-ldap-users-with-ldap-bean/m-p/33123#M14024</guid>
      <dc:creator>fatma19</dc:creator>
      <dc:date>2017-03-21T20:10:32Z</dc:date>
    </item>
  </channel>
</rss>

