Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2017 09:18:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 217415] security/sssd Cannot authenticate towards Active Directory
Message-ID:  <bug-217415-13-Yd2U24d499@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-217415-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-217415-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D217415

--- Comment #19 from Karli Sj=C3=B6berg <Karli.Sjoberg@slu.se> ---
(In reply to lukas.slebodnik from comment #18)
Don=C2=B4t apologize, nobody is forcing you to do this, besides...

IT WORKS!!! :)

The second example you posted of using pam_deny.so as required at the end d=
oes
not work, however I recalled reading something about using pam_unix.so, both
before _and_ after sssd to mimic this behaviour. For posterity, I=C2=B4ll j=
ust paste
my working examples, that lets both local and directory users log in when s=
ssd
is running, and local users when sssd is turned off:

/etc/pam.d/system:
#
# $FreeBSD: releng/10.3/etc/pam.d/system 197769 2009-10-05 09:28:54Z des $
#
# System-wide defaults
#

# auth
auth            sufficient      pam_opie.so             no_warn no_fake_pro=
mpts
auth            requisite       pam_opieaccess.so       no_warn allow_local
#auth           sufficient      pam_krb5.so             no_warn try_first_p=
ass
#auth           sufficient      pam_ssh.so              no_warn try_first_p=
ass
auth            sufficient      pam_unix.so             no_warn try_first_p=
ass
auth            sufficient      /usr/local/lib/pam_sss.so use_first_pass
auth            required        pam_unix.so             no_warn try_first_p=
ass

# account
#account        required        pam_krb5.so
account         sufficient      /usr/local/lib/pam_sss.so=20=20=20=20=20=20=
=20
ignore_unknown_user
account         required        pam_login_access.so
account         required        pam_unix.so

# session
#session        optional        pam_ssh.so              want_agent
session         required        /usr/local/lib/pam_mkhomedir.so    mode=3D0=
700
session         required        pam_lastlog.so          no_fail

# password
#password       sufficient      pam_krb5.so             no_warn try_first_p=
ass
password        sufficient      /usr/local/lib/pam_sss.so        use_authtok
password        required        pam_unix.so             no_warn try_first_p=
ass

/etc/pam.d/sshd:
#
# $FreeBSD: releng/10.3/etc/pam.d/sshd 197769 2009-10-05 09:28:54Z des $
#
# PAM configuration for the "sshd" service
#

# auth
auth            sufficient      pam_opie.so             no_warn no_fake_pro=
mpts
auth            requisite       pam_opieaccess.so       no_warn allow_local
#auth           sufficient      pam_krb5.so             no_warn try_first_p=
ass
#auth           sufficient      pam_ssh.so              no_warn try_first_p=
ass
auth            sufficient      pam_unix.so             no_warn try_first_p=
ass
auth            sufficient      /usr/local/lib/pam_sss.so use_first_pass
auth            required        pam_unix.so             no_warn try_first_p=
ass

# account
account         required        pam_nologin.so
#account        required        pam_krb5.so
account         required        pam_login_access.so
account         sufficient      /usr/local/lib/pam_sss.so=20=20=20=20=20=20=
=20
ignore_unknown_user
account         required        pam_unix.so

# session
#session        optional        pam_ssh.so              want_agent
session         required        /usr/local/lib/pam_mkhomedir.so  mode=3D0700
session         required        pam_permit.so

# password
#password       sufficient      pam_krb5.so             no_warn try_first_p=
ass
password        sufficient      /usr/local/lib/pam_sss.so        use_authtok
password        required        pam_unix.so             no_warn try_first_p=
ass

Best Regards
Karli Sj=C3=B6berg

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-217415-13-Yd2U24d499>