78027feeb56d6fe216f699be86a4716aaef3f628 |
|
07-Jul-2016 |
Sumit Bose <sbose@redhat.com> |
PAM/KRB5: optional otp and password prompting
Depending on the available Kerberos pre-authentication methods pam_sss
will prompt the user for a password, 2 authentication factors or both.
Resolves https://fedorahosted.org/sssd/ticket/2988
Reviewed-by: Nathaniel McCallum <npmccallum@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
1a45124f3f300f9afdcb08eab0938e5e7d0534d9 |
|
09-Jun-2016 |
Sumit Bose <sbose@redhat.com> |
NSS: add SSS_NSS_GETNAMEBYCERT request
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
a8d887323f83984679a7d9b827a70146656bb7b2 |
|
31-Jul-2015 |
Sumit Bose <sbose@redhat.com> |
PAM: add certificate support to PAM (pre-)auth requests
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
10703cd558016685ee778e333f1d4490238d46e7 |
|
31-Jul-2015 |
Sumit Bose <sbose@redhat.com> |
authok: add support for Smart Card related authtokens
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
0ed6114c6b2cc9d7e0c09842d19f0987e9ebbb4a |
|
03-Jul-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
sss_client: Use unique lock for memory cache
Previously the sma lock was used as for communication with
responder. However it would cause a deadlock in case of
re-checking memcache after acquiring the lock and before communication with
responder..
Required by:
https://fedorahosted.org/sssd/ticket/2581
Reviewed-by: Michal Židek <mzidek@redhat.com> |
ea422c7061072c125eb53b40d7f3ca444d886913 |
|
08-May-2015 |
Sumit Bose <sbose@redhat.com> |
PAM: add PAM responder unit test
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
deb28a893c76f7c94b6cc8e596742665e23d97d5 |
|
08-May-2015 |
Sumit Bose <sbose@redhat.com> |
IPA: create preauth indicator file at startup
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
4b1b2e60d0764fed289eada9a7afbfd1993cadcd |
|
08-May-2015 |
Sumit Bose <sbose@redhat.com> |
krb5-child: add preauth and split 2fa token support
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
fb045f6e5a9a7f8936ad6f89c28862dcd035a4fe |
|
08-May-2015 |
Sumit Bose <sbose@redhat.com> |
Add pre-auth request
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
bc052ea17d858c19f9cb9c9e2bc602e754f68831 |
|
08-May-2015 |
Sumit Bose <sbose@redhat.com> |
utils: add sss_authtok_[gs]et_2fa
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
a61d6d01a4e89ec14175af135e84f1cac55af748 |
|
23-Feb-2015 |
Pavel Reichl <preichl@redhat.com> |
PAM: do not reject abruptly
If account has expired then pass message.
Resolves:
https://fedorahosted.org/sssd/ticket/2050
Reviewed-by: Sumit Bose <sbose@redhat.com> |
858e750c3d4fe54e50616a1ed1e101469503c070 |
|
21-Jan-2015 |
Jakub Hrozek <jhrozek@redhat.com> |
Open the PAC socket from krb5_child before dropping root
The PAC responder by default allows only connections from the root user.
This patch opens the socket to the PAC responder before the krb5_child
drops privileges so the connection seemingly comes from root.
https://fedorahosted.org/sssd/ticket/2559
Reviewed-by: Sumit Bose <sbose@redhat.com> |
229c292143dcd4120acb022682b5b7d0aca622dd |
|
14-Oct-2014 |
Sumit Bose <sbose@redhat.com> |
nss: add SSS_NSS_GETORIGBYNAME request
This patch adds a new request to the nss responder which follows the
same flow as a SSS_NSSGETSIDBYNAME request but returns more data than
just the SID. The data is returned as pairs of \0-terminated strings
where the first string is the sysdb attribute name and the second the
corresponding value.
The main use case is on the FreeIPA server to make additional user and
group data available to the extdom plugin which then send this data to
SSSD running on FreeIPA clients.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
663fd9bcdcc6b299785ba3434532cd7e6c462bff |
|
29-Sep-2014 |
Daniel Gollub <dgollub at brocade.com> |
PAM: Add domains= option to pam_sss
Design document:
https://fedorahosted.org/sssd/wiki/DesignDocs/RestrictDomainsInPAM
Fixes:
https://fedorahosted.org/sssd/ticket/1021
Signed-off-by: Pavel Reichl <preichl@redhat.com>
Reviewed-by: Sven-Thorsten Dietrich <sven@brocade.com>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
316ff9ad6f959443ddadd54e9fe9ebf6c8052214 |
|
02-Sep-2014 |
Sumit Bose <sbose@redhat.com> |
Doxygen: replace <pre> with markdown table
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
3983d81f461a4f17736a516eb595f54df4bf4336 |
|
26-Mar-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
KRB5: Do not attempt to get a TGT after a password change using OTP
https://fedorahosted.org/sssd/ticket/2271
The current krb5_child code attempts to get a TGT for the convenience of
the user using the new password after a password change operation.
However, an OTP should never be used twice, which means we can't perform
the kinit operation after chpass is finished. Instead, we only print a
PAM information instructing the user to log out and back in manually.
Reviewed-by: Alexander Bokovoy <abokovoy@redhat.com> |
2fa8d6655ac37f9bdeb34420000052d921f4a543 |
|
14-May-2013 |
Michal Zidek <mzidek@redhat.com> |
Rename SAFEALIGN macros.
https://fedorahosted.org/sssd/ticket/1772
SAFEALIGN macros have been renamed in this patch to
make it easy to pick the right macro when data is copied
from byte buffer to a variable or vice versa.
The renamed macros are placed in new header file to
avoid code duplication (the old ones were defined in
two files, one for the client code and one for the rest
of sssd). |
2a9af1f71887f02935e2fb6ad5023afba5b6d43e |
|
03-May-2013 |
Sumit Bose <sbose@redhat.com> |
Add client library for SID related lookups
This patch add a library for client side lookups for a SID or with a
SID through the calls:
- sss_nss_getsidbyname
- sss_nss_getsidbyid
- sss_nss_getnamebysid
- sss_nss_getidbysid
The library is called libsss_nss_idmap and the contributed spec file
will create two new packages libsss_nss_idmap and
libsss_nss_idmap-devel. |
b40583c6d52b72e41bf01106534535e54b4fba4f |
|
08-Mar-2013 |
Nathaniel McCallum <npmccallum@redhat.com> |
Add support for krb5 1.11's responder callback.
krb5 1.11 adds support for a new method for responding to
structured data queries. This method, called the responder,
provides an alternative to the prompter interface.
This patch adds support for this method. It takes the password
and provides it via a responder instead of the prompter. In the
case of OTP authentication, it also disables the caching of
credentials (since the credentials are one-time only). |
8445e39d8e154523b1c39ce701830dacef51d1e9 |
|
12-Oct-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
PAM: fix handling the client fd in pam destructor
* Protect the fd with a mutex when closing
* Set it to a safe value after closing |
dba7903ba7fc04bc331004b0453938c116be3663 |
|
11-Oct-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
PAM: close socket fd with pam_set_data
https://fedorahosted.org/sssd/ticket/1569 |
300c772767c1b12077cac1d148ac89738b058f97 |
|
27-Jul-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Write SELinux config files in responder instead of PAM module |
04b3ab7658985af749460010123bbe37eccf50ed |
|
29-Jun-2012 |
Pavel Březina <pbrezina@redhat.com> |
sudo responder: change protocol version to 1 |
e589442117002ab72e4e129232cde8b31eb71f92 |
|
21-Jun-2012 |
Sumit Bose <sbose@redhat.com> |
PAC client: add basic support in common client code |
ee099cd5656b60c7384493b923ddf9af5cf5d4f5 |
|
21-Jun-2012 |
Sumit Bose <sbose@redhat.com> |
PAC responder: add the core functionality
This adds support for parsing PAC and storing information contained
within. In particular the user and all his memberships are stored. In
case it is necessary, getgrgid() requests are sent to provider for group
resolution. |
347f7c4d1e8e83fc7ffcaf9524a67e8b3ad5d7c5 |
|
07-Feb-2012 |
Jan Cholasta <jcholast@redhat.com> |
SSH: Common client code |
e7311aec8d691e5427317442387af1bc8fff3742 |
|
07-Feb-2012 |
Jan Cholasta <jcholast@redhat.com> |
SSH: Responder |
45fea2d9ec14f49d6d88b28958b28d580d7116b3 |
|
06-Feb-2012 |
Jan Zeleny <jzeleny@redhat.com> |
SELinux support in PAM responder |
2cbdd12983eb85eddb90f64cfafb24eae5b448f4 |
|
06-Feb-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
AUTOFS: a client library
This is the library the autofs client is using. automounter dlopen()s
the library so there is no header file, no pkgconfig file and the
library is in the libsss_autofs package, not in -devel.
The library provides the following interface:
* _sss_setautomntent() - select the map for processing
* _sss_getautomntent_r() - iterates through key/value pairs in the
selected map. The key is usually the mount
point, the value is mount information
(server:/export)
* _sss_getautomntbyname_r() - returns value for a specific key.
* _sss_endautomntent() deselect a map, clean up |
c9b2b7f3f02bf40b698c70640f151d0113736195 |
|
31-Jan-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
Fix sudo compilation on RHEL5 |
c47e9d522f0d87259e5074ea643daaa3dfcb8d92 |
|
27-Jan-2012 |
Pavel Březina <pbrezina@redhat.com> |
SUDO Integration - responder command for cn=defaults
https://fedorahosted.org/sssd/ticket/1143 |
cc7ee57f3adada83ac657e69636ca995d5b6948e |
|
27-Jan-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
NSS: Add client support for services (non-enumeration) |
fd3714d0cf068f3c782c1fff32105fc51cc97a0e |
|
18-Jan-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
NSS: Add sss_readrep_copy_string
There were many places in the client code where we were
duplicating a loop to copy data in from the response buffer. This
patch turns those loops into a function for easier maintenance and
easier-to-read *readrep() routines. |
22c7230dc0c8d41a189eb758be78991d183de1f7 |
|
14-Jan-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
NSS: Validate input string lengths
Also fixes a return value bug where we were returning errno error
codes instead of nss_status codes.
Fixes https://fedorahosted.org/sssd/ticket/1135 |
2827b0d03f7b6bafa504d22a5d7ca39cbda048b3 |
|
16-Dec-2011 |
Pavel Březina <pbrezina@redhat.com> |
SUDO Integration - responder |
0ef783e186ef1c9f60e61a4e8e54c44cb366fdfe |
|
16-Dec-2011 |
Pavel Březina <pbrezina@redhat.com> |
SUDO integration - client common interface |
4ab12f71d781f45330ebaebe827a1d996713945f |
|
28-Nov-2011 |
Pavel Březina <pbrezina@redhat.com> |
sss_cli.h - fix: function declaration after the header guard |
f8daa2e724b2964d00160a01786e331a33df5467 |
|
23-May-2011 |
Sumit Bose <sbose@redhat.com> |
Include string.h in sss_cli.h
Since memcpy() is used in sss_cli.h it should be declared here, too. |
66e691ceeee4cca739fc2606f1b357bbff4a3440 |
|
11-Feb-2011 |
Simo Sorce <ssorce@redhat.com> |
Use neutral name for functions used by both pam and nss |
92ae4a7ef84f05239da1ac2eba0d7a34161da271 |
|
03-Dec-2010 |
Sumit Bose <sbose@redhat.com> |
Add a renew task to krb5_child |
c89589fa349f38214c9cb8d9389c0fd557e5dca2 |
|
22-Nov-2010 |
Simo Sorce <ssorce@redhat.com> |
sss_client: make code thread-safe
Add mutexes around nss operations and serialize them.
This is necessary because nss operations may have global state.
For pam it is sufficient to protect socket operations instead.
As pam functions use only the provided pam handler.
Fixes: https://fedorahosted.org/sssd/ticket/640 |
4b498111c49b254e9aa5e2b0d4fcc1ba24a04236 |
|
15-Nov-2010 |
Sumit Bose <sbose@redhat.com> |
Avoid long long in messages to PAM client use int64_t |
36fc83f3f64bb16db7bef3e1cebe829424edacd1 |
|
13-Oct-2010 |
Sumit Bose <sbose@redhat.com> |
Add handling of nested netgroups to nss client |
f128b7b865062da662127712935dcc58bd022384 |
|
13-Oct-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add support for netgroups to NSS sss_client |
3ba74ad02d3a20d50c068faa02797fafba105508 |
|
13-Oct-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add utility function sss_strnlen()
This is useful for guaranteeing the size of an input buffer. |
06c03627c81a5252420931383a68eb67ba551667 |
|
26-May-2010 |
Sumit Bose <sbose@redhat.com> |
Handle Krb5 password expiration warning |
ea0173fe8ba915960621454168651c62301833cb |
|
16-Apr-2010 |
Sumit Bose <sbose@redhat.com> |
Use SO_PEERCRED on the PAM socket
This is the second attempt to let the PAM client and the PAM responder
exchange their credentials, i.e. uid, gid and pid. Because this approach
does not require any message interchange between the client and the
server the protocol version number is not changed.
On the client side the connection is terminated it the responder is not
run by root. On the server side the effective uid and gid and the pid of
the client are available for future use.
The following additional changes are made by this patch:
- the checks of the ownership and the permissions on the PAM sockets are
enhanced
- internal error codes are introduced on the client side to generate
more specific log messages if an error occurs |
dfc511c1226786cebbda35990bb7149dea5577b5 |
|
22-Mar-2010 |
Ralf Haferkamp <rhafer@suse.de> |
Improvements for LDAP Password Policy support
Display warnings about remaining grace logins and password
expiration to the user, when LDAP Password Policies are used.
Improved detection if LDAP Password policies are supported by
LDAP Server. |
8ad7891f28c0ffd991c51f2d64c32cf04c9ddbbc |
|
08-Mar-2010 |
George McCollister <georgem@novatech-llc.com> |
Fixed alignment problems in nss client/server
I fixed a handful of alignment problems in sss_client and nss responder.
Enumerating group and passwd with getgrent and getpwent now works correctly
on ARM.
Signed-off-by: George McCollister <georgem@novatech-llc.com> |
7343ee3d775303845e2528c676c59ef3582d6b27 |
|
23-Feb-2010 |
Sumit Bose <sbose@redhat.com> |
Handle expired passwords like other PAM modules
So far we handled expired password during authentication. Other PAM
modules typically detect expired password during account management and
return PAM_NEW_AUTHTOK_REQD if the password is expired and should be
changed. The PAM library then calls the change password routines. To
meet these standards pam_sss is change accordingly.
As a result it is now possible to update an expired password via ssh if
sssd is running with PasswordAuthentication=yes. One drawback due to
limitations of PAM is that the user now has to type his current password
again before setting a new one. |
446dbddae224cb68422825445b3cbdeb6606aa81 |
|
19-Feb-2010 |
Sumit Bose <sbose@redhat.com> |
Add documentation for PAM response messages |
ba8937d83675c7d69808d1d3df8f823afdc5ce2a |
|
18-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Fix licensing issues for sss_client |
1c48b5a62f73234ed26bb20f0ab345ab61cda0ab |
|
18-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Rename server/ directory to src/
Also update BUILD.txt |