[Samba] Winbind strip domain from username?

Rowland Penny rpenny at f2s.com
Tue Apr 16 03:15:40 MDT 2013


On 15/04/13 22:12, Luc Lalonde wrote:
> Hello Folks,
>
> This directive works with Samba3 but does not seem to work with Samba-4.0.5:
>
> winbind use default domain = Yes
>
> I want to get a username that does not contain the domain (GIGL).  Instead here's what I get:
>
> [root at roquefort ~]# getent passwd | grep GIGL
> GIGL\Administrator:*:0:100::/usagers/%U:/bin/bash
> GIGL\Guest:*:3000002:3000003::/usagers/%U:/bin/bash
> GIGL\krbtgt:*:3000007:100::/usagers/%U:/bin/bash
> GIGL\dns-stilton:*:3000008:100::/usagers/%U:/bin/bash
> GIGL\testuser:*:3000009:100::/usagers/%U:/bin/bash
> GIGL\llalonde:*:3000010:100::/usagers/%U:/bin/bash
>
> How do I remove the 'GIGL\' from the username?  This is causing me problems mounting the user's home directory at logon with 'PAM_MOUNT'
>
> What am I missing?
>
> Thank You!
>
Hi, I doubt that getent showing your domain is the problem, I am trying 
to get something similar to work but with libpam-script and I can get 
the users home directory to mount, but then my problems start. One 
problem I think you have, is that you have added the line 'template 
homedir = /home/%U', if you have, then I am sorry but you will have to 
remove this, I am fairly sure that you are stuck with the default 
'template homedir = /home/%D/%U' (unless anybody knows differently). 
With the template homedir line as 'template homedir = /home/%U' 
every-bodies homedir is set to literally that, '/home/%U'.

I am also fairly sure that you are trying to mount the home directory 
from the samba 4 server, correct?

    Rowland

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the samba mailing list