Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pam: add pam_sss_gss module for gssapi authentication
:feature: New PAM module `pam_sss_gss` for authentication using GSSAPI :packaging: Added `pam_sss_gss.so` PAM module and `pam_sss_gss.8` manual page :config: Added `pam_gssapi_services` to list PAM services that can authenticate using GSSAPI
- Loading branch information
Showing
13 changed files
with
1,274 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
AC_SUBST(GSSAPI_KRB5_CFLAGS) | ||
AC_SUBST(GSSAPI_KRB5_LIBS) | ||
|
||
PKG_CHECK_MODULES(GSSAPI_KRB5, | ||
krb5-gssapi, | ||
, | ||
AC_MSG_ERROR("Please install krb5-devel") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DocBook V4.4//EN" | ||
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> | ||
<reference> | ||
<title>SSSD Manual pages</title> | ||
<refentry> | ||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" | ||
href="include/upstream.xml" /> | ||
|
||
<refmeta> | ||
<refentrytitle>pam_sss_gss</refentrytitle> | ||
<manvolnum>8</manvolnum> | ||
</refmeta> | ||
|
||
<refnamediv id='name'> | ||
<refname>pam_sss_gss</refname> | ||
<refpurpose>PAM module for SSSD GSSAPI authentication</refpurpose> | ||
</refnamediv> | ||
|
||
<refsynopsisdiv id='synopsis'> | ||
<cmdsynopsis> | ||
<command>pam_sss_gss.so</command> | ||
<arg choice='opt'> | ||
<replaceable>debug</replaceable> | ||
</arg> | ||
</cmdsynopsis> | ||
</refsynopsisdiv> | ||
|
||
<refsect1 id='description'> | ||
<title>DESCRIPTION</title> | ||
<para> | ||
<command>pam_sss_gss.so</command> authenticates user | ||
over GSSAPI in cooperation with SSSD. | ||
</para> | ||
<para> | ||
This module will try to authenticate the user using host@hostname | ||
service ticket (which translates to host/hostname@REALM Kerberos | ||
principal). If the ticket is already present in the Kerberos | ||
credentials cache or if user's ticket granting ticket can be used | ||
to get the correct service ticket then the user will be | ||
authenticated. | ||
</para> | ||
<para> | ||
SSSD is used to provide correct service name that should be used | ||
for validation (host@hostname where hostname is determined from | ||
user's domain) and later to validate the user's credentials. | ||
</para> | ||
<para> | ||
To enable GSSAPI authentication in SSSD, set | ||
<option>pam_gssapi_services</option> option in [pam] or domain | ||
section of sssd.conf. The service credentials need to be stored | ||
in SSSD's keytab (it is already present if you use ipa or ad | ||
provider). The keytab location can be set with | ||
<option>krb5_keytab</option> option. See | ||
<citerefentry> | ||
<refentrytitle>sssd.conf</refentrytitle> | ||
<manvolnum>5</manvolnum> | ||
</citerefentry> and | ||
<citerefentry> | ||
<refentrytitle>sssd-krb5</refentrytitle> | ||
<manvolnum>5</manvolnum> | ||
</citerefentry> for more details on these options. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 id='options'> | ||
<title>OPTIONS</title> | ||
<variablelist remap='IP'> | ||
<varlistentry> | ||
<term> | ||
<option>debug</option> | ||
</term> | ||
<listitem> | ||
<para>Print debugging information.</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1 id='module_types_provides'> | ||
<title>MODULE TYPES PROVIDED</title> | ||
<para>Only the <option>auth</option> module type is provided.</para> | ||
</refsect1> | ||
|
||
<refsect1 id="return_values"> | ||
<title>RETURN VALUES</title> | ||
<variablelist> | ||
<varlistentry> | ||
<term>PAM_SUCCESS</term> | ||
<listitem> | ||
<para> | ||
The PAM operation finished successfully. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term>PAM_USER_UNKNOWN</term> | ||
<listitem> | ||
<para> | ||
The user is not known to the authentication service or | ||
the GSSAPI authentication is not supported. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term>PAM_AUTH_ERR</term> | ||
<listitem> | ||
<para> | ||
Authentication failure. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term>PAM_AUTHINFO_UNAVAIL</term> | ||
<listitem> | ||
<para> | ||
Unable to access the authentication information. | ||
This might be due to a network or hardware failure. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term>PAM_SYSTEM_ERR</term> | ||
<listitem> | ||
<para> | ||
A system error occurred. The SSSD log files may contain | ||
additional information about the error. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1 id='examples'> | ||
<title>EXAMPLES</title> | ||
<para> | ||
The main use case is to provide password-less authentication in | ||
sudo but without the need to disable authentication completely. | ||
To achieve this, first enable GSSAPI authentication for sudo in | ||
sssd.conf: | ||
</para> | ||
<programlisting> | ||
[domain/MYDOMAIN] | ||
pam_gssapi_services = sudo, sudo-i | ||
</programlisting> | ||
<para> | ||
And then enable the module in desired PAM stack | ||
(e.g. /etc/pam.d/sudo and /etc/pam.d/sudo-i). | ||
</para> | ||
<programlisting> | ||
... | ||
auth sufficient pam_sss_gss.so | ||
... | ||
</programlisting> | ||
</refsect1> | ||
|
||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="include/seealso.xml" /> | ||
|
||
</refentry> | ||
</reference> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.