12-15-2006 06:22 AM
<config evaluator="string-compare" condition="CIFS Server">
<host name="alfrescotest" domain="comp"/>
<comment>Alfresco Alhambra CIFS Server</comment>
<!– Set to the broadcast mask for the subnet –>
<broadcast>132.158.55.255</broadcast>
<!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
<tcpipSMB platforms="linux,solaris,macosx"/>
<netBIOSSMB platforms="linux,solaris,macosx"/>
<hostAnnounce interval="5"/>
<!– Use Win32 NetBIOS interface on Windows –>
<Win32NetBIOS/>
<Win32Announce interval="5"/>
<sessionDebug flags="Negotiate,Socket"/>
</config>
… some other settings …
<config evaluator="string-compare" condition="Filesystem Security">
<authenticator type="passthru">
<Server>ldapserv</Server>
</authenticator>
</config>
This doesn't work. I get the following error when I try to connect with Windows and the client says "Network resource no longer available" after I gave the correct credentials (it keeps asking my username and password when I enter the wrong credentials so it seems authorization works).12:06:24,609 ERROR [org.alfresco.smb.protocol] Closing session due to exception
java.lang.NullPointerException
at org.alfresco.repo.security.authentication.AbstractAuthenticationComponent.
setCurrentAuthentication(AbstractAuthenticationComponent.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
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 $Proxy16.setCurrentAuthentication(Unknown Source)
at org.alfresco.filesys.server.auth.CifsAuthenticator.setCurrentUser(CifsAuthenticator.java:955)
at org.alfresco.filesys.smb.server.SMBSrvSession.findVirtualCircuit(SMBSrvSession.java:287)
at org.alfresco.filesys.smb.server.NTProtocolHandler.procChainedTreeConnectAndX(NTProtocolHandler.java:584)
at org.alfresco.filesys.smb.server.NTProtocolHandler.procAndXCommands(NTProtocolHandler.java:505)
at org.alfresco.filesys.smb.server.NTProtocolHandler.procAndXCommands(NTProtocolHandler.java:458)
at org.alfresco.filesys.smb.server.NTProtocolHandler.procSessionSetup(NTProtocolHandler.java:418)
at org.alfresco.filesys.smb.server.NTProtocolHandler.runProtocol(NTProtocolHandler.java:213)
at org.alfresco.filesys.smb.server.SMBSrvSession.run(SMBSrvSession.java:1334)
at java.lang.Thread.run(Thread.java:595)
And now comes the magic… When I enable one or both of the following options in the log4j file CIFS works!log4j.logger.org.alfresco.smb.protocol=debug
log4j.logger.org.alfresco.smb.protocol.auth=debug
I don't know why or how but with debugging turned on it goes fine?! Any idea how to solve this?
12-18-2006 10:57 AM
12-27-2006 04:30 AM
12-27-2006 05:03 AM
no modification
<beans>
<bean id="authenticationDao" class="org.alfresco.repo.security.authentication.ntlm.NullMutableAuthenticationDao" />
<bean id="authenticationComponentImpl" class="org.alfresco.repo.security.authentication.ntlm.NTLMAuthenticationComponentImpl">
<property name="servers">
<value>samba-server.domain.tld</value>
</property>
<property name="personService">
<ref bean="personService" />
</property>
<property name="nodeService">
<ref bean="nodeService" />
</property>
<property name="guestAccess">
<value>false</value>
</property>
</bean>
</beans>
<alfresco-config area="file-servers">
<config evaluator="string-compare" condition="CIFS Server">
<host name="${localname}_A" domain="DOMAIN"/>
<broadcast>192.168.1.255</broadcast>
</config>
<config evaluator="string-compare" condition="Filesystems" replace="true">
<filesystems>
<filesystem name="Alfresco">
<store>workspace://SpacesStore</store>
<rootPath>/app:company_home</rootPath>
<offlineFiles/>
</filesystem>
</filesystems>
</config>
</alfresco-config>
01-10-2007 11:03 AM
02-08-2007 05:56 PM
02-08-2007 06:28 PM
02-09-2007 09:43 AM
02-15-2007 11:01 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.