cancel
Showing results for 
Search instead for 
Did you mean: 

Export tools credentials

rguinot
Confirmed Champ
Confirmed Champ
Hi i am trying to use the export tools to do a full backup of the repository .

Alfresco  is deployed into JBoss 4.0.4GA , with Jboss Portal 2.2.1 . I am accessing the portal by https through Apache /ModJK .
The server is using Sun JDK 1.5.0_07 and is a Fedora Core 5 .
Authentification is done via our OpenLDAP server , and works fine with the web client .

I have a shell script to add all the jars from WEB-INF/lib , the properties and xml files in WEB-INF/classes ,  the mysql connector and Log4J .
The conf/alfresco/extension/*.properties files defining custom data location and db access are also in the classpath .

The resulting java command is :
 java -cp $JAVA_CLASSPATH org.alfresco.tools.Export -user *** -pwd *** -s workspace://SpacesStore -d /tmp -zip repo 

I get the following error :

Alfresco Repository Exporter
log4j:WARN No appenders could be found for logger (org.springframework.beans.factory.xml.XmlBeanDefinitionReader).
log4j:WARN Please initialize the log4j system properly.
The following error has occurred:
Bad credentials presented
org.alfresco.repo.security.authentication.AuthenticationException: Bad credentials presented


I assume the exporter does not find the repository , but other than providing the properties to the classpath , i don't see how else i can define the repo location .
I have looked at the various guides on this matter , but they don't mention this error , and are not mentionning other auth mechanisms beside the alfresco one .
How can i make this work ?

Any help would be greatly appreciated , because i really need this functionnality .

On a side note , are incremental backups supported , and are those tools the best way to backup the repository ?

Thanks in advance ,
Romain .
1 REPLY 1

rguinot
Confirmed Champ
Confirmed Champ
UPDATE :
I managed to identify the problem ,  . In my case , the Import / Export tools seem to ignore the extensions in alfresco/extensions even though they are present on the classpath .
Therefore ,The LDAP auth i set up for the web client was not loaded and auth failed .

To make it work , i had to put the definitions of authenticationComponentImpl , alfDaoImpl , and authorityService usually defined in alfresco/extension/ldap-authentication-context.xml directly in WEB-INF/classes/authentication-services-context.xml inside the WAR .

The LDAP is now used and the export is running …

If someone can suggest why the extensions are not picked by the tools , i'm interested …

Romain .