On 22/01/2021 14:19, Piviul via samba wrote:> Il 22/01/21 14:41, Rowland penny via samba ha scritto: >> OK Piviul, I have something else for you to test ? >> >> Add 'lock directory = /var/cache/samba/' to smb.conf >> >> Reboot with the cable connected >> >> Login as a domain user >> >> Remove the cable and reboot again >> >> Try and login again > > ok Rowland, before test again I can ask you if I have to config the > krb5 cc folder to /var/cache/samba/ instead of /temp? > > Piviul > >I tested it with a modified /etc/krb5.conf & /etc/pam.d/common-auth and it worked. I then reverted to the standard versions of the two files and it still works. The problem appears to stem from Louis's packages, but I am fairly sure that he has inherited that from Debian, who inherited it from the idiot who decided to make /var/run a symlink to /run and put /run into tmpfs! Louis has '--with-lockdir=/run/samba \' in debian/rules . This means that 'gencache.tdb' gets wiped every time the computer reboots and as far as I am aware, offline winbind needs 'gencache.tdb' Note: this is just my own opinion. Rowland
Mandi! Rowland penny via samba In chel di` si favelave...> Louis has '--with-lockdir=/run/samba \' in debian/rules . This means that > 'gencache.tdb' gets wiped every time the computer reboots and as far as I am > aware, offline winbind needs 'gencache.tdb'In debian BTS the only bug relevant to this seems: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953530 so probably a bug have to be fired up. Louis, say to us. -- dott. Marco Gaiarin GNUPG Key ID: 240A3D66 Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/ Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento (PN) marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797 Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
Good spotted.. I have a look at this. That problem on that /run/samba dir is fixed. Im wondering why the "genCACHE.tdb" is in lockdir and not in cachedir : /var/cache/samba where these files "should" be.. I'll have a look at it for coming builds. and i'll see if i can contact the debian maintainer. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Marco Gaiarin via > samba > Verzonden: maandag 25 januari 2021 15:07 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] winbind offline logon > > Mandi! Rowland penny via samba > In chel di` si favelave... > > > Louis has '--with-lockdir=/run/samba \' in debian/rules . This means > that > > 'gencache.tdb' gets wiped every time the computer reboots and as far as > I am > > aware, offline winbind needs 'gencache.tdb' > > In debian BTS the only bug relevant to this seems: > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=953530 > > so probably a bug have to be fired up. Louis, say to us. > > -- > dott. Marco Gaiarin GNUPG Key ID: 240A3D66 > Associazione ``La Nostra Famiglia'' > http://www.lanostrafamiglia.it/ > Polo FVG - Via della Bont?, 7 - 33078 - San Vito al Tagliamento > (PN) > marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434- > 842797 > > Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA! > http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000 > (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA) > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba