cancel
Showing results for 
Search instead for 
Did you mean: 

ldap-ad-authentication.properties file in shared or webapps directory

johnnyj
Champ in-the-making
Champ in-the-making
Hi all,
I hope I'm in the right section…If not, my apologies because I truly though it was.

I followed this tutorial http://blog.infoaxon.com/alfresco-integration-active-directory/1313 in order to syncrhonize Alfresco to Active Directory and it worked out just fine.

Problem is I made modification in /home/alfresco/alfresco-4.0.2/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/ldap-ad/ldap-ad-authentication.properties , as the tutorial says.

However, it seems like it is not the right way to be done and modifications should be made in /home/alfresco/alfresco-4.0.2/tomcat/shared

So I tried create the following folder structure in the shared directory with the same ldap-ad-authentication.properties file so alfresco would use it instead of : /home/alfresco/alfresco-4.0.2/tomcat/shared/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/ldap-ad/ldap-ad-authentication.properties

Hope this is clear to you guys…


But it doesn't work. I realize I'm doing it wrong… Can anyone help me out with that one please ? How can I do this ?
6 REPLIES 6

afaust
Legendary Innovator
Legendary Innovator
Hello,

please have a look at <a href="http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems">the Alfresco Authentication Subsystems</a> and <a href="http://wiki.alfresco.com/wiki/Alfresco_Subsystems#Extension_classpath">Configuring Subsystems</a> wiki pages to understand how to properly configure LDAP-AD in shared/classes. Basically, your path should be /home/alfresco/alfresco-4.0.2/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/ldap-ad1/ldap-ad-authentication.properties

Regards
Axel

cibex
Champ in-the-making
Champ in-the-making
Hi together,

I have a similar issue in 4.2.e.
I have configured the two property-files in shared/classes/alfresco/extension/subsystems/Authentication/passthru/passthru1
My passthru settings are correct (tested in alfresco-global.properties)

Starting the Alfresco Server with the subsystem-settings I get the following error, for me it looks like Alfresco is expecting some settings in the wrong path (tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/passthru)

2014-05-22 17:28:44,046  WARN  [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Authentication' subsystem, ID: [Authentication, managed, passthru1] failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'globalAuthenticationFilter' defined in file [/opt/alfresco-4.2.e/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/passthru/ntlm-filter-context.xml]: Cannot resolve reference to bean 'AuthenticationComponent' while setting bean property 'authenticationComponent'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuthenticationComponent' defined in file [/opt/alfresco-4.2.e/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/passthru/passthru-authentication-context.xml]: Cannot resolve reference to bean 'authenticationComponent' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationComponent' defined in file [/opt/alfresco-4.2.e/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-4.2.e/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/passthru/passthru-authentication-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'timeout'; nested exception is java.lang.NumberFormatException: For input string: "${passthru.authentication.connectTimeout}"


I had the same issue using the ldap-subsystem.
Any ideas? Thanks in advance.

kr

Josef

johnnyj
Champ in-the-making
Champ in-the-making
Thank you very much for your time, this is the answer I was looking for. Was having a tough time with the exact path…Thanks again.

mrogers
Star Contributor
Star Contributor
If you only have one authenticator,  then just put your ldap properties in alfresco-global.properties.  You only need to override the subsystems if you have mupliple instances of ldap on your chain.

johnnyj
Champ in-the-making
Champ in-the-making
Indeed, I only have one authenticator so I try to add my ldap properties in alfresco-global.properties right away. Thanks
Done.
I don't know if it's related to the modifications I just made but I get constantly the following message in the logs on startup :

07:57:51,667 ERROR [org.quartz.core.JobRunShell] Job DEFAULT.org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean#20724356 threw an unhandled Exception:
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'run' on target class [class org.alfresco.module.org_alfresco_module_wcmquickstart.jobs.FeedbackProcessor] failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: 07140002 SOLR queries can not be executed while the repository is bootstrapping
   at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:273)

Then the sync on startup fails :

08:01:23,497 WARN  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Failed initial synchronize with user registries
org.alfresco.error.AlfrescoRuntimeException: 07140023 User and group import failed

08:01:23,497 WARN  [org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizer] Failed initial synchronize with user registries
org.alfresco.error.AlfrescoRuntimeException: 07140023 User and group import failed

I don't know what might be the problem, the import.cron synchronization still works though… Only the Start-up sync fails…
You can see the logs attached.

Can anyone help me out with this please ?

mrogers
Star Contributor
Star Contributor
The error is irrelevant for this discussion.   Seems to be a wcm quickstart bootstrap issue.

However The warnings indicate something going wrong with user and group sync so will be related to your sync settings.   Trying to obtain the members of a group.   Probably an incorrect query or field name.   Take a close look at the name and type of the property that contains the elements within a group. GroupMemberAttributeName