aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-28 08:33:14 -0500
committerTed Gould <ted@gould.cx>2012-08-28 08:33:14 -0500
commit0646327b9cfca2836bcd1036d226cd6d23de4877 (patch)
tree322d4fe6a6e4ee3f6367b704023dbe624adbf796
parent5b36f6b97465461ebc87a984c853c81f2c67a4ac (diff)
downloadlibpam-freerdp2-0646327b9cfca2836bcd1036d226cd6d23de4877.tar.gz
libpam-freerdp2-0646327b9cfca2836bcd1036d226cd6d23de4877.tar.bz2
libpam-freerdp2-0646327b9cfca2836bcd1036d226cd6d23de4877.zip
Adding a setcred function so callers are happy
-rw-r--r--src/pam-freerdp.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 5295098..89161af 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -320,12 +320,20 @@ pam_sm_close_session (pam_handle_t *pamh, int flags, int argc, const char **argv
return PAM_IGNORE;
}
+/* LightDM likes to have this function around, but we don't need it as we
+ don't have a token hanging around. */
+PAM_EXTERN int
+pam_sm_setcred (pam_handle_t *pamh, int flags, int argc, const char ** argv)
+{
+ return PAM_SUCCESS;
+}
+
#ifdef PAM_STATIC
struct pam_module _pam_freerdp_modstruct = {
- "pam-freerdp",
+ "pam_freerdp",
pam_sm_authenticate,
- NULL,
+ pam_sm_setcred,
NULL,
pam_sm_open_session,
pam_sm_close_session,