<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sorry for that.<div><br></div><div>Adding via ldap.</div><div><br></div><div>I've tried adding groupOfNames to the users ldif file like so;</div><div><br></div><div><div>objectClass: groupOfNames</div><div>...</div><div><span class="Apple-style-span" style="white-space: pre; ">member: cn=staff,ou=groups,dc=foo,dc=bar</span></div><div><span class="Apple-style-span" style="white-space: pre; ">member: cn=pm,ou=groups,dc=foo,dc=bar</span></div><div><pre><font class="Apple-style-span" face="Helvetica" size="3"><span class="Apple-style-span" style="font-size: 12px;">Both staff and pm are defined as follows;</span></font></pre><pre><font class="Apple-style-span" face="Helvetica" size="3"># staff, groups, logan.tv
dn: cn=staff,ou=groups,dc=foo,dc=bar
objectClass: top
objectClass: posixGroup
cn: staff
gidNumber: 20
</font></pre><div><span class="Apple-style-span" style="white-space: pre;"># pm, groups, foo.bar
dn: cn=pm,ou=groups,dc=foo,dc=bar
objectClass: top
objectClass: posixGroup
cn: pm
gidNumber: 200</span><span class="Apple-style-span" style="white-space: pre;">
</span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre;">But every time I try to ldapmodify, I get;</span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre;">ldapmodify: Object class violation (65)
        additional info: invalid structural object class chain (inetOrgPerson/groupOfNames)</span><span class="Apple-style-span" style="white-space: pre;">
</span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div><div><span class="Apple-style-span" style="white-space: pre;"><br></span></div></div></div><div><div><div>On May 6, 2010, at 11:05 AM, Jacob Bresciani wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>are you adding users to local groups in /etc/group or are you creating groups in ldap?<br><br><br>On 2010-05-06, at 11:03 AM, <a href="mailto:aurfalien@gmail.com">aurfalien@gmail.com</a> wrote:<br><br><blockquote type="cite">Hi all,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Not having much luck adding a user to more then 1 group in OpenLDAP  <br></blockquote><blockquote type="cite">thats provided in Centos.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any suggestions to have the outcome of having a user belong to  <br></blockquote><blockquote type="cite">multiple groups?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Should I create a new group that has multiple GIDs and assign a user  <br></blockquote><blockquote type="cite">to that new group?  If so, how? :)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks in advance.<br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">CentOS mailing list<br></blockquote><blockquote type="cite"><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote><br>_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>http://lists.centos.org/mailman/listinfo/centos<br></div></blockquote></div><br></div></body></html>