Stefan G. Weichinger
2020-May-12 09:38 UTC
[Samba] upgraded DC shows IDs instead of usernames
(resent ...) Am 12.05.20 um 11:22 schrieb Alex MacCuish via samba:> Have you checked to make sure the winbind nss symlinks are present and > correct? > (https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC#Libnss_winbind_Links)I think I did that years ago ;-) ... but the links were missing again, thanks for the reminder. Created them, and restarted samba-ad-dc.service but so far the output of smbstatus still displays IDs: # smbstatus Samba version 4.10.15-Debian PID Username Group Machine Protocol Version Encryption Signing ---------------------------------------------------------------------------------------------------------------------------------------- 16148 3000032 3000022 192.168.16.202 (ipv4:192.168.16.202:36328) SMB3_11 - AES-128-CMAC - btw: The wiki says "If you compiled Samba, add symbolic links from the libnss_winbind library to the operating system's library path. For details, see libnss_winbind Links. If you used packages to install Samba, the link is usually created automatically." If I use Louis's repo ... the links aren't created ... ? - thanks, regards
Smbstatus doesn't resolve uids by default. You need to add --resolve-uids :) On 12/05/2020 10:38, Stefan G. Weichinger via samba wrote:> (resent ...) > > Am 12.05.20 um 11:22 schrieb Alex MacCuish via samba: >> Have you checked to make sure the winbind nss symlinks are present and >> correct? >> (https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC#Libnss_winbind_Links) > I think I did that years ago ;-) ... but the links were missing again, > thanks for the reminder. > > Created them, and restarted samba-ad-dc.service but so far the output of > smbstatus still displays IDs: > > # smbstatus > > Samba version 4.10.15-Debian > PID Username Group Machine > Protocol Version Encryption Signing > ---------------------------------------------------------------------------------------------------------------------------------------- > 16148 3000032 3000022 192.168.16.202 > (ipv4:192.168.16.202:36328) SMB3_11 - > AES-128-CMAC > > > - > > btw: > > The wiki says "If you compiled Samba, add symbolic links from the > libnss_winbind library to the operating system's library path. For > details, see libnss_winbind Links. If you used packages to install > Samba, the link is usually created automatically." > > If I use Louis's repo ... the links aren't created ... ? > > - > > thanks, regards >
On 12/05/2020 10:38, Stefan G. Weichinger via samba wrote:> I think I did that years ago ;-) ... but the links were missing again, > thanks for the reminder. > > Created them, and restarted samba-ad-dc.service but so far the output of > smbstatus still displays IDs:Try running 'net cache flush'> btw: > > The wiki says "If you compiled Samba, add symbolic links from the > libnss_winbind library to the operating system's library path. For > details, see libnss_winbind Links. If you used packages to install > Samba, the link is usually created automatically." > > If I use Louis's repo ... the links aren't created ... ?They usually are, perhaps the libnss_winbind package wasn't updated ? Rowland
Sure i was ;-) https://apt.van-belle.nl/current-packages-in-buster-samba412-apt.txt libnss-winbind 2:4.12.2+dfsg-0.1buster1 ;-) Maybe not installed? Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Rowland penny via samba > Verzonden: dinsdag 12 mei 2020 11:49 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] upgraded DC shows IDs instead of usernames > > On 12/05/2020 10:38, Stefan G. Weichinger via samba wrote: > > I think I did that years ago ;-) ... but the links were > missing again, > > thanks for the reminder. > > > > Created them, and restarted samba-ad-dc.service but so far > the output of > > smbstatus still displays IDs: > Try running 'net cache flush' > > btw: > > > > The wiki says "If you compiled Samba, add symbolic links from the > > libnss_winbind library to the operating system's library path. For > > details, see libnss_winbind Links. If you used packages to install > > Samba, the link is usually created automatically." > > > > If I use Louis's repo ... the links aren't created ... ? > They usually are, perhaps the libnss_winbind package wasn't updated ? > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Stefan G. Weichinger
2020-May-12 09:56 UTC
[Samba] upgraded DC shows IDs instead of usernames
Am 12.05.20 um 11:49 schrieb Rowland penny via samba:> On 12/05/2020 10:38, Stefan G. Weichinger via samba wrote: >> I think I did that years ago ;-)? ... but the links were missing again, >> thanks for the reminder. >> >> Created them, and restarted samba-ad-dc.service but so far the output of >> smbstatus still displays IDs: > Try running 'net cache flush'Did already.>> btw: >> >> The wiki says "If you compiled Samba, add symbolic links from the >> libnss_winbind library to the operating system's library path. For >> details, see libnss_winbind Links. If you used packages to install >> Samba, the link is usually created automatically." >> >> If I use Louis's repo ... the links aren't created ... ? > They usually are, perhaps the libnss_winbind package wasn't updated ?Solved: package libnss-winbind ("-", not "_") was *missing* (on both DCs, btw) thanks! Info added: the upgrade somehow uninstalled samba again, same as back with stretch -> buster. So that seems to have removed that package as well and I didn't remember it. Yes, I should write that down in ansible or so.
Stefan G. Weichinger
2020-May-12 09:57 UTC
[Samba] upgraded DC shows IDs instead of usernames
Am 12.05.20 um 11:48 schrieb Alex MacCuish via samba:> Smbstatus doesn't resolve uids by default. You need to add > --resolve-uids :)I never used that option ...
> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Stefan G. Weichinger via samba > Verzonden: dinsdag 12 mei 2020 11:57 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] upgraded DC shows IDs instead of usernames > > Am 12.05.20 um 11:49 schrieb Rowland penny via samba: > > On 12/05/2020 10:38, Stefan G. Weichinger via samba wrote: > >> I think I did that years ago ;-)? ... but the links were > missing again, > >> thanks for the reminder. > >> > >> Created them, and restarted samba-ad-dc.service but so far > the output of > >> smbstatus still displays IDs: > > Try running 'net cache flush' > > Did already. > > >> btw: > >> > >> The wiki says "If you compiled Samba, add symbolic links from the > >> libnss_winbind library to the operating system's library path. For > >> details, see libnss_winbind Links. If you used packages to install > >> Samba, the link is usually created automatically." > >> > >> If I use Louis's repo ... the links aren't created ... ? > > They usually are, perhaps the libnss_winbind package wasn't > updated ? > > Solved: package libnss-winbind ("-", not "_") was *missing* (on both > DCs, btw) > > thanks! > > Info added: the upgrade somehow uninstalled samba again, same as back > with stretch -> buster.This happens if you Do it like this. Asuming stretch. First you update stretch (apt upgrade) Then you change apt/sources.list to buster You run apt update && "apt upgrade" Then it removes samba, because, libldb1 is not libldb2. Here its: apt-get dist-upgrade --autoremove This removed old obsolete and/or possible conflicting packages. And this would have removed libldb1 so libldb2 could be installed. Greetz, Louis> > So that seems to have removed that package as well and I > didn't remember it. > > Yes, I should write that down in ansible or so. > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >