/srv/irclogs.ubuntu.com/2022/06/06/#ubuntu-server.txt

ahasenacksergiodj: hi, this bug came up in a server guide comment, https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/193499712:29
ubottuLaunchpad bug 1934997 in sssd (Ubuntu) "Authentication fails after upgrading sssd to 2.2.3-3ubuntu0.6" [High, Triaged]12:29
ahasenackhave you got any news about it?12:29
ahasenacktl;dr samba does not create the empty policy file, I got that, and sssd is treating that in a particular way. Does windows also not create that policy? Can we say by now where the fix should be?12:29
ahasenackoh, I'm finding some activity12:30
scortalhi12:42
ahasenackrbasak: I know you are off today, but I'll just leave this here. I'm going to create a merge MP, and I'll try the pre-requisite branch trick13:10
ahasenackrbasak: I don't think it works, the diff is all messed up13:14
memoryleakDid anyone create an auto-install iso image with the new 22.04 - any online references for that?13:32
sergiodjahasenack: ah, thanks for tracking down the PR that fixed it.  I will merge sssd soon-ish, and I see that Timo has just uploaded 2.7.1-1 to Debian14:33
sergiodjit should fix the issue, as you pointed out14:33
ahasenackyep14:34
ahasenackI'm updating the server guide with a note, and I'm thinking about the 22.04 release notes as well, since it has AD join in the installer14:34
sergiodjright14:34
ahasenackweird that the bug only happened on ssh logins, not console ones14:34
ahasenackI wonder if the console login is missing some pam module, or something else that would have applied the gpo14:35
ahasenackwhen you were testing, did you only use ssh for testing?14:35
sergiodjit's been a while and I don't remember the details, let me re-read the bug14:35
ahasenacksomeone in the https://discourse.ubuntu.com/t/sssd-and-active-directory/27888 comments is saying that it only blocked ssh logins14:36
ahasenack(that's how I was pointed at that bug)14:36
sergiodjahasenack: based on what I wrote at https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1934997/comments/5, I think I was testing using console login14:37
ubottuLaunchpad bug 1934997 in sssd (Ubuntu) "Authentication fails after upgrading sssd to 2.2.3-3ubuntu0.6" [High, Triaged]14:37
scortalhi18:56
scortalih19:52
HinnerkHi, I have a dedicated server in my home network runnning Ubuntu LTS latest. It is connected to my router, which serves also as local DNS. My server features two NICs, as fail backup, both are attached to the router, named eno1 and eno2 with IPs 192.168.1.40 and 41. Of course, there is just one host name, myserver.home. So how do I need to properly20:25
Hinnerkconfigure the NICs in Ubuntu and the DNS to properly resolve any requests to the server? Can I use the same hostname for different IPs? Or is the solution within configuring the NICs to olny use one at the time? Maybe I should just deconnect the second...20:25
HinnerkAddtional complication: The IPs are by reserved DHCP only.20:29
HinnerkSo it requires the MAC adress20:30
sarnoldHinnerk: depending upon what you're trying to build, this may be useful overview of what's available https://ubuntu.com/server/docs/ubuntu-ha-introduction20:36
* sergiodj fastens his seatbelt and starts looking into the Samba merge MP20:38
HinnerkThx, that seems a bit over the top for me. It's really just a small home network, but since it had the two NICs... maybe I just deactivate one, it seems to cause more trouble to me than it is worth it (to me).20:38
oerhekshaving one dedicated to ssh local, is nice20:41
sarnolddoes your switch support bonding? maybe doubling them to get pseudo-double the bandwidth might be handy and probably way easier to configure20:43
scortalmaret21:09
scortali need ubuntu manual21:10
scortalplz21:10
sergiodjhttps://help.ubuntu.com/21:11
oerheksits in the topic21:11
scortalis it useful to build server21:12
sergiodjthe Ubuntu Server guide is useful when building a server, yes21:12
oerheks!info harden-doc21:14
ubottuharden-doc (3.19+nmu1, jammy): useful documentation to secure a Debian system. In component universe, is extra. Built by harden-doc. Size 879 kB / 8,751 kB21:14
ahasenackis this working for anyone:21:18
ahasenack$ lftp https://ubuntu.com21:18
ahasenackcd: Fatal error: Certificate verification: Not trusted (93:3C:6D:DE:E9:5C:9C:41:A4:0F:9F:50:49:3D:82:BE:03:AD:87:BF)21:18
ahasenackthat's in impish, but I see the same on kinetic21:19
lvoytekI see the same thing on Jammy21:19
Odd_Blokeahasenack: Same on focal.21:19
ahasenacklooking for other command-line tools that link with gnutls21:20
ahasenacklynx21:21
ahasenackhm, that worked21:21
sergiodjahasenack: fedora and debian also21:28
ahasenackalso fails, you mean?21:29
sergiodjyes21:29
sergiodjahasenack: maybe related to this: https://github.com/lavv17/lftp/issues/64121:31
ubottuIssue 641 in lavv17/lftp "gnutls integration code manually tries to verify chain, can't handle cross-signed CA" [Closed]21:31
sergiodjapparently lftp implements its own verification algorithm there?  not sure21:32
ahasenackscary21:33
ahasenackI was actually stracing it, to see if it read gnutls' config file, and it doesn't21:33
ahasenackbut it links with gnutls for something21:33
sergiodjis ubuntu.com's certificate from Let's Encrypt?21:35
sergiodjah, it is21:35
sergiodjthen: https://github.com/lavv17/lftp/issues/52621:35
ubottuIssue 526 in lavv17/lftp "FTPS Letsencrypt Certificate verification: Not trusted." [Open]21:35
sergiodjI'm not touching that code with a 10-metre pole, FWIW21:36
sergiodj:-P21:36
ahasenacksergiodj: thanks for finding that, I filed a bug21:38
sergiodjthe fact that lftp doesn't work correctly with Let's Encrypt certs && that upstream hasn't addressed this yet is a bit concerning, though :-/21:38
ahasenackthe other bug/fix you linked is closed, thogh21:38
ahasenackwhat is this one21:38
sergiodjyw21:38
ahasenackI think one is not aware of the other21:38
sergiodjmaybe21:38
ahasenackyeah, there is a fix committed21:39
sergiodjah, good21:39
HinnerkOk, I think I messed up my network configuration. My connections do not work anymore. I tried to remove them and reconfigured, but no gain. How do I best go about restoring my sevrers network cards to default?22:19
Hinnerkor rather the connections of course.22:19
HinnerkI'm also unsure, what to reset. NetworkManager? netplan? How do these live together?22:21
murmelHinnerk: netplan is telling nm or networkd how everything should be configured. so really depends on how you edited your connections to revert it back22:28
HinnerkWell, I meddled a bit too much, I think. Did changes to both22:32
HinnerkI have two NICs in the server, one was not in netplan so I added it.22:33
murmelHinnerk: well seems like you want to revert to a basic netplan config then. look at netplan.io/examples to see something you like (i assume just dhcp) which should be a 3-liner22:34
HinnerkYes, dhcp is fine.22:34
HinnerkStill fails.22:43
HinnerkI have two NICs eno1 and eno222:44
Hinnerkeno1 should be on dhcp, eno2 I do not care about at this point22:44
Hinnerkas long as it doesn not get in the way, which it may.22:44
murmelHinnerk: can you paste your config somewhere? for example paste.debian.net22:45
Hinnerksure just a sec, need to get it out of the server.22:45
HinnerkNot so eays, since NIC are not working i only have access through IPMI.22:47
HinnerkDiscovered an error. Fixed an rebooting. Doubt it will fix the entire issue, but we'll see.22:50
murmelHinnerk: you could just do sudo netplan apply to verify if the config works in comparison to rebooting ;)22:51
Hinnerknext time :)22:51
HinnerkMy left CTRL key is deactived via IPMI, it seems. So sometime when I save, I add an S accidently.22:52
HinnerkFixed that.22:52
Hinnerkpaste.debian.net/124326422:55
Hinnerkdidn't fix it.22:55
Hinnerkshould I add eno2 as well?22:56
murmelHinnerk: you can, but this should work. question now is, what specifically did you change to not let it work anymore22:58
HinnerkYes, I'm surprised too. I didn't do anything totally crazy.22:58
HinnerkI did use the network manager GUI. But I prefer not to anymore...22:59
Hinnerknever sure, where that changes things.22:59
murmelHinnerk: ahm are you on a desktop or server?22:59
HinnerkI am on a server.22:59
HinnerkIt has a desktop though22:59
murmelHinnerk: well if you use nm, it makes sense that the config doesn't apply as it tries to use networkd22:59
Hinnerkin general I use it without gui, just the services there, apache with nextcloud, dlna server,...23:00
Hinnerkso I think we should do it the proper server way, if there are two.23:00
murmelHinnerk: can you first verify which network stack you are using?23:01
HinnerkHow?23:01
murmelwhat does systemctl status NetworkManager.service say? running?23:01
HinnerkYes, running.23:02
murmelso edit your config to use the networkmanager stack not networkd23:03
Hinnerkok, did that. now what?23:09
Hinnerkdid apply also.23:09
murmeldoes your network interface get an ip? (ip addr)23:09
HinnerkNow this is strange:23:13
Hinnerkeno1 does not get an IP.23:13
Hinnerkeno2 gets the IP eno2 should have gotten.23:14
Hinnerkthe DHCP server reserves IPs for their respective MACs. I just verfied that those are set correct.23:14
Hinnerksry, type, eno2 gets the IP eno1 should have gotten.23:15
Hinnerkand still cant ping the router.23:15
HinnerkI did verify the cables are ok :)23:16
murmeleh, cables are very unlikely23:16
HinnerkYes, I figured, but was desperate.23:16
murmelI do know that having 2 nics on 1 network is kinda weird on linux (had my own fair share of issues) but not to that extend23:16
HinnerkCan we just completey deactivate one and just make sure the other one works fine?23:17
murmelHinnerk: sure, i mean as long as you don't configure one of the interfaces, you should be able to use NM perfectly normal.23:18
murmelHinnerk: is gateway etc set correctly through your dns?23:18
murmelargh dhcp23:18
murmelbut I guess most things are on the router?23:18
HinnerkYes, but the router works fine.23:18
HinnerkDNS is configured good.23:19
HinnerkJust cleaned up configurations in NM. Will reboot router to ensure, there'S no buffering issue or something. So I'll be gone for a bit - but I think I'll call it a day anyway. Thx for the help, I will probably be back (not quite Terminator...).23:22

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!