AnsweredAssumed Answered

Error accessing CIFS on JBoss

Question asked by vycitalr on Dec 6, 2007
I have a CIFS environment set up on Jboss (4.2.2.GA). I am using "Entrprise" authenticator, and  as authentication component for Cifs I use the the standard alfresco component (with MD4 hashed passwords support). I also use LDAP authentication component for common alfresco access, and when a user logs in, I store the hashed password in the user's properties. This way in fact I am using CIFS with LDAP. In other words, from CIFS point of view, there is no LDAP, it just authenticates to alfresco.

When server starts, there is no error. Howerver, when I try to connect to CIFS I get

11:39:01,641 INFO  [STDOUT] 11:39:01,641 DEBUG [alfresco.smb.protocol] TCP-SMB session request received from 192.168.4.125
11:39:01,649 INFO  [STDOUT] 11:39:01,649 DEBUG [alfresco.smb.protocol] Waiting for TCP-SMB session request …
11:39:01,649 INFO  [STDOUT] 11:39:01,649 DEBUG [alfresco.smb.protocol] Server session started
11:39:01,651 INFO  [STDOUT] 11:39:01,651 DEBUG [alfresco.smb.protocol] Negotiated SMB dialect - NT LM 0.12
11:39:01,684 INFO  [STDOUT] 11:39:01,684 DEBUG [alfresco.smb.protocol] Assigned protocol handler - org.alfresco.filesys.smb.server.NTProtocolHandler
11:39:01,686 INFO  [STDOUT] 11:39:01,686 DEBUG [smb.protocol.auth] NT Session setup NTLMSSP, MID=8, UID=0, PID=65279
11:39:01,693 INFO  [STDOUT] 11:39:01,693 DEBUG [smb.protocol.auth] User  logged on  (type Normal)
11:39:01,693 INFO  [STDOUT] 11:39:01,693 DEBUG [smb.protocol.auth] NT Session setup NTLMSSP, MID=16, UID=0, PID=65279
11:39:02,775 INFO  [STDOUT] 11:39:02,774 DEBUG [smb.protocol.auth] Error mapping person for user RVycital
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:176)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:241)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
        at $Proxy58.getProperty(Unknown Source)
        at org.alfresco.filesys.server.auth.CifsAuthenticator.mapUserNameToPerson(CifsAuthenticator.java:932)
        at org.alfresco.filesys.server.auth.EnterpriseCifsAuthenticator.doNTLMv2SessionKeyLogon(EnterpriseCifsAuthenticator.java:1949)
        at org.alfresco.filesys.server.auth.EnterpriseCifsAuthenticator.doNtlmsspSessionSetup(EnterpriseCifsAuthenticator.java:965)
        at org.alfresco.filesys.server.auth.EnterpriseCifsAuthenticator.processSessionSetup(EnterpriseCifsAuthenticator.java:672)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.procSessionSetup(NTProtocolHandler.java:407)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:221)
        at org.alfresco.filesys.smb.server.SMBSrvSession.run(SMBSrvSession.java:1381)
        at java.lang.Thread.run(Thread.java:595)
11:39:02,776 INFO  [STDOUT] 11:39:02,776 ERROR [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:176)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:241)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:210)
        at $Proxy58.getProperty(Unknown Source)
        at org.alfresco.filesys.server.auth.CifsAuthenticator.mapUserNameToPerson(CifsAuthenticator.java:932)
        at org.alfresco.filesys.server.auth.EnterpriseCifsAuthenticator.doNTLMv2SessionKeyLogon(EnterpriseCifsAuthenticator.java:1949)
        at org.alfresco.filesys.server.auth.EnterpriseCifsAuthenticator.doNtlmsspSessionSetup(EnterpriseCifsAuthenticator.java:965)
        at org.alfresco.filesys.server.auth.EnterpriseCifsAuthenticator.processSessionSetup(EnterpriseCifsAuthenticator.java:672)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.procSessionSetup(NTProtocolHandler.java:407)
        at org.alfresco.filesys.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:221)
        at org.alfresco.filesys.smb.server.SMBSrvSession.run(SMBSrvSession.java:1381)
        at java.lang.Thread.run(Thread.java:595)


I found a  http://issues.alfresco.com/browse/AR-706, but cannot determine if this is related.  Is it? I could not find a mention about this error in connection with CIFS, and I suppose someone would have to report this already.
In addition, I do not have this problem on Tomcat on Windows. It just happens on JBoss on Linux, perhaps it could be such platform specific.


I am using alfresco 2.1 comunity.
Thank you for any comments.
RVy

Outcomes