The Samba-Bugzilla – Bug 1189
home directory template does not check case of user name
Last modified: 2005-08-24 10:18:05 UTC
I'm running Samba 3.0.2a as member in a active directory domain (security=ADS,
use default domain=true).
I noticed that you can refer to a winbind user in lower or uppercase
getent -a user1 --> works
getent -a USER1--> works as well
(mmm this is not really unix style, case independent usernames...! and it is
funny because on the active directory the username clearly recognizes case).
When you do the getent you'll see that the username is always in case 'as
entered on the ADS domain server) but the template just picksup whatever case
you choose on the getent command.
getent -a user1
shows you the real username is 'user1' and the home directory
getent -a USER1
shows you the real username is 'user1' (lowercase! as entered in the MMC on
the ms PDC) and the home directory is now /export/home/USER1
I think the ld_template_homedir() function needs to lookup the actual case of
the user before constructing the homedir string.
After upgrading from 3.0.1 to 3.0.2a I've started having problems about homedir
case. Before that homedirs where always lowercase, no mother how was the case of
the entered username.
fixed for 3.0.8.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.