<?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 creating groups fails with  gidNumber: value #0 invalid per syntax in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/creating-groups-fails-with-gidnumber-value-0-invalid-per-syntax/m-p/317317#M4318</link>
    <description>&lt;P&gt;I'm using a posix openLdap as backend for user and groups.&lt;/P&gt;
&lt;P&gt;user creation, deletion and other operation works&lt;/P&gt;
&lt;P&gt;associating user with groups, editing groups, and deleting groups work&lt;/P&gt;
&lt;P&gt;when I try to create a group, it fails with:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; gidNumber: value #0 invalid per syntax
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;here's the ldap operation that seems to trigger it, gidNumber is passed empty:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2015-04-16 08:20:18,691 DEBUG [http-bio-45.55.153.57-8080-exec-9] [org.nuxeo.ecm.directory.ldap.LDAPSession] LDAPSession.createEntry(groupname=nuxeogroup): 
LDAP bind dn='cn=nuxeogroup,ou=people,dc=xxxxxx,dc=com' attrs='{
memberUid=memberUid: cn=emptyRef, **gidNumber=gidNumber:  ,** 
description=description: nuxeo group, objectclass=objectclass: top, groupOfUniqueNames, 
posixGroup, uniqueMember=uniqueMember:  , cn=cn: nuxeogroup}' 
[LDAPSession '-4455130552067948046' for directory ldapGroupDirectory]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;here's the full exception:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Caused by: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - gidNumber: value #0 invalid per syntax]; remaining name 'cn=nuxeogroup,ou=people,dc=xxxxxxxx,dc=com'
        at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3148)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2888)
        at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:423)
        at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:299)
        at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:217)
        at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:206)
        at javax.naming.directory.InitialDirContext.bind(InitialDirContext.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.nuxeo.ecm.directory.ldap.LdapRetryHandler.invoke(LdapRetryHandler.java:56)
        at com.sun.proxy.$Proxy173.bind(Unknown Source)
        at org.nuxeo.ecm.directory.ldap.LDAPSession.createEntry(LDAPSession.java:211)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and here is the xml for mapping the groups (notice the staticAttributeIdIsDn=false):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;directory name="ldapGroupDirectory"&amp;gt;
      &amp;lt;!-- Reuse the default server configuration defined for ldapUserDirectory --&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,dc=xxxxxxx,dc=com&amp;lt;/searchBaseDn&amp;gt;
      &amp;lt;searchFilter&amp;gt;
        cn=*
      &amp;lt;/searchFilter&amp;gt;
      &amp;lt;searchScope&amp;gt;subtree&amp;lt;/searchScope&amp;gt;

      &amp;lt;readOnly&amp;gt;false&amp;lt;/readOnly&amp;gt;

      &amp;lt;!-- comment &amp;lt;cache* /&amp;gt; tags to disable the cache --&amp;gt;
      &amp;lt;cacheEntryName&amp;gt;ldap-group-entry-cache&amp;lt;/cacheEntryName&amp;gt;
      &amp;lt;cacheEntryWithoutReferencesName&amp;gt;ldap-group-entry-cache-without-references&amp;lt;/cacheEntryWithoutReferencesName&amp;gt;

      &amp;lt;creationBaseDn&amp;gt;ou=people,dc=xxxxxxx,dc=com&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;creationClass&amp;gt;posixGroup&amp;lt;/creationClass&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;rdnAttribute&amp;gt;cn&amp;lt;/rdnAttribute&amp;gt;
      &amp;lt;fieldMapping name="groupname"&amp;gt;cn&amp;lt;/fieldMapping&amp;gt;
      &amp;lt;fieldMapping name="grouplabel"&amp;gt;description&amp;lt;/fieldMapping&amp;gt;

      &amp;lt;references&amp;gt;
        &amp;lt;ldapReference field="members" directory="ldapUserDirectory"
          forceDnConsistencyCheck="false" staticAttributeId="memberUid"
          dynamicAttributeId="memberURL" staticAttributeIdIsDn="false"  /&amp;gt;

        &amp;lt;ldapReference field="subGroups" directory="ldapGroupDirectory"
          forceDnConsistencyCheck="false"  staticAttributeId="memberUid"
          dynamicAttributeId="memberURL" staticAttributeIdIsDn="false"  /&amp;gt;

        &amp;lt;inverseReference field="parentGroups" directory="ldapGroupDirectory"
          dualReferenceField="subGroups" /&amp;gt;

        &amp;lt;ldapTreeReference field="directChildren" directory="ldapUserDirectory"
          scope="onelevel" /&amp;gt;
        &amp;lt;ldapTreeReference field="children" directory="ldapUserDirectory"
          scope="subtree" /&amp;gt;

      &amp;lt;/references&amp;gt;
    &amp;lt;/directory&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;how can I tell nuxeo to generate the uid or to let openldap generate it?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Apr 2015 14:46:01 GMT</pubDate>
    <dc:creator>Lorenzol_</dc:creator>
    <dc:date>2015-04-16T14:46:01Z</dc:date>
    <item>
      <title>creating groups fails with  gidNumber: value #0 invalid per syntax</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/creating-groups-fails-with-gidnumber-value-0-invalid-per-syntax/m-p/317317#M4318</link>
      <description>&lt;P&gt;I'm using a posix openLdap as backend for user and groups.&lt;/P&gt;
&lt;P&gt;user creation, deletion and other operation works&lt;/P&gt;
&lt;P&gt;associating user with groups, editing groups, and deleting groups work&lt;/P&gt;
&lt;P&gt;when I try to create a group, it fails with:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; gidNumber: value #0 invalid per syntax
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;here's the ldap operation that seems to trigger it, gidNumber is passed empty:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2015-04-16 08:20:18,691 DEBUG [http-bio-45.55.153.57-8080-exec-9] [org.nuxeo.ecm.directory.ldap.LDAPSession] LDAPSession.createEntry(groupname=nuxeogroup): 
LDAP bind dn='cn=nuxeogroup,ou=people,dc=xxxxxx,dc=com' attrs='{
memberUid=memberUid: cn=emptyRef, **gidNumber=gidNumber:  ,** 
description=description: nuxeo group, objectclass=objectclass: top, groupOfUniqueNames, 
posixGroup, uniqueMember=uniqueMember:  , cn=cn: nuxeogroup}' 
[LDAPSession '-4455130552067948046' for directory ldapGroupDirectory]
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;here's the full exception:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Caused by: javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - gidNumber: value #0 invalid per syntax]; remaining name 'cn=nuxeogroup,ou=people,dc=xxxxxxxx,dc=com'
        at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3148)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081)
        at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2888)
        at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:423)
        at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(ComponentDirContext.java:299)
        at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:217)
        at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(PartialCompositeDirContext.java:206)
        at javax.naming.directory.InitialDirContext.bind(InitialDirContext.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.nuxeo.ecm.directory.ldap.LdapRetryHandler.invoke(LdapRetryHandler.java:56)
        at com.sun.proxy.$Proxy173.bind(Unknown Source)
        at org.nuxeo.ecm.directory.ldap.LDAPSession.createEntry(LDAPSession.java:211)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and here is the xml for mapping the groups (notice the staticAttributeIdIsDn=false):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;directory name="ldapGroupDirectory"&amp;gt;
      &amp;lt;!-- Reuse the default server configuration defined for ldapUserDirectory --&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,dc=xxxxxxx,dc=com&amp;lt;/searchBaseDn&amp;gt;
      &amp;lt;searchFilter&amp;gt;
        cn=*
      &amp;lt;/searchFilter&amp;gt;
      &amp;lt;searchScope&amp;gt;subtree&amp;lt;/searchScope&amp;gt;

      &amp;lt;readOnly&amp;gt;false&amp;lt;/readOnly&amp;gt;

      &amp;lt;!-- comment &amp;lt;cache* /&amp;gt; tags to disable the cache --&amp;gt;
      &amp;lt;cacheEntryName&amp;gt;ldap-group-entry-cache&amp;lt;/cacheEntryName&amp;gt;
      &amp;lt;cacheEntryWithoutReferencesName&amp;gt;ldap-group-entry-cache-without-references&amp;lt;/cacheEntryWithoutReferencesName&amp;gt;

      &amp;lt;creationBaseDn&amp;gt;ou=people,dc=xxxxxxx,dc=com&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;creationClass&amp;gt;posixGroup&amp;lt;/creationClass&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;rdnAttribute&amp;gt;cn&amp;lt;/rdnAttribute&amp;gt;
      &amp;lt;fieldMapping name="groupname"&amp;gt;cn&amp;lt;/fieldMapping&amp;gt;
      &amp;lt;fieldMapping name="grouplabel"&amp;gt;description&amp;lt;/fieldMapping&amp;gt;

      &amp;lt;references&amp;gt;
        &amp;lt;ldapReference field="members" directory="ldapUserDirectory"
          forceDnConsistencyCheck="false" staticAttributeId="memberUid"
          dynamicAttributeId="memberURL" staticAttributeIdIsDn="false"  /&amp;gt;

        &amp;lt;ldapReference field="subGroups" directory="ldapGroupDirectory"
          forceDnConsistencyCheck="false"  staticAttributeId="memberUid"
          dynamicAttributeId="memberURL" staticAttributeIdIsDn="false"  /&amp;gt;

        &amp;lt;inverseReference field="parentGroups" directory="ldapGroupDirectory"
          dualReferenceField="subGroups" /&amp;gt;

        &amp;lt;ldapTreeReference field="directChildren" directory="ldapUserDirectory"
          scope="onelevel" /&amp;gt;
        &amp;lt;ldapTreeReference field="children" directory="ldapUserDirectory"
          scope="subtree" /&amp;gt;

      &amp;lt;/references&amp;gt;
    &amp;lt;/directory&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;how can I tell nuxeo to generate the uid or to let openldap generate it?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 14:46:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/creating-groups-fails-with-gidnumber-value-0-invalid-per-syntax/m-p/317317#M4318</guid>
      <dc:creator>Lorenzol_</dc:creator>
      <dc:date>2015-04-16T14:46:01Z</dc:date>
    </item>
  </channel>
</rss>

