cancel
Showing results for 
Search instead for 
Did you mean: 

PassthruAuthenticator Null Pointer

mliedtke
Champ in-the-making
Champ in-the-making
Over the last few weeks I set up a trial version of Alfresco Enterprise 2.1.1, and had CIFS configured and working properly (Actually working really well).  As it turns out it's doubtful that we'll get the needed funding for enterprise, so today I've been setting up Community 2.1.  So far I've been able to set it up using our custom config from the Enterprise trial, but I'm having an issue with CIFS.  When I attempt to access a CIFS folder, i get the following error.


14:50:25,489 INFO  [STDOUT] 14:50:25,486 ERROR [alfresco.smb.protocol] Socket closed by remote client
14:50:25,678 INFO  [STDOUT] 14:50:25,676 ERROR [alfresco.smb.protocol] Closing session due to exception
java.lang.NullPointerException
        at org.alfresco.filesys.server.auth.passthru.PassthruAuthenticator.doNtlmsspSessionSetup(PassthruAuthenticator.java:821)
        at org.alfresco.filesys.server.auth.passthru.PassthruAuthenticator.processSessionSetup(PassthruAuthenticator.java:581)
        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:1352)
        at java.lang.Thread.run(Thread.java:619)

I found this issue that looks kind of similar, but not exactly the same (http://issues.alfresco.com/browse/AR-1475)

Any ideas?

thanks,
Mark
2 REPLIES 2

melos
Champ in-the-making
Champ in-the-making
I've had the same issue.
I've enabled passthru authentication for CIFS against a SMB server.

My file-servers-custom.xml looks like this:

<alfresco-config area="file-servers">

   <!– To override the default Alfresco filesystem use replace="true", to –>
   <!– add additional filesystems remove the replace="true" attribute     –>

   <config evaluator="string-compare" condition="Filesystem Security" replace="true">
      <authenticator type="passthru">
         <Server>MY_SMB_SERVER_IP</Server>
      </authenticator>
   </config>
  
<!–
         <Server>10.1.2.2,dc02.win2k.it</Server>
–>

   <config evaluator="string-compare" condition="CIFS Server" replace="true">
   <serverEnable enabled="true"/>

      <host name="alfresco-cifs" domain="MYDOMAIN" />
      <comment>Alfresco CIFS Server</comment>

      <broadcast>255.255.255.255</broadcast>

      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB platforms="linux,solaris,macosx"/>
      
      <hostAnnounce interval="5"/>

      <Win32NetBIOS/>
      <Win32Announce interval="5"/>

      <sessionDebug flags="Negotiate,Socket"/>
   </config>
  
   <config evaluator="string-compare" condition="Filesystems" replace="true">
      <filesystems>

         <filesystem name="Alfresco">
            <store>workspace://SpacesStore</store>
            <rootPath>/app:company_home</rootPath>

            <!– Add a URL file to each folder that links back to the web client –>
            <urlFile>
               <filename>__Alfresco.url</filename>
               <webpath>http://${localname}:8080/alfresco/</webpath>
            </urlFile>

            <!– Mark locked files as offline –>
            <offlineFiles/>

            <!– Desktop actions –>

            <desktopActions>
               <global>
                  <path>alfresco/desktop/Alfresco.exe</path>
                  <webpath>http://${localname}:8280/alfresco/</webpath>
               </global>
               <action>
                  <class>org.alfresco.filesys.smb.server.repo.desk.CheckInOutDesktopAction</class>
                  <name>CheckInOut</name>
                  <filename>__CheckInOut.exe</filename>
               </action>
               <action>
                  <class>org.alfresco.filesys.smb.server.repo.desk.JavaScriptDesktopAction</class>
                  <name>JavaScriptURL</name>
                  <filename>__ShowDetails.exe</filename>
                  <script>alfresco/desktop/showDetails.js</script>
                  <attributes>anyFiles</attributes>
                  <preprocess>copyToTarget</preprocess>
               </action>

            </desktopActions>

<!–
            <accessControl default="Write">
               <user name="admin" access="Write"/>
               <address subnet="90.1.0.0" mask="255.255.0.0" access="Write"/>
            </accessControl>
–>
         </filesystem>
       
       <!– AVM virtualization view of all stores/versions for WCM –>
         <avmfilesystem name="AVM">
            <virtualView/>
         </avmfilesystem>
       
      </filesystems>
   </config>

</alfresco-config>

The most strange thing is that it works for me in a Windows installation, but it doesn't work on a linux server.
I am a bit confused… :?

cariou
Champ in-the-making
Champ in-the-making
Hi,

I have exactly the same error.

Our Alfresco 2.1 instnace ran on a Linux server for 1 year without any trouble. Last wweek the message has appeared and now users can't mount CIFS access.

Did you find an answer ?


17:39:01,193 ERROR [org.alfresco.smb.protocol] Closing session due to exception
java.lang.NullPointerException
   at org.alfresco.filesys.server.auth.passthru.PassthruAuthenticator.doNtlmsspSessionSetup(PassthruAuthenticator.java:821)
   at org.alfresco.filesys.server.auth.passthru.PassthruAuthenticator.processSessionSetup(PassthruAuthenticator.java:581)
   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:1352)
   at java.lang.Thread.run(Thread.java:595)