[Samba] Winbind / Samba auth problem after username change

Julian Zielke jzielke at next-level-integration.com
Tue Sep 6 15:38:57 UTC 2016


No, getent NEWusername produces a result SHOWING the old username - not the other way around.
The machine is a domain member. We did a join using net join ads.

The passwords file has only the standard local users in there.

=================================================================
cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat winbind
group: compat winbind
shadow:         compat

hosts: files dns mdns4
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

group: compat winbind
=================================================================

> -----Ursprüngliche Nachricht-----
> Von: samba [mailto:samba-bounces at lists.samba.org] Im Auftrag von
> Rowland Penny via samba
> Gesendet: Dienstag, 6. September 2016 17:08
> An: samba at lists.samba.org
> Betreff: Re: [Samba] Winbind / Samba auth problem after username change
>
> On Tue, 6 Sep 2016 14:56:20 +0000
> Julian Zielke <jzielke at next-level-integration.com> wrote:
>
> > OK, I've commented out that line, leaving only:
> >
> > > idmap config mydomain : backend = rid
> > > idmap config mydomain : range = 16777216-33554431
> >
> > in the config file.
> >
> > Also I did a net cache flush and deleted the database files
> > at /var/lib/samba. Still nothing...same old username when querying
> > the new one using getent passwd. I noticed the user having an ID of
> > 4294967295 which exceeds the limit in the config file. Is this
> > normal? Also I created a new domain user which could log in, changed
> > the name and the same happened.
> >
> >
>
> So, 'getent passwd oldusername' produces a result, so where is it
> coming from ?
>
> Have you checked /etc/passwd ?
>
> What is in the 'passwd' and 'group' lines in /etc/nsswitch.conf ?
>
> You say that this computer is using winbind and not sssd, if so, can I
> suggest you have a look here:
>
> https://wiki.samba.org/index.php/Setup_Samba_as_an_AD_Domain_Mem
> ber
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
Wichtiger Hinweis: Der Inhalt dieser E-Mail ist vertraulich und ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung, Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail unzulässig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. Wir möchten Sie außerdem darauf hinweisen, dass die Kommunikation per E-Mail über das Internet unsicher ist, da für unberechtigte Dritte grundsätzlich die Möglichkeit der Kenntnisnahme und Manipulation besteht

Important Note: The information contained in this e-mail is confidential. It is intended solely for the addressee. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. Please notify the sender immediately. We also would like to inform you that communication via e-mail over the internet is insecure because third parties may have the possibility to access and manipulate e-mails.


More information about the samba mailing list