Dane Ruyle
2017-Jan-24 07:48 UTC
[Samba] Help! How do I make Samba3 + Winbind drop the domain\ on a user's account?
Hello, We have moved from PBIS to Samba + winbind. In PBIS, after logging in to a SSH session, the prompt (user context?) would be: username at hostname: Now, after logging in, the prompt is: domain\username at hostname: How do I make it drop the "domain\" ? This causes issues in other areas as passing "\" is an illegal character. Should we change the "\" to a "." ? Thank you for a great product, Dane
Stefan Kania
2017-Jan-24 08:50 UTC
[Samba] Help! How do I make Samba3 + Winbind drop the domain\ on a user's account?
use "winbind use default domain = yes" in your smb.conf in [global] Am Dienstag, 24. Januar 2017, 07:48:32 schrieb Dane Ruyle via samba:> Hello, > We have moved from PBIS to Samba + winbind. > > In PBIS, after logging in to a SSH session, the prompt (user context?) would > be: username at hostname: Now, after logging in, the prompt is: > domain\username at hostname: > > How do I make it drop the "domain\" ? > > This causes issues in other areas as passing "\" is an illegal character. > > Should we change the "\" to a "." ? > > Thank you for a great product, > Dane-- Stefan Kania Landweg 13 25693 St. Michaelisdonn Signieren jeder E-Mail hilft Spam zu reduzieren. Signieren Sie ihre E-Mail. Weiter Informationen unter http://www.gnupg.org Mein Schlüssel liegt auf hkp://subkeys.pgp.net -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. URL: <http://lists.samba.org/pipermail/samba/attachments/20170124/b77147f1/signature.sig>
Stefan Kania
2017-Jan-24 12:35 UTC
[Samba] Help! How do I make Samba3 + Winbind drop the domain\ on a user's account?
Hi Dane, please always answer to the list not to individual person ;-) If you don't see a change after setting "winbind use default domain yes" then stop winbind do a "net cache flush" restart winbind and you should see the result Stefan Am 24.01.2017 um 09:50 schrieb Stefan Kania via samba:> use "winbind use default domain = yes" in your smb.conf in [global] > > Am Dienstag, 24. Januar 2017, 07:48:32 schrieb Dane Ruyle via samba: >> Hello, >> We have moved from PBIS to Samba + winbind. >> >> In PBIS, after logging in to a SSH session, the prompt (user context?) would >> be: username at hostname: Now, after logging in, the prompt is: >> domain\username at hostname: >> >> How do I make it drop the "domain\" ? >> >> This causes issues in other areas as passing "\" is an illegal character. >> >> Should we change the "\" to a "." ? >> >> Thank you for a great product, >> Dane > > >-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20170124/60db7073/signature.sig>
Dane Ruyle
2017-Jan-24 19:58 UTC
[Samba] Help! How do I make Samba3 + Winbind drop the domain\ on a user's account?
So is this a known issue? Is it a bug? Don't want to go back to PBIS. winbind use default domain = yes has no change. We still see domain\user at machinename: Something was also depreciated in favor of nss? -----Original Message----- From: samba [mailto:samba-bounces at lists.samba.org] On Behalf Of Stefan Kania via samba Sent: Tuesday, January 24, 2017 12:51 AM To: samba at lists.samba.org Subject: Re: [Samba] Help! How do I make Samba3 + Winbind drop the domain\ on a user's account? use "winbind use default domain = yes" in your smb.conf in [global] Am Dienstag, 24. Januar 2017, 07:48:32 schrieb Dane Ruyle via samba:> Hello, > We have moved from PBIS to Samba + winbind. > > In PBIS, after logging in to a SSH session, the prompt (user context?) would > be: username at hostname: Now, after logging in, the prompt is: > domain\username at hostname: > > How do I make it drop the "domain\" ? > > This causes issues in other areas as passing "\" is an illegal character. > > Should we change the "\" to a "." ? > > Thank you for a great product, > Dane-- Stefan Kania Landweg 13 25693 St. Michaelisdonn Signieren jeder E-Mail hilft Spam zu reduzieren. Signieren Sie ihre E-Mail. Weiter Informationen unter http://www.gnupg.org Mein Schlüssel liegt auf hkp://subkeys.pgp.net
L A Walsh
2017-Jan-25 06:43 UTC
[Samba] Help! How do I make Samba3 + Winbind drop the domain\ on a user's account?
Dane Ruyle via samba wrote:> Hello, > We have moved from PBIS to Samba + winbind. > > In PBIS, after logging in to a SSH session, the prompt (user context?) would be: username at hostname: > Now, after logging in, the prompt is: domain\username at hostname: >---- For me, I found this to be a problem on the source machine (where the ssh session starts). I used a simplistic workaround on my Samba-PDC. I defined 'Domain\user' in my /etc/passwd to have the same UID/GID as 'user'. It might not be practical for many users, but it really was a case of 'ssh[d]' not knowing that on a PDC, "domain\user" == "user". As for '\' being legal or not -- I just added '\' to the list of allowed login characters in "/etc/login.defs" The following is all on 1 line: CHARACTER_CLASS [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_][-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.\\/\ ]*[-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.$]\? Once I'm logged in, the system recognizes me as "user". I vaguely remember that setting 'winbind use default domain' to 'yes' caused problems in that all logins had the "domain\" prefix. Not what I wanted. I even have a note in my smb.conf: #don't turn on: "winbind use default domain = No" (it didn't work in my environment).