.
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam_dbus?expand=0&rev=12
This commit is contained in:
parent
90979905e3
commit
debaee35a6
@ -1,7 +1,7 @@
|
||||
---
|
||||
data/pam_dbus.conf | 3 +--
|
||||
src/pam_dbus.c | 8 ++++++++
|
||||
2 files changed, 9 insertions(+), 2 deletions(-)
|
||||
src/pam_dbus.c | 12 ++++++++++++
|
||||
2 files changed, 13 insertions(+), 2 deletions(-)
|
||||
|
||||
--- data/pam_dbus.conf
|
||||
+++ data/pam_dbus.conf 2017-07-11 08:43:18.343905071 +0000
|
||||
@ -35,12 +35,16 @@
|
||||
|
||||
error = NULL;
|
||||
connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
|
||||
@@ -78,3 +81,8 @@ PAM_EXTERN int pam_sm_authenticate(pam_h
|
||||
@@ -78,3 +81,12 @@ PAM_EXTERN int pam_sm_authenticate(pam_h
|
||||
|
||||
return login_ok ? PAM_SUCCESS : PAM_AUTH_ERR;
|
||||
}
|
||||
+
|
||||
+PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc, const
|
||||
+ char **argv) {
|
||||
+ return PAM_IGNORE;
|
||||
+PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc __unused, const
|
||||
+ char **argv __unused) {
|
||||
+ int rc = ((flags & PAM_ESTABLISH_CRED) ? PAM_SUCCESS :
|
||||
+ (flags & PAM_REINITIALIZE_CRED) ? PAM_SUCCESS :
|
||||
+ (flags & PAM_REFRESH_CRED) ? PAM_SUCCESS :
|
||||
+ (flags & PAM_DELETE_CRED) ? PAM_SUCCESS : PAM_IGNORE);
|
||||
+ return rc;
|
||||
+}
|
||||
|
Loading…
Reference in New Issue
Block a user