[Samba] winbind use default domain = Yes (not working in 4.0.5)

Mike Ray mray at xes-inc.com
Tue Apr 16 08:01:22 MDT 2013


This must be something that changed recently -- version 4.0.3 works with "winbind use default domain = yes" (i.e. getent passwd does *not* return DOMAIN\username, but just username). 

----- Original Message -----

From: "Luc Lalonde" <luc.lalonde at polymtl.ca> 
To: "Johan Hendriks" <Johan at double-l.nl> 
Cc: samba at lists.samba.org 
Sent: Tuesday, April 16, 2013 8:54:06 AM 
Subject: [Samba] winbind use default domain = Yes (not working in 4.0.5) 

Hello folks, 

Well it seems that I'm not the only one having this problem: 

https://bugzilla.samba.org/show_bug.cgi?id=9780 

I am able to bypass the problem with PAM_MOUNT by using '%(DOMAIN_USER)' instead of '%(USER). 

Bye. 


----- Original Message ----- 
From: "Johan Hendriks" <Johan at double-l.nl> 
To: "Luc Lalonde" <luc.lalonde at polymtl.ca> 
Cc: samba at lists.samba.org 
Sent: Tuesday, April 16, 2013 8:27:30 AM GMT -05:00 US/Canada Eastern 
Subject: RE: [Samba] Winbind strip domain from username? 



>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! 

>-- 
>Luc Lalonde, analyste 
>--------------------------------------------------------------------- 
>Département de génie informatique: 
>École polytechnique de Montréal 
>(514) 340-4711 x5049 
><Luc.Lalonde at polymtl.ca 
>--------------------------------------------------------------------- 

I had something similar, but i can not look what it was from where i am now, but i think i did change the %U in %u in my home share 

regards 
Johan 

-- 
Luc Lalonde, analyste 
--------------------------------------------------------------------- 
Département de génie informatique: 
École polytechnique de Montréal 
(514) 340-4711 x5049 
Luc.Lalonde at polymtl.ca 
--------------------------------------------------------------------- 
-- 
To unsubscribe from this list go to the following URL and read the 
instructions: https://lists.samba.org/mailman/options/samba 


More information about the samba mailing list