cancel
Showing results for 
Search instead for 
Did you mean: 

Using CIFS on LINUX

chicco0386
Champ on-the-rise
Champ on-the-rise
Hi, I try to use SMB/CIFS on linux but I've this error when I start smbclient with the command:

lavoro@enrico-laptop:~$ smbclient -U admin \\\\127.0.0.1\\alfresco admin
Domain=[ENRICO-LAPTOP] OS=[Unix] Server=[Samba 3.3.2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
lavoro@enrico-laptop:~$

This is my file-server.xml:

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



   <config evaluator="string-compare" condition="CIFS Server">

     <serverEnable enabled="true"/>

      <host name="${cifs.localname}A" domain="${cifs.domain}"/>

      <comment>Alfresco CIFS Server</comment>



      <!– Set to the broadcast mask for the subnet –>

      <broadcast>${cifs.broadcast}</broadcast>



      <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>

      <tcpipSMB platforms="linux,solaris,macosx"/>

      <netBIOSSMB platforms="linux,solaris,macosx"/>



      <!– Can be mapped to non-privileged ports, then use firewall rules to forward

          requests from the standard ports –>

     <!–      

      <tcpipSMB port="1445" platforms="linux,solaris,macosx"/>

      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>

     –>

      

      <hostAnnounce interval="5"/>



      <!– Use Win32 NetBIOS interface on Windows –>

      <Win32NetBIOS/>

      <Win32Announce interval="5"/>



      <!– CIFS authentication –>

      <authenticator type="alfresco">

      </authenticator>

     

<!–

      <WINS>

         <primary>1.2.3.4</primary>

         <secondary>5.6.7.8</secondary>

      </WINS>

–>

      <sessionDebug flags="Negotiate,Socket"/>

   </config>



   <config evaluator="string-compare" condition="FTP Server">

     <serverEnable enabled="true"/>

    

     <!– Run on a non-privileged port –>

     <!–

     <port>1121</port>

     –>



      <!– FTP authentication –>

      <authenticator type="alfresco"/>

          

<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>

   </config>

  

   <config evaluator="string-compare" condition="NFS Server">

     <serverEnable enabled="false"/>

   </config>

   

   <config evaluator="string-compare" condition="Filesystems">

     <filesystems>

       

       <!– Alfresco repository access shared filesystem –>

         <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>__AlfrescoClient.url</filename>

               <webpath>http://${localname}:8080/alfresco/</webpath>

            </urlFile>



         <!– Mark locked files as offline –>

          <offlineFiles/>



         <!– Desktop actions –>

         <!– Uses a client-side application to trigger a server-side action                         –>

         <!–   Echo - displays a message echoed from the server                                     –>

         <!–   URL  - launches a URL via the Windows shell                                          –>

         <!–   CmdLine - launches the Notepad application                                           –>

         <!–   CheckInOut - checks files in/out, drag and drop files onto the application           –>

         <!–   JavaScript - run a server-side script                                                –>

         <!–   JavaScriptURL - server-side script that generates a URL to the folder using a ticket –>

         <!–                   to avoid having to logon                                             –>



<!–

         <desktopActions>

            <global>

                    <path>alfresco/desktop/Alfresco.exe</path>

               <webpath>http://${localname}:8080/alfresco/</webpath>

            </global>

            <action>

               <class>org.alfresco.filesys.repo.desk.EchoDesktopAction</class>

               <name>Echo</name>

                 <filename>__AlfrescoEcho.exe</filename>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.URLDesktopAction</class>

               <name>URL</name>

                 <filename>__AlfrescoURL.exe</filename>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.CmdLineDesktopAction</class>

               <name>CmdLine</name>

                 <filename>__AlfrescoCmd.exe</filename>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.CheckInOutDesktopAction</class>

               <name>CheckInOut</name>

                 <filename>__AlfrescoCheckInOut.exe</filename>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>

               <name>JavaScript</name>

               <filename>__AlfrescoScript.exe</filename>

               <script>alfresco/desktop/dumpRequest.js</script>

               <attributes>anyFiles, multiplePaths , allowNoParams</attributes>

               <preprocess>confirm, copyToTarget</preprocess>

            </action>

            <action>

               <class>org.alfresco.filesys.repo.desk.JavaScriptDesktopAction</class>

               <name>JavaScriptURL</name>

               <filename>__AlfrescoDetails.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 –>

         <!– virtual view can be any of the following: normal, site, staging, author, preview –>

         <avmfilesystem name="AVM">

            <virtualView stores="site,staging,author" />

         </avmfilesystem>

        

      </filesystems>

   </config>



   <config evaluator="string-compare" condition="Filesystem Security">

      <!– Domain mappings used for passthri authentication routing –>

      <!–

      <DomainMappings>

         <Domain name="ALFRESCO" subnet="192.168.1.0" mask="192.168.1.255"/>

      </DomainMappings>

      –>

     

      <!– Custom share mapper when multi-tenancy is enabled –>

      <!–

     <shareMapper type="multi-tenant">

       <debug/>

     </shareMapper>

      –>

     

<!–

      <globalAccessControl default="None">

         <user name="admin" access="Write"/>

         <address ip="90.1.0.90" access="Write"/>

      </globalAccessControl>

–>

   </config>





</alfresco-config>

and this is my file-servers.properties:

cifs.localname=${localname}

cifs.domain=ALFRESCO

cifs.broadcast=255.255.255.255

I've read this wiki:
http://wiki.alfresco.com/wiki/File_Server_Configuration#SMB.2FCIFS_Server_Configuration
http://wiki.alfresco.com/wiki/CIFS_linux

but the error is the same:
lavoro@enrico-laptop:~$ smbclient -U admin \\\\127.0.0.1\\alfresco admin
Domain=[ENRICO-LAPTOP] OS=[Unix] Server=[Samba 3.3.2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
lavoro@enrico-laptop:~$

HELP ME PLEASE
THANKS
5 REPLIES 5

chicco0386
Champ on-the-rise
Champ on-the-rise
PLEASE HELP ME… Smiley Sad  Smiley Sad  :?:
THANKS

zaizi
Champ in-the-making
Champ in-the-making
try connecting to \\{localname}A\Alfresco

chicco0386
Champ on-the-rise
Champ on-the-rise
try connecting to \\{localname}A\Alfresco

THANKS for the response but:

lavoro@enrico-laptop:~$ smbclient -U admin //localhostA/Alfresco admin
Connection to localhostA failed (Error NT_STATUS_BAD_NETWORK_NAME)
lavoro@enrico-laptop:~$ smbclient -U admin //127.0.0.1A/alfresco adminConnection to 127.0.0.1A failed (Error NT_STATUS_BAD_NETWORK_NAME)
lavoro@enrico-laptop:~$

With the same configuration…
Please…

zaizi
Champ in-the-making
Champ in-the-making
See this post http://forums.alfresco.com/en/viewtopic.php?f=8&t=938

What does 'nbtstat -A <server ip address>'  output?

Your {localname} is not localhost. It will be the machine name. It should be the one returned by 'hostname'.

chicco0386
Champ on-the-rise
Champ on-the-rise
See this post http://forums.alfresco.com/en/viewtopic.php?f=8&t=938

What does 'nbtstat -A <server ip address>'  output?

Your {localname} is not localhost. It will be the machine name. It should be the one returned by 'hostname'.

I use Ubuntu so I don't have the nbtstat command so I used this:

lavoro@enrico-laptop:~$ nbtscan 127.0.0.1
Doing NBT name scan for addresses from 127.0.0.1

IP address       NetBIOS Name     Server    User             MAC address     
——————————————————————————
127.0.0.1        ENRICO-LAPTOP    <server>  ENRICO-LAPTOP    00:00:00:00:00:00

So what I must to do?
Thank for replay…