J'ai un problème avec l'authentification au moment...

cancel
Showing results for 
Search instead for 
Did you mean: 
edvaku
Member II

J'ai un problème avec l'authentification au moment...

Bonjour,

J'ai un problème avec l'authentification au moment de vouloir accéder dans le répertoire   Alfresco, via Samba. Car je peux voir les dossiers Alfresco et AVM via smb://debian_a/. Mais quand j' essaie d'accéder au répertoire  Alfresco, j'obtiens le suivant

16:41:27,477 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: convert /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_53248.gif  /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_53249.png
16:41:36,181 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
16:41:42,705 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
16:41:53,360 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
16:41:53,361 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
16:41:55,099 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Vérification des correctifs à appliquer …
16:41:55,131 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Aucun correctif requis.
16:41:55,136 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
16:41:56,493 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_11-b03; maximum heap size 506,313MB
16:41:56,494 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.0.0 (build-185) schema 38 - Installed version 2.0.0 (build-185) schema 38
16:45:35,780 ERROR [org.alfresco.smb.protocol] Closing session due to exception
net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:477)
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:355)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:219)
   at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:165)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
   at $Proxy29.search(Unknown Source)
   at org.alfresco.filesys.smb.server.repo.CifsHelper.getDirectDescendents(CifsHelper.java:445)
   at org.alfresco.filesys.smb.server.repo.CifsHelper.addDescendents(CifsHelper.java:405)
   at org.alfresco.filesys.smb.server.repo.CifsHelper.getNodeRefs(CifsHelper.java:498)
   at org.alfresco.filesys.smb.server.repo.ContentDiskDriver.startSearch(ContentDiskDriver.java:834)
   at org.alfresco.filesys.smb.server.NTProtocolHandler.procTrans2FindFirst(NTProtocolHandler.java:3206)
   at org.alfresco.filesys.smb.server.NTProtocolHandler.processTransactionBuffer(NTProtocolHandler.java:1810)
   at org.alfresco.filesys.smb.server.NTProtocolHandler.procTransact2(NTProtocolHandler.java:1639)
   at org.alfresco.filesys.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:234)
   at org.alfresco.filesys.smb.server.SMBSrvSession.runHandler(SMBSrvSession.java:1450)
   at org.alfresco.filesys.smb.server.SMBSrvSession.run(SMBSrvSession.java:1351)
   at java.lang.Thread.run(Thread.java:595)
Voici la sortie de mon netstat -pln | grep java après d'exécuter alfresco


debian:/home/edvaku# netstat -pln | grep java
tcp        0      0 0.0.0.0:50500           0.0.0.0:*               LISTEN     3140/java
tcp        0      0 127.0.0.1:8005          0.0.0.0:*               LISTEN     3140/java
tcp        0      0 0.0.0.0:58856           0.0.0.0:*               LISTEN     3140/java
tcp        0      0 0.0.0.0:8009            0.0.0.0:*               LISTEN     3140/java
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     3140/java
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN     3140/java
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     3140/java
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     3140/java
udp        0      0 0.0.0.0:137             0.0.0.0:*                          3140/java
udp    41500      0 0.0.0.0:138             0.0.0.0:*                          3140/java
La description de mon système:

SO: Debian
Alfresco 2.0
smbclient 3.0.24

PS: Pour l'instant je fait tout sur le même poste, il n'y a pas de serveur samba. Par contre j'ai installé le client samba.


Merci beaucoup de votre aide.
3 Replies
lme
Partner

Re: J'ai un problème avec l'authentification au moment...

Bonjour,

Est-ce que tu as configuré une authentification particulière (LDAP, NTLM, etc.) ?
As-tu essayé avec un client Windows ? Ou avec un autre client que smbclient (avec mount -t smbfs par exemple) ?
edvaku
Member II

Re: J'ai un problème avec l'authentification au moment...

Bonjour,

En fait, il n'y a aucune configuration pour l'authentification. Par contre, j'ai réussi à faire la connexion via CIFS en modifiant le fichier fstab et en mettant la ligne suivante

//192.168.0.7/alfresco /mnt/alfresco cifs noauto,username=xxx,password=xxx,rw

Comme ça, j'arrive à naviguer dans les répertoires.

Donc, j'essaie toujours de trouver la façon de le faire via le navigateur sans besoin de configurer fstab.
Mais je crois que ce n'est pas facile de le faire sur des so linux, car j'ai lu que pour faire l'authentification depuis qu'on est logué il faut avoir configuré NTLM pour avoir accès  au CIFS depuis le navigateur.

Sinon, est-ce que vous avez une idée pour avoir accès aux répertoires en se  loguant dans le navigateur?

Merci beaucoup.
lme
Partner

Re: J'ai un problème avec l'authentification au moment...

//192.168.0.7/alfresco /mnt/alfresco cifs noauto,username=xxx,password=xxx,rw

Comme ça, j'arrive à naviguer dans les répertoires.
Donc le serveur CIFS d'alfresco fonctionne bien… C'était peut-être un bug dans smbclient.

Si tu veux accéder aux contenus d'Alfresco en montant un partage en tant que simple utilisateur, tu peux jeter un oeil à fuse (wdfs et curlftpfs).