cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 1.4 Enterprise + Active Directory

lascaux
Champ on-the-rise
Champ on-the-rise
Hi,

I am discovering Alfresco with Jboss package.
The version I am using is 1.4.0

I am trying to configure the ldap synchronization with the domain

1) I modified the file Alfresco\jboss\server\default\conf\alfresco\extension\ldap-authentication-context.xml in order to set my domain information :

- for the bean authenticationComponentImpl :

<property name="userNameFormat">
            <value>sAMAccountName=%s,CN=ServiceIT,OU=IT,OU=Organization,DC=test,DC=org</value>
</property>

- for the ldapPeopleExportSource

<property name="personQuery">
   <value>(objectclass=user)</value>
</property>

<property name="searchBase">
    <value>cn=ServiceIT,ou=IT,ou=Organization,dc=test,dc=org</value>
</property>

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

- for the bean ldapGroupExportSource (in order to synchronized only one group)

<property name="groupQuery">
    <value>(&amp;(objectclass=group)(cn=ServiceIT))</value>
</property>

<property name="searchBase">
   <value>ou=IT,ou=Organization,dc=test,dc=org</value>
</property>


The problem is that, after restarting JBoss, I cannot connect into alfresco anymore.

I perform many search into the forum, but nothing can help me !

Any idea ?

Thanks

Sylvain
3 REPLIES 3

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Try using an ldap browser and see if you can login with the userNameFormat you specified. When you get that to work configuring Alfresco's ldap authenticator will become straightforward.

Hope this helps,

–Aladdin

lascaux
Champ on-the-rise
Champ on-the-rise
Hi,

thanks for the help,

I use ldap explorer (from ASP-DEV) and I can only connect to the AD with a simple login (I just specify the logon name, without the CN and DC stuff)

Does it mean that I just need to specify :

<property name="userNameFormat">
<value>sAMAccountName=%s</value>
</property>

?

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

This means that you should use
<property name="userNameFormat">
    <value>%s</value>
</property>

Cheers,

–Aladdin