-
mgt576
@jcluvlow when booting from disk (i guess you mean piadm) does that work with all pool layouts ?
-
danmcd
@mgt576 --> not piadm(8), that's SmartOS-specific.
-
nomad
Is anyone here using duo_unix 2FA software on an illumos distro?
-
nomad
It seems recent versions fail to compile and I'm trying to figure out if it's a me problem, an Illumos problem, or a duo problem.
-
nomad
(FTR: I am suspecting me, followed by duo)
-
tsoome
nomad that depends on the nature of errors>(
-
nomad
give me a moment, I'll post a paste
-
nomad
pastebin.com/rKtN5y45 (sorry 'bout the noise. I keep forgetting where the good paste services are.)
-
nomad
I'm having to compile with gcc-10. Even older code of theirs doesn't work with gcc-14.
-
nomad
hey jclulow, is there anything I can do to help push
illumos.org/issues/2947 ?
-
fenix
→
BUG 2947: PAM should support per-service config in /etc/pam.d (New)
-
richlowe
nomad: that all seems like just openssl deprecations?
-
nomad
richlowe, the warnings are, yes.
-
nomad
the error is *probably* related to it but is new in their 2.2.x branch.
-
nomad
which has existed for a while which implies others aren't having problems compiling it.
-
nomad
I'm able to compile 2.1.0 and have it run, even with the warnings.
-
jclulow
nomad: Wow, I haven't thought about that one in a long time haha
-
nomad
jclulow, duo_unix needs pam hooks. I have to have ansible do a blockinfile edit to add the sshd-kbdint requirement to get it to work.
-
nomad
I'd *really* prefer pam.d structure :)
-
jclulow
Yeah, I can see how that would be better
-
nomad
richlowe, so I guess the question is, is this an error with Illumos's openssl includes or something else?
-
nomad
or am I just once again proving brainrot... <sigh>
-
tsoome
nomad error is about missing function declaration. the function is used at line 419 and defined at 534.
-
tsoome
but also based on warnings, I guess that thing is ugly...
-
nomad
ok, yeah, so far I follow you. I was thinking they were expecting it to be defined in an include file or something.
-
» nomad touches C about once a year or so... probably even a lot less.
-
ptribble
-
ptribble
Which doesn't tell you anything useful other than that someone else hit the same bug
-
tsoome
-
tsoome
#ifndef HAVE_GETADDRINFO
-
nomad
I'm glad to know I'm not alone.
-
tsoome
so, configure fails to detect getaddrinfo and the buggy code path is taken - missing declaration is not OS fault.
-
ptribble
Yep, you need to add LIBS="-lsocket -lnsl" to the configure invocation to help it out
-
tsoome
so the suggestion in that ticket is just lame
-
tsoome
and it was working in 11.4 because oracle did move things into libc
-
nomad
re-running my config with the LIBS= setting worked.
-
nomad
so that's good news.
-
tsoome
I'm not sure if that code is actually safe to use:)
-
nomad
well, I can at least test if it will do what I expect it to do :)
-
andyf
I use 2FA with the PAM module from oath-toolkit in some places.
-
andyf
That's all local but it seems to work well
-
nomad
still getting some warnings that mostly seem to be incompatible pointer type.
-
nomad
duo is what UW IT is requiring.
-
tsoome
incompatible pointers may be both ways, recent gcc are getting more strict there.
-
nomad
this is gcc10. How recent is that?
-
tsoome
relatively. I think, current is 15?
-
tsoome
we have 14.3 for latest
-
ptribble
Commented on the duo issue, even if they don't fix it then if someone finds the issue it might help them.
-
nomad
danke
-
nomad
well... it works.
-
nomad
Can't speak to the quality but it DTRT.
-
tsoome
-
fenix
→ FEATURE 2832: libsocket should go the way of libpthread (In Progress)
-
nomad
on the other hand, my PAM config must be broken. You can just keep saying no to the duo prompt and it'll eventually just let you in.
-
nomad
that's... really bad.
-
andyf
-
nomad
The only diff from what you show is my last line: sshd-kbdint auth required pam_duo.so
-
nomad
but I don't put it at the very end of the pam.conf so maybe I need to move it.
-
nomad
nope, still letting me in after mulitple tries.
-
nomad
ugh. looks like that behavior shows up in my 'working' installs on other OmniOS hosts.
-
nomad
not on my leenux hosts, though.
-
» nomad goes back to the (failing) googles.
-
andyf
nomad - it is probably switching to sshd-password after several failed sshd-kbdint attempts
-
andyf
I'd start up a copy of sshd in debug on a different port and check the output while you run a test
-
andyf
Something like: /usr/sbin/sshd -p 2222 -dddd
-
andyf
and look for `PAM service is <xxx>`
-
nomad
I'll make a note of that for next week. I'm already over hours for this week (the not-joy of being 57% FTE).
-
andyf
The fix will be to make sure you have "PasswordAuthentication no" in /etc/ssh/sshd_config
-
nomad
Remember my comment about /etc/pam.d? that also applies to /etc/ssh/sshd_config.d :)
-
nomad
lucky me, I can have ansible edit /etc/ssh/sshd_config to add an include line and create that directory.
-
nomad
(though it should already be there, IMHO.)
-
nomad
andyf, thanks for the pointers. I've updated my ticket.
-
nomad
and now, hopefully, I can stop thinking about this for my unpaid days.