cancel
Showing results for 
Search instead for 
Did you mean: 

configure Alfresco with Active Directory

imad77
Champ in-the-making
Champ in-the-making
Hi,

I'm a newbie to use and configure Alfresco. I want to add in Alfresco the users located in our Active Directory.
Can someone help me ? is there an example or samples to use?

Thanks a lot,

Imad
19 REPLIES 19

mordi33
Champ in-the-making
Champ in-the-making
Hi,

I resolved my problem.

In the 3.4a version, not create directory "subsystems/****/***/***/***" but until directly edit the file in "tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems".

Now, alfresco authentication run with user's account and password directly since AD.

If an other person have this problem, it's the solution.

Cédric,

ssaravanan
Champ in-the-making
Champ in-the-making
Always you have to edit only the files in the classpath (tomcat/shared/classes/alfresco/extension folder) for customization as any changes
made to the exploded war file in ALfresco will be lost during upgrades.
Edit the
tomcat/conf/catalina.properties file and include the following line

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${catalina.base}/shared/classes/alfresco/extension/subsystems/****/***/***/***"

and restart Alfresco

imad77
Champ in-the-making
Champ in-the-making
@imad

passthru.authentication.domain=TEV  (this can be left empty)
passthru.authentication.servers=TEV\\192.168.2.11 (DOMAIN\\192.168.2.11)
passthru.authentication.defaultAdministratorUserNames=adminst (Do you have a user adminst ?)


Hi,

adminst exists in AD. I added this line in catalina.properties
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${catalina.base}/shared/classes/extension/subsystems/****/***/***/***"


I restarted the Alfresco services but I get the same error message.

Any suggestion to debug these errors?

Thanks

ssaravanan
Champ in-the-making
Champ in-the-making
It should be
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${catalina.base}/shared/classes/alfresco/extension/subsystems/****/***/***/***"

and not
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${catalina.base}/shared/classes/extension/subsystems/****/***/***/***"

imad77
Champ in-the-making
Champ in-the-making
It should be
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${catalina.base}/shared/classes/alfresco/extension/subsystems/****/***/***/***"

and not
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${catalina.base}/shared/classes/extension/subsystems/****/***/***/***"

Hi,

I changed it. I try to connect by putting adminst and the password, but it does not work. Should I use the domain name to connect?

Thanks,

Imad

imad77
Champ in-the-making
Champ in-the-making
It should be
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${catalina.base}/shared/classes/alfresco/extension/subsystems/****/***/***/***"

and not
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar,${catalina.base}/shared/classes/extension/subsystems/****/***/***/***"


Hi,

I want to confirm this information:

Do I need to copy /opt/alfresco-3.3.3/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/alfrescoNtlm in
tomcat/shared/classes/alfresco/extension/subsytems/Authenication/?

because there is no alfrescoNtlm under Authentication.
You suggested me to add :
authentication.chain=alfinst:alfrescoNtlm,passthru1Smiley Tongueassthru
in alfresco-global.properties.

Can you confimr to me that?

Thanks,

Imad

ssaravanan
Champ in-the-making
Champ in-the-making
copy tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/alfrescoNtlm/*.properties to tomcat/shared/classes/alfresco/extention/subsystems/Authentication/alfrescoNtlm/

authentication.chain=alfinst:alfrescoNtlm,passthru1Smiley Tongueassthru

edit tomcat/shared/classes/alfresco/extention/subsystems/Authentication/alfrescoNtlm/alfresco-authentication.properties

alfresco.authentication.authenticateCIFS=true

imad77
Champ in-the-making
Champ in-the-making
copy tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/alfrescoNtlm/*.properties to tomcat/shared/classes/alfresco/extention/subsystems/Authentication/alfrescoNtlm/

authentication.chain=alfinst:alfrescoNtlm,passthru1Smiley Tongueassthru

edit tomcat/shared/classes/alfresco/extention/subsystems/Authentication/alfrescoNtlm/alfresco-authentication.properties

alfresco.authentication.authenticateCIFS=true


Hi,

I tried it but it does not work and here is the error in the alfresco.log:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponent' defined in file [/opt/alfresco-3.3.3/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/passthru/passthru-authentication-context.xml]: Cannot resolve reference to bean 'passthruServers' while setting bean property 'passthruServers'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'passthruServers' defined in file [/opt/alfresco-3.3.3/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/passthru/passthru-authentication-context.xml]: Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 09270002 Error setting passthru domain, Failed to find domain controller or browse master for DOMAIN



Here is my configurations folders:

#cd /opt/alfresco-3.3.3/tomcat/shared/classes/alfresco/extension/subsystems/Authenication
# ls
alfresco.log  alfrescoNtlm  passthru  wcm  www

# ls alfrescoNtlm/
alfresco-authentication-context.xml  alfresco.log             ntlm-filter.properties  www
alfresco-authentication.properties   ntlm-filter-context.xml  wcm

# ls passthru/passthru1/
ntlm-filter.properties  passthru-authentication-context.properties

Where is the issue?

Thanks,

Imad

imad77
Champ in-the-making
Champ in-the-making
copy tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/alfrescoNtlm/*.properties to tomcat/shared/classes/alfresco/extention/subsystems/Authentication/alfrescoNtlm/

authentication.chain=alfinst:alfrescoNtlm,passthru1Smiley Tongueassthru

edit tomcat/shared/classes/alfresco/extention/subsystems/Authentication/alfrescoNtlm/alfresco-authentication.properties

alfresco.authentication.authenticateCIFS=true


Hi,

I resolved my issues by configuring the files located in : /opt/alfresco-3.3.3/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication and not the shared folders.

It works fine and I was able to use LDAP-AD.

Thanks,

Imad

muralie39
Champ on-the-rise
Champ on-the-rise
Thanks