<?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 LDAP search string to import users/groups in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/ldap-search-string-to-import-users-groups/m-p/150149#M105042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using Alfresco 2.1 CE, on Windows 2003, and Tomcat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have configured NTLM as indicated &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/viewtopic.php?t=7750&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=cifs+server+configuration+error&amp;amp;start=15" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/viewtopic.php?t=7750&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=cifs+server+configuration+error&amp;amp;start=15&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have configured LDAP sync aswell, but I am trying to refine the search LDAP string so it gives me what I want (not all users and groups without any decent qualification).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To do so, I need to follow the LDAP search string syntax, which can look like this (i.e. exclude disabled user accounts and certain names):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(&amp;amp;(objectclass=user)(sAMAccountType=805306368)(!userAccountControl:1.2.840.113556.1.4.803:=2)(!cn=Team*)(!cn=FMS*))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The '&amp;amp;' is causing some trouble.&amp;nbsp; I get the following error when the server is starting up:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;18:31:53,443 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 118 in XML document from file [C:\alfresco21\tomcat\shared\classes\alfresco\extension\ldap-authentication-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The entity name must immediately follow the '&amp;amp;' in the entity reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.xml.sax.SAXParseException: The entity name must immediately follow the '&amp;amp;' in the entity reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know of any workarounds?&amp;nbsp; There seems to be some conflicting syntax between the LDAP search string and the parser.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 23:57:18 GMT</pubDate>
    <dc:creator>qasimh</dc:creator>
    <dc:date>2008-01-29T23:57:18Z</dc:date>
    <item>
      <title>LDAP search string to import users/groups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ldap-search-string-to-import-users-groups/m-p/150149#M105042</link>
      <description>Hi there,I'm using Alfresco 2.1 CE, on Windows 2003, and Tomcat.I have configured NTLM as indicated http://forums.alfresco.com/viewtopic.php?t=7750&amp;amp;postdays=0&amp;amp;postorder=asc&amp;amp;highlight=cifs+server+configuration+error&amp;amp;start=15I have configured LDAP sync aswell, but I am trying to refine</description>
      <pubDate>Tue, 29 Jan 2008 23:57:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ldap-search-string-to-import-users-groups/m-p/150149#M105042</guid>
      <dc:creator>qasimh</dc:creator>
      <dc:date>2008-01-29T23:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP search string to import users/groups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ldap-search-string-to-import-users-groups/m-p/150150#M105043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To get around this conflict, I avoided using the "AND"(&amp;amp;).&amp;nbsp; I applied it's equivalent using "NOT"s (!) and "OR"s (|).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Be sure to properly enclose the not in parenthesis.&amp;nbsp; i.e. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(!CN=John*) is not strictly correct, eventhough most AD tools don't complain.&amp;nbsp; You must use (!(CN=John*))&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 16:00:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ldap-search-string-to-import-users-groups/m-p/150150#M105043</guid>
      <dc:creator>qasimh</dc:creator>
      <dc:date>2008-01-30T16:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: LDAP search string to import users/groups</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/ldap-search-string-to-import-users-groups/m-p/150151#M105044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the proper syntax to avoid conflicts between the SOX parser and the LDAP search string syntax (when dealing with '&amp;amp;') is to embed the search string in the following block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;![CDATA[MY_LDAP_SEARCH_STRING]]&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An example was posted on the Wiki forums:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(@ Active Directory Tips for LDAP People and Group Synchronisation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Enterprise_Security_and_Authentication_Configuration" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Enterprise_Security_and_Authentication_Configuration&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that the nots (!) need to follow the LDAP search syntax rules strictly… i.e. (!(A=B)) as opposed to (!A=B)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2008 21:00:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/ldap-search-string-to-import-users-groups/m-p/150151#M105044</guid>
      <dc:creator>qasimh</dc:creator>
      <dc:date>2008-01-31T21:00:33Z</dc:date>
    </item>
  </channel>
</rss>

