cancel
Showing results for 
Search instead for 
Did you mean: 

getting override chaining files working in 3.2

jriker1
Champ in-the-making
Champ in-the-making
As some of you may have seen from my other posts, I basically have 3.2 working with the latest nightly build using Alfresco authentication.  I also have successfully got LDAP authentication working, but not the right way.  This is the last part of the puzzle and I can't figure it out.  Read the latest WIKI and believe I've followed it but no joy.  Basically if I edit directly the file in:

/srv/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco/subsystems/Authentication/ldap/ldap-authentication.properties

it works.  If I do what I think I am supposed to for setting an authentication.chain value in the global properties file in the shared/classes folder, of ldap1:ldap and set the custom values in the below:

/srv/tomcat6/shared/classes/alfresco/extension/subsystems/Authentication/ldap/ldap1

in a file called ldap-authentication.properties or mychanges.properties it is not read in.  I know this because the logs show errors connecting to openldap.domain.com:389 which is in the WEB-INF ldap-authentication.properties file, not mine.  I even tried creating a default folder for ldap under the shared area per the WIKI but no joy.  If I could get this last piece working correctly it would be the final piece of the puzzle.

Thanks.

JR
16 REPLIES 16

dward
Champ on-the-rise
Champ on-the-rise
Apologies to all on this thread. I caught on a little late.

The feature should work exactly as jriker describes in his first post to this thread.

However, it seems to have been broken after the Labs preview release.

https://issues.alfresco.com/jira/browse/ETHREEOH-2478

I've just checked in a fix to HEAD (revision 15160) along with a unit test to ensure this always shows up in the future. This should show up in the next nighly build, plus of course all future Alfresco releases.

So now all the examples listed in

http://wiki.alfresco.com/wiki/Alfresco_Subsystems#Extension_classpath

should be valid.

jriker1
Champ in-the-making
Champ in-the-making
Thanks DWard.  So does that mean that the 3.2 community edition release version does not work correctly and we need to compile the latest HEAD version?

Thanks.

JR

jpv
Champ in-the-making
Champ in-the-making
I'm stuck on the same problem, do you know if the nightly build linked to below will work or where is the latest build that will, even if it is a previous release? I see the nightly build's change date is: 14 Jul 2009.
http://dev.alfresco.com/downloads/nightly/dist/Alfresco-Community-3.2-Full-Setup.exe

dward
Champ on-the-rise
Champ on-the-rise
The 14th July nightly build should contain the fix.

golden_eye
Champ in-the-making
Champ in-the-making
Hello
i have also problem configure ldap for version  3.2.
Is there enough to copy only alfresco.war file and restart server or i need to install new fresh alfresco.
Thanks for answer.

dward
Champ on-the-rise
Champ on-the-rise
Yes, the new alfresco.war should be sufficient.

michele_orru
Champ in-the-making
Champ in-the-making
I've just tested the config file override on a nightly build (29 sept), in Mac OS X, and it seems is not working.

Basically I need to change the default admin password in every file that still reference the default one.
For Studio, there is tomcat/webapps/studio/WEB-INF/classes/alfresco/web-extension/web-framework-config-custom.xml.

So I just rename shared/classes/alfresco/web-extension/web-framework-config-custom.xml.sample in web-framework-config-custom.xml, overriding the config part that contains the default password. Finally the XML file in shared looks like:

<alfresco-config>
<config evaluator="string-compare" condition="Remote">
      <remote>
         <!– The default endpoint –>
         <default-endpoint-id>alfresco-webuser</default-endpoint-id>
         <endpoint>
            <id>alfresco-webuser</id>
            <name>Alfresco - Web Project user</name>
            <connector-id>alfresco</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/s</endpoint-url>
            <identity>declared</identity>
            <username>admin</username>
            <password>admin999</password>
            <unsecure>false</unsecure>
         </endpoint>      
      </remote>
   </config>
</alfresco-config>

Rebooting alfresco, I still have Login Failed exceptions from Studio.
The only way to get it working is actually renaming the XML file of WEB-INF to something like .old, and copying all his contents inside the XML file in shared. Rebooting Alfresco, this actually works.

If changing log level from info to debug in ./tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties, I cannot see the file in question loaded (for instance I can see another file such as webscript-framework-config-custom.xml, modified as well).

Am I missing something?

Thank you for the help

Michele Orru'