These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

using variables in the UNC path

Hi 

im trying to give my  users access to their homedrive wich is called \\servername\users\username is it possible to use a variable in the root folder UNC path (\\servername\users\%username%) ?

since im running in active directory mode the username also needs to get the domain\ stripped from the username

hope you can help med 

best regards
Bjarke Fogh 

Systemtech A/S
Bjarke Fogh 6/16/2009 4:56 AM
Yes, you can use the placeholder {user.name} in the path and name of a root folder.
For example, you can set the path to \\servername\{user.name} , then this will resolve to a path like \\servername\Systemtech\Bjarke for a domain user named "Systemtech\Bjarke".
Note that, the domain is not stripped but used as a subfolder.
Cem Alacayir 6/18/2009 7:02 PM
Hi Cem,

Is there any way to strip the subfolder so the final string/path would be \\servername\Bjarke?

Best Regards,

Peter Dahl
Peter Dahl 10/7/2009 12:57 PM
Sorry, it's not possible. We thought it would be better to use domain as a subfolder so that same user names from different domains do not conflict.
Cem Alacayir 1/15/2010 6:42 AM
The inability to exclude the domain from the user.name variable precludes us from using Samba's integrated homes share to provide dynamic home directories for all users.  Instead, I'll have to add each folder one by one.  We've been pretty happy with the rest of the product, but adding more variables would be nice.
Mike 7/9/2013 2:33 PM