cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic homeFolder / Permissions

deas0815
Star Contributor
Star Contributor
Hallo everybody,

we have a space "a"with a subspace "b". Subspace "b" is the home space of a user.
The user does not have any permission on space "a" and we want the home space "b" to be CIFS mountable for the user.

However, trying to mount the home space using the users credentials I get

The network name cannot be found.

Using another users cretials who has permissions to read space "a" I can mount the filesystem as expected.

I also tried the dynamic repository filesystem approach as documented at

http://wiki.alfresco.com/wiki/File_Server_Configuration#Home_Folder_Filesystem


Nesting the "homeFolder" tag within <filesystem name="Alfresco"> element does not seem to have any effect.

net use z: \\ip.of.server\HOME password /user:login

also says

The network name cannot be found.

Nesting "homeFolder" in <filesystems> results in a NullpointerException.

Ok, now two questions:

Is CIFS mounting space"b" feasible when the user does not have any permissions on the parent space "a" ?

What am I missing in the dynamic filesystem approach ?

I cannot get any user to mount the home space using the share"HOME".

PS: I am using alfresco 2.1 community.

regards
Andreas
4 REPLIES 4

sacco
Champ in-the-making
Champ in-the-making
I too would be interested to hear about the Home Folder Fiilesystem,
as I've never managed to get it to work at all.

samuel_penn
Champ in-the-making
Champ in-the-making
Just to give this thread a prod… has anyone had any luck with this?

If I define a <homeFolder …./> and don't define a rootPath, Alfresco complains of a missing rootPath on startup. If I do define a rootPath, then it uses that rather than the user's home space. I've also tried an empty rootPath which apparently is also invalid.

The definition I'm using in file-system-custom.xml is currently:


<homeFolder name="My Home">
    <store>workspace://SpacesStore</store>
    <rootPath>/app:company_home/app:user_homes</rootPath>
    <urlFile>
        <filename>__Alfresco.url</filename>
        <webpath>http://${localname}:8080/alfresco/</webpath>
    </urlFile>
    <offlineFiles/>
    <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>
</homeFolder>

I'm using 2.2 Enterprise.

chrisrobbo
Champ in-the-making
Champ in-the-making
Just in case this is still topical - I suspect it is because I see no answers to this in the forums but after a bit of code-digging I found the answer . There are 2 things . First the <homeFolder> tag must exist OUTSIDE the <fileSystems> eg .

   <config evaluator="string-compare" condition="Filesystems" replace="true">
        <homeFolder name="Home"/>
      <filesystems>


And then make sure that the authenticator is set to "alfresco" (I think the default may be "enterprise")

eg.
   <config evaluator="string-compare" condition="Filesystem Security">
      <authenticator type="alfresco">
      </authenticator>
        </config>

Of course it does mean that any enterprise security schemes will not work, but that's the best I can come up with …

klaas
Champ in-the-making
Champ in-the-making
Another possible solution would be Browse rights (like in Documetum), but Alfresco doesn't have browse. You can create browse rights by http://forums.alfresco.com/en/viewtopic.php?f=9&t=14597&p=48508

Klaas