Web lists-archives.com

Re: [Samba] winbind offline login - NT_STATUS_NO_SUCH_USER (0xc0000064)




Hi Rowland,

> From my understanding (limited as it is when it comes to the 'C' code),
> only things in the 'cache' directory are supposed to survive a reboot,
> so the thing you need for offline logon, looks like it has been moved
> to a directory where it wont.
Yes I agree.

I checked the commit where this was changed and found the following:
https://gitlab.com/samba-team/samba/commit/1386200be5c583c680c3894a11688a0e0a3d2285

But now - what to do with this?
It seems that there was a legit reason for gencache.tdb to be moved and I
am not enough expert on C or samba to fully understand why and if that
change was correct.
(Not needed to say that I see no benefit in "blaming" someone for 'you
broke it' - I think everybody does his best here to get samba even better
than it already is :) )
Never the less it breaks the offline login - so do you think it is worth
creating a new bug report?

I searched some more and found a bug report (
https://bugzilla.samba.org/show_bug.cgi?id=10455)
that from my point of view seems to be related to one of the first
lists.samba.org links I referenced to
https://lists.samba.org/archive/samba/2019-February/221157.html
What I have read there in it still could be possible that the root cause is
the same - even when I am personally missing some more details on which
versions were checked on the last state update etc.
But I am absolutely not sure if it is preferred by samba devs to "extend"
an existing bug or just create a new one and reference...

Thanks for your help and patience with this :)

Am Fr., 19. Apr. 2019 um 13:30 Uhr schrieb Rowland Penny via samba <
samba@xxxxxxxxxxxxxxx>:

> On Fri, 19 Apr 2019 11:58:23 +0200
> Martin Krämer <mk.maddin@xxxxxxxxx> wrote:
>
> > Hi Rowland,
> >
> > thanks for your reply.
> >
> > > I personally would have used 'cache directory =' , see 'man
> > > smb.conf' for the difference.
> > From description based on man smb.conf I would absolutely agree.
> > I have tried and set the "cache directory" option but still
> > gencache.tdb (and all other files that were moved) left within
> > the /run/samba (lock directory).
> > Never the less I tried logging on "offline" after restart but then I
> > get same error again.
>
> Without 'gencache.tdb' offline logon will not work, well thats me stuck
> on 4.9.x on this computer ;-)
>
> >
> > As visible within my "testpram --verbose" output below interestingly
> > the default value in 4.10 for 'cache directory' is already equal to
> > 4.9 set to /var/cache/samba.
> > So from my point of view it seems that 'gencache.tdb' (and maybe some
> > other files) are wrongly defined as 'not required across service
> > restarts and can be safely placed on volatile storage' within 4.10.
>
> Don't think this is a Samba problem, after a quick check, I take that
> back ;-)
>
> If you check the source for gencache.c you will find this:
>
> -       cache_fname = cache_path(talloc_tos(), "gencache.tdb");
> +       cache_fname = lock_path(talloc_tos(), "gencache.tdb");
>
> > Never the less I am of course interested into getting this fixed on
> > long term :)
> > So how should I proceed?
> > Create a bug fix (since as proven this does not seem to be a
> > configuration error by me)?
> > If yes where should I create it and against which package?
>
> From my understanding (limited as it is when it comes to the 'C' code),
> only things in the 'cache' directory are supposed to survive a reboot,
> so the thing you need for offline logon, looks like it has been moved
> to a directory where it wont.
>
> Rowland
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba