<?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 Sync w/ Multiple OUs in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/ldap-sync-w-multiple-ous/m-p/271678#M224808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This was one of the toughest concepts for me to grasp, as I was new to Alfresco AND AD when I set it up. I recommend using an Active Directory browser like Apache Directory Studio to query your information out and find a search string that works for you. My search string searches based on Description, which is really probably a bad idea, but since our account creation is driven from another database and scripted automatically I haven't had any issues. All of our users are in a single OU, which breaks down into smaller OUs depending on what type of User they are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you need to do is move your search base up a directory so that it includes both OUs and then query down to include both of those OUs in the personQuery.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that makes sense. Here are my two strings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;# The query to select all objects that represent the users to import.&lt;BR /&gt;ldap.synchronization.personQuery=(&amp;amp;(|(description=Facult*)(description=Staf*)(description=Adjunc*)))&lt;BR /&gt;&lt;BR /&gt;# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.&lt;BR /&gt;ldap.synchronization.userSearchBase=ou=Users,ou=root,dc=default,dc=com&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2011 15:04:34 GMT</pubDate>
    <dc:creator>durrell</dc:creator>
    <dc:date>2011-03-14T15:04:34Z</dc:date>
    <item>
      <title>LDAP Sync w/ Multiple OUs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ldap-sync-w-multiple-ous/m-p/271677#M224807</link>
      <description>I'm trying to sync Alfresco with multiple AD OUs. I initially had 1 statement in the config:"ldap.synchronization.userSearchBase=ou=Employees,dc=mydomain,dc=loc"I added a second:"ldap.synchronization.userSearchBase=ou=Portal Users,dc=mydomain,dc=loc"Once it was added it seems to have wiped out all m</description>
      <pubDate>Fri, 11 Mar 2011 19:25:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ldap-sync-w-multiple-ous/m-p/271677#M224807</guid>
      <dc:creator>excitedbynoise</dc:creator>
      <dc:date>2011-03-11T19:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP Sync w/ Multiple OUs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ldap-sync-w-multiple-ous/m-p/271678#M224808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This was one of the toughest concepts for me to grasp, as I was new to Alfresco AND AD when I set it up. I recommend using an Active Directory browser like Apache Directory Studio to query your information out and find a search string that works for you. My search string searches based on Description, which is really probably a bad idea, but since our account creation is driven from another database and scripted automatically I haven't had any issues. All of our users are in a single OU, which breaks down into smaller OUs depending on what type of User they are.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you need to do is move your search base up a directory so that it includes both OUs and then query down to include both of those OUs in the personQuery.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that makes sense. Here are my two strings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;# The query to select all objects that represent the users to import.&lt;BR /&gt;ldap.synchronization.personQuery=(&amp;amp;(|(description=Facult*)(description=Staf*)(description=Adjunc*)))&lt;BR /&gt;&lt;BR /&gt;# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.&lt;BR /&gt;ldap.synchronization.userSearchBase=ou=Users,ou=root,dc=default,dc=com&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 15:04:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ldap-sync-w-multiple-ous/m-p/271678#M224808</guid>
      <dc:creator>durrell</dc:creator>
      <dc:date>2011-03-14T15:04:34Z</dc:date>
    </item>
  </channel>
</rss>

