Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 00:41

    github-actions[bot] on gh-pages

    deploy: 4d3e3765bdb1cfda417504c… (compare)

  • 00:39

    Firstyear on issue989

    (compare)

  • 00:36

    Firstyear on master

    Version argument for kanidm and… (compare)

  • 00:36
    Firstyear closed #991
  • Aug 17 11:41

    github-actions[bot] on gh-pages

    deploy: f0e96b9ff5336a12630b593… (compare)

  • Aug 17 11:35

    yaleman on pykanidm-release

    (compare)

  • Aug 17 11:35

    yaleman on master

    Published 0.0.3 of kanidm pytho… (compare)

  • Aug 17 11:35
    yaleman closed #995
  • Aug 17 11:32
    yaleman commented #991
  • Aug 17 09:27
    Firstyear commented #991
  • Aug 17 08:06
    yaleman synchronize #991
  • Aug 17 08:06

    yaleman on issue989

    updates (compare)

  • Aug 17 08:05
    yaleman synchronize #991
  • Aug 17 08:05

    yaleman on issue989

    first commit of this change checkpoint it verks and 2 more (compare)

  • Aug 17 07:57
    yaleman ready_for_review #991
  • Aug 17 07:56
    yaleman review_requested #995
  • Aug 17 07:49
    yaleman labeled #995
  • Aug 17 07:49
    yaleman opened #995
  • Aug 17 07:47

    yaleman on pykanidm-release

    kanidm python 0.0.3 (compare)

  • Aug 17 07:30

    yaleman on pykanidm-release

    Allow disabling networked tests… bumped and updated docs Merge branch 'pykanidm-release'… (compare)

soloturn
@soloturn

Apparently there has been movement away from libressl as it has been lagging behind openssl for fixes recently, but I need to double check the sources of that info

is macos also shipping libressl? there are a couple of links which would indicate it, like https://stackoverflow.com/questions/68242329/cannot-create-ssl-certificate-request-file and cl-plus-ssl/cl-plus-ssl#135

Firstyear
@Firstyear
Macos is a bit more fun. They have corecrypto but i think underneath that's using boringssl for tls at least.
James Hodgkinson
@yaleman
libressl's part of macos but it's all broken and weird
Firstyear
@Firstyear
I wouldn't be surprised if they remove libressl at some point, I think some distros that swapped to it are "having buyers regret" now.
James Hodgkinson
@yaleman
So many different SSL libs, why can't we just have a standard :D
Triss Healy
@trissylegs
Well everyone used to use OpenSSL until Shellshock and the ecosystem shattered
(or NSS for Firefox and Chrome)
I succesfully managed to setup PAM and NSS switch for everythign but actually authentication
Firstyear
@Firstyear
@trissylegs What issues are you hitting?
Did you set an allowed group ?
Also yeah, I think it was heartbleed that caused a lot of panic and initial forks like libressl, but it also prompted a lot of investwent into openssl and it's actually gotten a lot better since.
Where libressl seems to have languished
Heck, openssl 3.0.0 today
Triss Healy
@trissylegs
libressl also suffers from nobody wants to work with OpenBSD devs if they can help it.
Firstyear
@Firstyear
Loooooolllll
Yeah
@trissylegs When you say you can't authenticate what's the actual logs or symptmos from a login attempt? Can users resolve with getent passwd <name>?
Triss Healy
@trissylegs
# getent passwd nirya                        
nirya:x:1001:1001:Triss Healy:/home/nirya:/usr/bin/zsh
Firstyear
@Firstyear
Okay that's a solid start
Triss Healy
@trissylegs
(Yes I'm using name instead of spn because there's too many names to fix up)
Firstyear
@Firstyear
No that's fine
That's why it's there
I use name as well at home too
the spn thing is meant for future proofing when (if?) i add trusts
Triss Healy
@trissylegs
It's also good for RDM and other weird things.
Firstyear
@Firstyear
Okay, can you show me your /etc/kanidm/unixd config?
Triss Healy
@trissylegs
% cat /etc/kanidm/unixd
# this should be at /etc/kanidm/unixd, and configures kanidm-unixd
# some documentation is here: https://github.com/kanidm/kanidm/blob/master/kanidm_book/src/pam_and_nsswitch.md
pam_allowed_login_groups = ["humans"]
# default_shell = "/bin/bash"
home_prefix = "/home/"
home_attr = "uuid"
home_alias = "name"
uid_attr_map = "name"
gid_attr_map = "name"
Oh this is the message I get:
$ su -l nirya
Password: 
su: Authentication service cannot retrieve authentication info
Firstyear
@Firstyear
can you show me getent group humans?
Triss Healy
@trissylegs
$ getent group humans
humans:x:2001:test_user,nirya
Firstyear
@Firstyear
Which distro?
Triss Healy
@trissylegs
Arch linux. Editing PAM is mostly been guessing because its different to both SUSE and Redhat
Firstyear
@Firstyear
Right
Okay, so the next steps would be

systemctl edit kanidm-unix.service

[Service]
Environment="RUST_LOG=kanidm=debug"

in pam, on lines with pam_kanidm.so, add the option debug

Then restart kanidm-unixd, and try su again.
Youll have more info in journalctl, and it prints more to the TTY from the pam module.
But after that I'll need to see your /etc/pam.d/su and probably other fules.
files*
There is a troubleshooting section here which is honestly what I'm reading XD
Triss Healy
@trissylegs
Yea. I've been through most of that
I think it'll be something in /etc/pam.d
Firstyear
@Firstyear
Yeah, most likely
Pam is really tricky and delicate at the best of times :(
Triss Healy
@trissylegs
Firstyear
@Firstyear
That all looks happy
content of /etc/pam.d/su ?
It may have include statements, so if those are present, can you provide those files too?
Triss Healy
@trissylegs
From what I gathered. Arch linux pam nearly all includes system-login