cancel
Showing results for 
Search instead for 
Did you mean: 

import samba group from ldap

lme
Champ in-the-making
Champ in-the-making
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 ?
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

You would have to changed the code in LDAPGroupExportSource to support this.

I have raised this as an issue: http://forums.alfresco.com/posting.php?mode=reply&t=2572

Regards

Andy