cancel
Showing results for 
Search instead for 
Did you mean: 

CIFS 'mount points' pointing to a subspace

theorbix
Confirmed Champ
Confirmed Champ
Is it possible to define one or more CIFS "mount points" that point to a space different from the Company Home root space?

I've a customer that would like to create a set of sub-spaces in his Alfresco repository, and expose them as different, indipendent virtual CIFS shares.

Kind of:

- Company home
    - Marketing space -> exposed as \\myalfrescoserver\marketing
    - Sales space -> exposed as \\myalfrescoserver\sales
    - R&D space -> not exposed as CIFS


Is this possible to reconfigure the CIFS interface in this way?
3 REPLIES 3

samuel_penn
Champ in-the-making
Champ in-the-making
It seems to be possible to just add another filesystem into file-servers-custom.xml. By default, there is one defined called Alfresco. Copying that, giving it a new name and changing the rootPath seems to do the trick. For example, I've just added a Guest share, which points to the Guest Home:


      <filesystem name="Guest">
        <store>workspace://SpacesStore</store>
        <rootPath>/app:company_home/app:guest_home</rootPath>
        <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}:8080/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>
      </filesystem>

This can then be referenced as \\myalfresco\Guest. Rudimentary tests seem to show that it works, though I don't get the CheckInOut or ShowDetails  actions at the root level

Sam.

theorbix
Confirmed Champ
Confirmed Champ
Thanks Sam… quick and fast reply.  Smiley Very Happy

samuel_penn
Champ in-the-making
Champ in-the-making
Just enlightened self interest. It was near the top of my list of things to try today, as a work around to some other problems I had, so it seemed sensible to bump it up to the top and get someone else to test it out as well 🙂

Sam.