patch for winbind: Convert username spaces to underscore
Tim Potter
tpot at samba.org
Tue May 14 22:46:02 GMT 2002
On Wed, May 15, 2002 at 02:30:56PM +1000, mjd at alphalink.com.au wrote:
> We use winbind from Samba 2.2.3a on our Linux
> CVS server so that PC users can authenticate to
> the CVS servers using their Windows usernames.
>
> We use this option in smb.conf for calculating
> our home directories:
>
> template homedir = "/home/%D/%U"
>
> One problem is that usernames here have spaces
> in them, eg, my username is "mitch davis". This
> leads to a home directory of "/home/MYCOMPANY/mitch davis",
> which causes grief to many Linux programs.
Maybe having some more substitution parameters would be a neater
solution to the problem. It would certainly avoid Yet Another Parameter
being added to smb.conf.
Perhaps %d/%u for domain and username with spaces, and %D/%U for spaces
replaced with underscores?
Tim.
More information about the samba-technical
mailing list