Finally tracked this down... The profile path for each user, configured in
my LDAP directory, used %L instead of the server's netbios name hard-coded.
E.g., \\%L\profiles\andy instead of \\alpha\profiles\andy. Whilst the %L
seems to be subsituted correctly for 2k/xp logons, it was not for my vista
logon. So, hard-coding the netbios name fixed this problem for me.
I have no idea why vista exhibits this odd behaviour. Possibly a bug in
samba? Or another microsoft 'feature'? Perhaps someone with a greater
understanding of the nitty-gritty technical details would like to
investigate!
Regards,
Andy
"Andy Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi All,
I've happily had Samba (3.0.24) operating as DC for my Win2k/XP network
for
years. I've just upgraded to Vista and eveything seems to be working fine
(shares, domain logons) apart from roaming profiles. Just after logging
on,
the following error appears in a bubble from the system tray:
"Your user profile was not loaded correctly!
You have been logged on with a temporary profile. Changes you make to this
profile will be lost when you log off. Please see the event log for
details
or contact your administrator."
And the event log shows 'User Profile Service' event no '1521':
"Windows cannot locate the server copy of your roaming profile and is
attempting to log you on with your local profile. Changes to the profile
will not be copied to the server when you log off. This error may be
caused
by network problems or insufficient security rights.
DETAIL - The filename, directory name, or volume label syntax is
incorrect."
Here's what I understand so far...
After a bit of googling I discovered that vista sticks a '.v2' extension
on
the end of the profile folder path as 2k/xp profiles are not compatible
with
vista. So, instead of reading the profile from \\alpha\profiles\andy,
vista
will use \\alpha\profiles\andy.v2. So, I created a folder 'andy.v2' in my
profiles folder, set the correct permissions and tried again. Same error.
I'm now stumped and cannot find any other resources about this. Can anyone
shed any light on whats wrong and how to fix it, or point me in the
direction of some useful info?
Thanks in advance,
Andy
My smb.conf:
[global]
workgroup = OMEGA
interfaces = 192.168.100.1/24
passdb backend = ldapsam:ldap://127.0.0.1:390/
log level = 1
log file = /var/log/samba/%m.log
max log size = 50
name resolve order = wins lmhosts bcast
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
add user script = /usr/sbin/smbldap-useradd -m "%u"
add group script = /usr/sbin/smbldap-groupadd -p "%g"
add user to group script = /usr/sbin/smbldap-groupmod -m "%u" "%g"
delete user from group script = /usr/sbin/smbldap-groupmod -x "%u"
"%g"
set primary group script = /usr/sbin/smbldap-usermod -g "%g" "%u"
add machine script = /usr/sbin/smbldap-useradd -w "%u"
logon script = logon.bat
logon drive = z:
domain logons = Yes
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
ldap admin dn = cn=samba,ou=DSA,dc=omega,dc=lan
ldap delete dn = Yes
ldap group suffix = ou=Groups
ldap machine suffix = ou=Computers
ldap passwd sync = Yes
ldap suffix = dc=omega,dc=lan
ldap ssl = no
ldap user suffix = ou=Users
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
[homes]
comment = Home Directories
valid users = %U
read only = No
create mask = 0664
directory mask = 0775
browseable = No
[netlogon]
path = /home/samba/netlogon/
browseable = No
[profiles]
path = /home/samba/profiles
valid users = %U, "@Domain Admins"
force user = %U
read only = No
create mask = 0600
directory mask = 0700
guest ok = Yes
profile acls = Yes
browseable = No
csc policy = disable
[print$]
comment = Printer Driver Download Area
path = /etc/samba/drivers
write list = "@Domain Admins"
guest ok = Yes
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba