cancel
Showing results for 
Search instead for 
Did you mean: 

Overriding ldap in 5.0.d

i2aml8
Champ in-the-making
Champ in-the-making
I am attempting to override common-ldap-context.xml in 5.0.d. When I look for the common-ldap-context.xml, it does not exist where I think it should be. I had a similar issue with a different override. It seems that if the file is not in the files system, it is coming via dynamic execution and it can't be overridden. Anyone having a similar experience?

A fresh install of 5.0.d has no files in /opt/alfresco-5.0.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication, only these directories: alfrescoNtlm  external  kerberos  passthru


Once again scratching my head.
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Your over-rides will still work.  But you need to put them in the correct place * (which will be on the shared class path).    Its never been correct to hack any files under WEB-INF.

For reference you will find the config files within the various Jar files.

i2aml8
Champ in-the-making
Champ in-the-making
My custom-ldap-context.xml is located in /opt/alfresco-5.0.d/tomcat/shared/classes/alfresco/extension/subsystems/Authentication. If you try to create an ldap-ad/ldap1 and put it there Alfresco complains.

My reference was to the fact that the common-ldap-context.xml does not exist in a base install in the location reference previously. Does it exist there in yours? If it does not exist in the file system, then it must be read from a jar. Can you override items read from a jar?

boiss007
Champ on-the-rise
Champ on-the-rise
The easiest way with alfresco 5 community is to get the missing files from the GITHUB directory, there are many files mentionned in documentation that arent actually present in the alfresco install, but you can get them from the github repertory : <a href="https://github.com/Alfresco/community-edition/tree/master/projects/repository/config/alfresco/subsys...">ici</a>
to get ldap-ad working, you'll need to create the /opt/alfresco-5.0.d/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/ldap-ad directory and copy there the common-ldap-context.xml because without it, the whole ldap-ad subsystem won't work.
It is a problem with the 5.0 binary distribution, it was addressed in the forum