AnsweredAssumed Answered

import samba group from ldap

Question asked by lme on Jul 18, 2006
Latest reply on Sep 8, 2006 by andy
Hello,

I'm currently trying to import samba group from ldap. People synchronisation and authentication against ldap are ok. My problem is that groups are exported but they are empty.

Samba stores members of a group in the repeating "memberUid" attribute. But these attributes don't hold DN of peoples, only the username.

The bean I use to import groups :

    <bean id="ldapGroupExportSource" class="org.alfresco.repo.security.authentication.ldap.LDAPGroupExportSource">
        <property name="groupQuery">
            <value>(objectclass=sambaGroupMapping)</value>
        </property>

        <property name="searchBase">
            <value>ou=groupes,o=mydomain,dc=priv</value>
        </property>

        <property name="userIdAttributeName">
            <value>uid</value>
        </property>

        <property name="groupIdAttributeName">
            <value>cn</value>
        </property>

        <property name="groupType">
            <value>sambaGroupMapping</value>
        </property>

        <property name="personType">
            <value>inetOrgPerson</value>
        </property>
        <property name="LDAPInitialDirContextFactory">
            <ref bean="ldapInitialDirContextFactory"/>
        </property>
        <property name="namespaceService">
            <ref bean="namespaceService"/>
        </property>

        <property name="memberAttribute">
            <value>memberUid</value>
        </property>

        <property name="authorityDAO">
            <ref bean="authorityDAO"/>
        </property>
    </bean>

How could I modify this bean to correctly import groups ?

Outcomes