diff options
author | Sumit Bose <sbose@redhat.com> | 2010-10-27 13:34:54 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-11-15 15:37:30 -0500 |
commit | 9468a58f9bd191ef80c114943a288037c635a835 (patch) | |
tree | 61d7209ebaea50aadc1b90ad7880a83579d6d254 /src/providers | |
parent | 4b498111c49b254e9aa5e2b0d4fcc1ba24a04236 (diff) | |
download | sssd-9468a58f9bd191ef80c114943a288037c635a835.tar.gz sssd-9468a58f9bd191ef80c114943a288037c635a835.tar.xz sssd-9468a58f9bd191ef80c114943a288037c635a835.zip |
Introduce pam_verbosity config option
Currently we display all PAM messages generated by sssd to the user. But
only some of them are important and others are just some useful
information.
This patch introduces a new option to the PAM responder which controls
what kind of messages are displayed. As an example the 'Authenticated
with cached credentials' message is used. This message is only displayed
if pam_verbosity=1 or if there is an expire date.
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/data_provider.h | 1 | ||||
-rw-r--r-- | src/providers/dp_pam_data_util.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/data_provider.h b/src/providers/data_provider.h index 062c36e34..819a2d770 100644 --- a/src/providers/data_provider.h +++ b/src/providers/data_provider.h @@ -159,6 +159,7 @@ struct response_data { int32_t type; int32_t len; uint8_t *data; + bool do_not_send_to_client; struct response_data *next; }; diff --git a/src/providers/dp_pam_data_util.c b/src/providers/dp_pam_data_util.c index d709447d1..5c06a81ba 100644 --- a/src/providers/dp_pam_data_util.c +++ b/src/providers/dp_pam_data_util.c @@ -163,6 +163,7 @@ int pam_add_response(struct pam_data *pd, enum response_type type, new->len = len; new->data = talloc_memdup(pd, data, len); if (new->data == NULL) return ENOMEM; + new->do_not_send_to_client = false; new->next = pd->resp_list; pd->resp_list = new; |