RHEL 6.5 problem with Samba variables in 'smb.conf' - variables are not being honored or respected or translated to its value
Hi,
got a strange problem - some (not all) variables used in samba config file 'smb.conf' are not translated to its values and are used as a string (or let's say text value).
[code]
samba.x86_64 3.6.9-164.el6
samba-client.x86_64 3.6.9-164.el6
samba-common.x86_64 3.6.9-164.el6
samba-winbind.x86_64 3.6.9-164.el6
samba-winbind-clients.x86_64 3.6.9-164.el6
samba4-libs.x86_64 4.0.0-58.el6.rc4
[/code]
for example, part in 'smb.conf' specifying netlogon scripts and user profiles location:
[code]
logon script = netlogon.bat
logon home = \%L\home\%U
logon path = \%L\profiles\%a
logon drive = H:
[netlogon]
path = /etc/samba/scripts/%g
[profiles]
path = /home/%U/windows_directory
[/code]
The "%L" should translate to server's NetBIOS name but it does not, resulting in not mapped user homes and profiles.
After i replace the "%L" with netbios server name it works (i have the netbios name specified in smb.conf ofc).
Also the "%a" does not work.
It creates (in my case) folder "%a.V2" (whole path /home/username/windows_directory/%a.V2) where expected behaviour would be eg. 'Vista.V2', referring to architecture of the client.
On the other hand the "%g" variable translates ok to user primary group with no problem.
Anyone has seen this? Tried to search it on Inet but not much turned out, except ppl having similar problems on Samba 4 where some variable names has been changed, but this is Samba 3 ... has there some variables been changed too?
Thanks!