Re: patch for winbind: Convert username spaces to underscore

2002-05-14 Thread mjd

Re my earlier msg about patching winbind to
more gracefully accept spaces in usernames.
The web-based mail program used base64 for
the attached diff, which might make it hard
to look at.

The patch is also available here:

  http://www.alphalink.com.au/~mjd/samba-extel-sanitize-2.diff

Regards,

Mitch.




Re: patch for winbind: Convert username spaces to underscore

2002-05-14 Thread Tim Potter

On Wed, May 15, 2002 at 02:30:56PM +1000, [EMAIL PROTECTED] 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.