<?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 Nuxeo LDAP groups not loading in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-ldap-groups-not-loading/m-p/321390#M8391</link>
    <description>&lt;P&gt;I have deployed Nuxeo Platform 5.6 on a Windows Server from Tomcat bundle installation. I have configured the LDAP login accordin to the code below. Users are able to login but their groups are not loaded. Is there something I am missing?&lt;/P&gt;

&lt;COMPONENT name="org.nuxeo.ecm.directory.ldap.storage.users"&gt;
  &lt;IMPLEMENTATION class="org.nuxeo.ecm.directory.ldap.LDAPDirectoryDescriptor"&gt;&lt;/IMPLEMENTATION&gt;
  &lt;IMPLEMENTATION class="org.nuxeo.ecm.directory.ldap.LDAPServerDescriptor"&gt;&lt;/IMPLEMENTATION&gt;
  &lt;REQUIRE&gt;org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory&lt;/REQUIRE&gt;
  &lt;!-- the groups SQL directories are required to make this bundle work --&gt;
&lt;P&gt;&lt;REQUIRE&gt;org.nuxeo.ecm.directory.sql.storage&lt;/REQUIRE&gt;&lt;/P&gt;
&lt;P&gt;&lt;EXTENSION target="org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory" point="servers"&gt;&lt;/EXTENSION&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!-- Configuration of a server connection

  A single server declaration can point to a cluster of replicated
  servers (using OpenLDAP's slapd + sluprd for instance). To leverage
  such a cluster and improve availibility, please provide one
  &amp;lt;ldapUrl/&amp;gt; tag for each replica of the cluster.
--&amp;gt;
&amp;lt;server name="default"&amp;gt;

  &amp;lt;ldapUrl&amp;gt;ldap://172.16.12.84:389&amp;lt;/ldapUrl&amp;gt;
  &amp;lt;!-- Optional servers from the same cluster for failover
    and load balancing:

    &amp;lt;ldapUrl&amp;gt;ldap://server2:389&amp;lt;/ldapUrl&amp;gt;
    &amp;lt;ldapUrl&amp;gt;ldaps://server3:389&amp;lt;/ldapUrl&amp;gt;

    "ldaps" means TLS/SSL connection.
  --&amp;gt;

  &amp;lt;!-- Credentials used by Nuxeo5 to browse the directory, create
    and modify entries.

    Only the authentication of users (bind) use the credentials entered
    through the login form if any.
  --&amp;gt;
  &amp;lt;bindDn&amp;gt;cn=IUSR_ldap_user,ou=Service Accounts,ou=SpecialUsers,ou=KEMRI-WTRP,dc=kwtrp,dc=org&amp;lt;/bindDn&amp;gt;
  &amp;lt;bindPassword&amp;gt;pa$$w0rd&amp;lt;/bindPassword&amp;gt;
&amp;lt;/server&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;/COMPONENT&gt;
&lt;P&gt;&lt;EXTENSION target="org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory" point="directories"&gt;&lt;/EXTENSION&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;directory name="userDirectory"&amp;gt;
  &amp;lt;server&amp;gt;default&amp;lt;/server&amp;gt;
  &amp;lt;schema&amp;gt;user&amp;lt;/schema&amp;gt;
  &amp;lt;idField&amp;gt;username&amp;lt;/idField&amp;gt;
  &amp;lt;passwordField&amp;gt;password&amp;lt;/passwordField&amp;gt;

  &amp;lt;searchBaseDn&amp;gt;OU=Users,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/searchBaseDn&amp;gt;
  &amp;lt;searchClass&amp;gt;person&amp;lt;/searchClass&amp;gt;
  
  &amp;lt;searchScope&amp;gt;subtree&amp;lt;/searchScope&amp;gt;

  &amp;lt;substringMatchType&amp;gt;subany&amp;lt;/substringMatchType&amp;gt;

  &amp;lt;readOnly&amp;gt;true&amp;lt;/readOnly&amp;gt;

  &amp;lt;cacheTimeout&amp;gt;3600&amp;lt;/cacheTimeout&amp;gt;

  &amp;lt;!-- maximum number of cached entries before global invalidation --&amp;gt;
  &amp;lt;cacheMaxSize&amp;gt;1000&amp;lt;/cacheMaxSize&amp;gt;

  &amp;lt;creationBaseDn&amp;gt;OU=Users,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/creationBaseDn&amp;gt;
  &amp;lt;creationClass&amp;gt;top&amp;lt;/creationClass&amp;gt;
  &amp;lt;creationClass&amp;gt;person&amp;lt;/creationClass&amp;gt;
  &amp;lt;creationClass&amp;gt;organizationalPerson&amp;lt;/creationClass&amp;gt;
  &amp;lt;creationClass&amp;gt;user&amp;lt;/creationClass&amp;gt;

  &amp;lt;rdnAttribute&amp;gt;uid&amp;lt;/rdnAttribute&amp;gt;
  &amp;lt;fieldMapping name="username"&amp;gt;sAMAccountName&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="password"&amp;gt;userPassword&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="firstName"&amp;gt;givenName&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="lastName"&amp;gt;sn&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="company"&amp;gt;company&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="email"&amp;gt;mail&amp;lt;/fieldMapping&amp;gt;

  &amp;lt;references&amp;gt;

    &amp;lt;inverseReference field="groups" directory="groupDirectory"
      dualReferenceField="members" /&amp;gt;

  &amp;lt;/references&amp;gt;

&amp;lt;/directory&amp;gt;
&amp;lt;directory name="groupDirectory"&amp;gt;
    &amp;lt;server&amp;gt;default&amp;lt;/server&amp;gt;
    &amp;lt;schema&amp;gt;group&amp;lt;/schema&amp;gt;
    &amp;lt;idField&amp;gt;groupname&amp;lt;/idField&amp;gt;
    &amp;lt;searchBaseDn&amp;gt;OU=Groups,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/searchBaseDn&amp;gt;
    &amp;lt;searchFilter&amp;gt;(|(objectClass=groupOfUniqueNames)(objectClass=groupOfURLs))&amp;lt;/searchFilter&amp;gt;
    &amp;lt;searchScope&amp;gt;subtree&amp;lt;/searchScope&amp;gt;
    &amp;lt;entryAdaptor class="org.nuxeo.ecm.directory.impl.WritePolicyEntryAdaptor"&amp;gt;
        &amp;lt;parameter name="fieldName"&amp;gt;dn&amp;lt;/parameter&amp;gt;
        &amp;lt;parameter name="regexp"&amp;gt;.*,ou=editable,OU=Groups,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/parameter&amp;gt;
    &amp;lt;/entryAdaptor&amp;gt;
    &amp;lt;readOnly&amp;gt;true&amp;lt;/readOnly&amp;gt;
    &amp;lt;cacheTimeout&amp;gt;3600&amp;lt;/cacheTimeout&amp;gt;
    &amp;lt;cacheMaxSize&amp;gt;1000&amp;lt;/cacheMaxSize&amp;gt;
    &amp;lt;creationBaseDn&amp;gt;ou=editable,OU=Groups,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/creationBaseDn&amp;gt;
    &amp;lt;creationClass&amp;gt;top&amp;lt;/creationClass&amp;gt;
    &amp;lt;creationClass&amp;gt;groupOfUniqueNames&amp;lt;/creationClass&amp;gt;
    &amp;lt;rdnAttribute&amp;gt;cn&amp;lt;/rdnAttribute&amp;gt;
    &amp;lt;querySizeLimit&amp;gt;200&amp;lt;/querySizeLimit&amp;gt;
    &amp;lt;queryTimeLimit&amp;gt;0&amp;lt;/queryTimeLimit&amp;gt;
    &amp;lt;fieldMapping name="groupname"&amp;gt;cn&amp;lt;/fieldMapping&amp;gt;
    &amp;lt;references&amp;gt;
        &amp;lt;ldapReference directory="userDirectory"
            dynamicAttributeId="memberURL" field="members"
            forceDnConsistencyCheck="false"
            staticAttributeId="uniqueMember" staticAttributeIdIsDn="true"/&amp;gt;
        &amp;lt;ldapReference directory="groupDirectory"
            dynamicAttributeId="memberURL" field="subGroups"
            forceDnConsistencyCheck="false" staticAttributeId="uniqueMember"/&amp;gt;
        &amp;lt;inverseReference directory="groupDirectory"
            dualReferenceField="subGroups" field="parentGroups"/&amp;gt;
        &amp;lt;ldapTreeReference directory="groupDirectory"
            field="children" scope="onelevel"/&amp;gt;
        &amp;lt;inverseReference directory="groupDirectory"
            dualReferenceField="children" field="parents"/&amp;gt;
    &amp;lt;/references&amp;gt;
&amp;lt;/directory&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  
	&lt;EXTENSION target="org.nuxeo.ecm.platform.usermanager.UserService" point="userManager"&gt;
	  &lt;USERMANAGER&gt;
		  &lt;DEFAULTADMINISTRATORID&gt;colima&lt;/DEFAULTADMINISTRATORID&gt;
		  &lt;DEFAULTGROUP&gt;members&lt;/DEFAULTGROUP&gt;
		&lt;/USERMANAGER&gt;
	&lt;/EXTENSION&gt;</description>
    <pubDate>Wed, 18 Sep 2013 09:41:29 GMT</pubDate>
    <dc:creator>caesarooke_</dc:creator>
    <dc:date>2013-09-18T09:41:29Z</dc:date>
    <item>
      <title>Nuxeo LDAP groups not loading</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-ldap-groups-not-loading/m-p/321390#M8391</link>
      <description>&lt;P&gt;I have deployed Nuxeo Platform 5.6 on a Windows Server from Tomcat bundle installation. I have configured the LDAP login accordin to the code below. Users are able to login but their groups are not loaded. Is there something I am missing?&lt;/P&gt;

&lt;COMPONENT name="org.nuxeo.ecm.directory.ldap.storage.users"&gt;
  &lt;IMPLEMENTATION class="org.nuxeo.ecm.directory.ldap.LDAPDirectoryDescriptor"&gt;&lt;/IMPLEMENTATION&gt;
  &lt;IMPLEMENTATION class="org.nuxeo.ecm.directory.ldap.LDAPServerDescriptor"&gt;&lt;/IMPLEMENTATION&gt;
  &lt;REQUIRE&gt;org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory&lt;/REQUIRE&gt;
  &lt;!-- the groups SQL directories are required to make this bundle work --&gt;
&lt;P&gt;&lt;REQUIRE&gt;org.nuxeo.ecm.directory.sql.storage&lt;/REQUIRE&gt;&lt;/P&gt;
&lt;P&gt;&lt;EXTENSION target="org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory" point="servers"&gt;&lt;/EXTENSION&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;!-- Configuration of a server connection

  A single server declaration can point to a cluster of replicated
  servers (using OpenLDAP's slapd + sluprd for instance). To leverage
  such a cluster and improve availibility, please provide one
  &amp;lt;ldapUrl/&amp;gt; tag for each replica of the cluster.
--&amp;gt;
&amp;lt;server name="default"&amp;gt;

  &amp;lt;ldapUrl&amp;gt;ldap://172.16.12.84:389&amp;lt;/ldapUrl&amp;gt;
  &amp;lt;!-- Optional servers from the same cluster for failover
    and load balancing:

    &amp;lt;ldapUrl&amp;gt;ldap://server2:389&amp;lt;/ldapUrl&amp;gt;
    &amp;lt;ldapUrl&amp;gt;ldaps://server3:389&amp;lt;/ldapUrl&amp;gt;

    "ldaps" means TLS/SSL connection.
  --&amp;gt;

  &amp;lt;!-- Credentials used by Nuxeo5 to browse the directory, create
    and modify entries.

    Only the authentication of users (bind) use the credentials entered
    through the login form if any.
  --&amp;gt;
  &amp;lt;bindDn&amp;gt;cn=IUSR_ldap_user,ou=Service Accounts,ou=SpecialUsers,ou=KEMRI-WTRP,dc=kwtrp,dc=org&amp;lt;/bindDn&amp;gt;
  &amp;lt;bindPassword&amp;gt;pa$$w0rd&amp;lt;/bindPassword&amp;gt;
&amp;lt;/server&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;/COMPONENT&gt;
&lt;P&gt;&lt;EXTENSION target="org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory" point="directories"&gt;&lt;/EXTENSION&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;directory name="userDirectory"&amp;gt;
  &amp;lt;server&amp;gt;default&amp;lt;/server&amp;gt;
  &amp;lt;schema&amp;gt;user&amp;lt;/schema&amp;gt;
  &amp;lt;idField&amp;gt;username&amp;lt;/idField&amp;gt;
  &amp;lt;passwordField&amp;gt;password&amp;lt;/passwordField&amp;gt;

  &amp;lt;searchBaseDn&amp;gt;OU=Users,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/searchBaseDn&amp;gt;
  &amp;lt;searchClass&amp;gt;person&amp;lt;/searchClass&amp;gt;
  
  &amp;lt;searchScope&amp;gt;subtree&amp;lt;/searchScope&amp;gt;

  &amp;lt;substringMatchType&amp;gt;subany&amp;lt;/substringMatchType&amp;gt;

  &amp;lt;readOnly&amp;gt;true&amp;lt;/readOnly&amp;gt;

  &amp;lt;cacheTimeout&amp;gt;3600&amp;lt;/cacheTimeout&amp;gt;

  &amp;lt;!-- maximum number of cached entries before global invalidation --&amp;gt;
  &amp;lt;cacheMaxSize&amp;gt;1000&amp;lt;/cacheMaxSize&amp;gt;

  &amp;lt;creationBaseDn&amp;gt;OU=Users,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/creationBaseDn&amp;gt;
  &amp;lt;creationClass&amp;gt;top&amp;lt;/creationClass&amp;gt;
  &amp;lt;creationClass&amp;gt;person&amp;lt;/creationClass&amp;gt;
  &amp;lt;creationClass&amp;gt;organizationalPerson&amp;lt;/creationClass&amp;gt;
  &amp;lt;creationClass&amp;gt;user&amp;lt;/creationClass&amp;gt;

  &amp;lt;rdnAttribute&amp;gt;uid&amp;lt;/rdnAttribute&amp;gt;
  &amp;lt;fieldMapping name="username"&amp;gt;sAMAccountName&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="password"&amp;gt;userPassword&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="firstName"&amp;gt;givenName&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="lastName"&amp;gt;sn&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="company"&amp;gt;company&amp;lt;/fieldMapping&amp;gt;
  &amp;lt;fieldMapping name="email"&amp;gt;mail&amp;lt;/fieldMapping&amp;gt;

  &amp;lt;references&amp;gt;

    &amp;lt;inverseReference field="groups" directory="groupDirectory"
      dualReferenceField="members" /&amp;gt;

  &amp;lt;/references&amp;gt;

&amp;lt;/directory&amp;gt;
&amp;lt;directory name="groupDirectory"&amp;gt;
    &amp;lt;server&amp;gt;default&amp;lt;/server&amp;gt;
    &amp;lt;schema&amp;gt;group&amp;lt;/schema&amp;gt;
    &amp;lt;idField&amp;gt;groupname&amp;lt;/idField&amp;gt;
    &amp;lt;searchBaseDn&amp;gt;OU=Groups,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/searchBaseDn&amp;gt;
    &amp;lt;searchFilter&amp;gt;(|(objectClass=groupOfUniqueNames)(objectClass=groupOfURLs))&amp;lt;/searchFilter&amp;gt;
    &amp;lt;searchScope&amp;gt;subtree&amp;lt;/searchScope&amp;gt;
    &amp;lt;entryAdaptor class="org.nuxeo.ecm.directory.impl.WritePolicyEntryAdaptor"&amp;gt;
        &amp;lt;parameter name="fieldName"&amp;gt;dn&amp;lt;/parameter&amp;gt;
        &amp;lt;parameter name="regexp"&amp;gt;.*,ou=editable,OU=Groups,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/parameter&amp;gt;
    &amp;lt;/entryAdaptor&amp;gt;
    &amp;lt;readOnly&amp;gt;true&amp;lt;/readOnly&amp;gt;
    &amp;lt;cacheTimeout&amp;gt;3600&amp;lt;/cacheTimeout&amp;gt;
    &amp;lt;cacheMaxSize&amp;gt;1000&amp;lt;/cacheMaxSize&amp;gt;
    &amp;lt;creationBaseDn&amp;gt;ou=editable,OU=Groups,OU=KEMRI-WTRP,DC=kwtrp,DC=org&amp;lt;/creationBaseDn&amp;gt;
    &amp;lt;creationClass&amp;gt;top&amp;lt;/creationClass&amp;gt;
    &amp;lt;creationClass&amp;gt;groupOfUniqueNames&amp;lt;/creationClass&amp;gt;
    &amp;lt;rdnAttribute&amp;gt;cn&amp;lt;/rdnAttribute&amp;gt;
    &amp;lt;querySizeLimit&amp;gt;200&amp;lt;/querySizeLimit&amp;gt;
    &amp;lt;queryTimeLimit&amp;gt;0&amp;lt;/queryTimeLimit&amp;gt;
    &amp;lt;fieldMapping name="groupname"&amp;gt;cn&amp;lt;/fieldMapping&amp;gt;
    &amp;lt;references&amp;gt;
        &amp;lt;ldapReference directory="userDirectory"
            dynamicAttributeId="memberURL" field="members"
            forceDnConsistencyCheck="false"
            staticAttributeId="uniqueMember" staticAttributeIdIsDn="true"/&amp;gt;
        &amp;lt;ldapReference directory="groupDirectory"
            dynamicAttributeId="memberURL" field="subGroups"
            forceDnConsistencyCheck="false" staticAttributeId="uniqueMember"/&amp;gt;
        &amp;lt;inverseReference directory="groupDirectory"
            dualReferenceField="subGroups" field="parentGroups"/&amp;gt;
        &amp;lt;ldapTreeReference directory="groupDirectory"
            field="children" scope="onelevel"/&amp;gt;
        &amp;lt;inverseReference directory="groupDirectory"
            dualReferenceField="children" field="parents"/&amp;gt;
    &amp;lt;/references&amp;gt;
&amp;lt;/directory&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  
	&lt;EXTENSION target="org.nuxeo.ecm.platform.usermanager.UserService" point="userManager"&gt;
	  &lt;USERMANAGER&gt;
		  &lt;DEFAULTADMINISTRATORID&gt;colima&lt;/DEFAULTADMINISTRATORID&gt;
		  &lt;DEFAULTGROUP&gt;members&lt;/DEFAULTGROUP&gt;
		&lt;/USERMANAGER&gt;
	&lt;/EXTENSION&gt;</description>
      <pubDate>Wed, 18 Sep 2013 09:41:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-ldap-groups-not-loading/m-p/321390#M8391</guid>
      <dc:creator>caesarooke_</dc:creator>
      <dc:date>2013-09-18T09:41:29Z</dc:date>
    </item>
  </channel>
</rss>

