<?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 Re: LDAP query programmatically in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/ldap-query-programmatically/m-p/307486#M260616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually I couldn't manage to do this with Alfresco. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added the Spring LDAP lib to do a simple LDAP search using an LdapTemplate and an AbstractContextMapper :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;LdapTemplate ldapTemplate = new LdapTemplate();&lt;BR /&gt;ldapTemplate.setContextSource(contextSource);&lt;BR /&gt;List&amp;lt;Person&amp;gt; persons = ldapTemplate.search(DistinguishedName.EMPTY_PATH, "(objectclass=person)", getContextMapper());&lt;BR /&gt;…&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 09:41:44 GMT</pubDate>
    <dc:creator>guilhem</dc:creator>
    <dc:date>2014-10-16T09:41:44Z</dc:date>
    <item>
      <title>LDAP query programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ldap-query-programmatically/m-p/307484#M260614</link>
      <description>Hello,I'm new in Alfresco and I would like to know if it is possible to import some users using an LDAP query but programmatically ? (the synchronization of Alfresco with the LDAP Server is already managed)For example something like :List&amp;lt;User&amp;gt; users = AnyAlfrescoService.getUsers(ldapServerId,</description>
      <pubDate>Tue, 14 Oct 2014 15:19:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ldap-query-programmatically/m-p/307484#M260614</guid>
      <dc:creator>guilhem</dc:creator>
      <dc:date>2014-10-14T15:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP query programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ldap-query-programmatically/m-p/307485#M260615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are going to have to clarify.&amp;nbsp;&amp;nbsp;&amp;nbsp; Of corse you can write something that would do that query.&amp;nbsp;&amp;nbsp;&amp;nbsp; But what would be the use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you need is Person objects within alfresco.&amp;nbsp;&amp;nbsp;&amp;nbsp; Ldap sync can do that and in general the query language is capable of specifying most requirements.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:48:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ldap-query-programmatically/m-p/307485#M260615</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-10-15T08:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP query programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ldap-query-programmatically/m-p/307486#M260616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Actually I couldn't manage to do this with Alfresco. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have added the Spring LDAP lib to do a simple LDAP search using an LdapTemplate and an AbstractContextMapper :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;LdapTemplate ldapTemplate = new LdapTemplate();&lt;BR /&gt;ldapTemplate.setContextSource(contextSource);&lt;BR /&gt;List&amp;lt;Person&amp;gt; persons = ldapTemplate.search(DistinguishedName.EMPTY_PATH, "(objectclass=person)", getContextMapper());&lt;BR /&gt;…&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 09:41:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ldap-query-programmatically/m-p/307486#M260616</guid>
      <dc:creator>guilhem</dc:creator>
      <dc:date>2014-10-16T09:41:44Z</dc:date>
    </item>
  </channel>
</rss>

