diff options
author | Ted Gould <ted@gould.cx> | 2012-08-28 15:09:38 +0000 |
---|---|---|
committer | Tarmac <> | 2012-08-28 15:09:38 +0000 |
commit | e2dbf52d86c5c6e1734c7df1b17d8ced9589e82a (patch) | |
tree | 4c9694993c1248c9aaec68fbbfbc668c26c8cbb3 /src | |
parent | 733fde7fe2415f983ed8f2045dffda16d30d1c14 (diff) | |
parent | 0b41e3977e41d07997f008a8344f9ab70e4d213d (diff) | |
download | libpam-x2go-e2dbf52d86c5c6e1734c7df1b17d8ced9589e82a.tar.gz libpam-x2go-e2dbf52d86c5c6e1734c7df1b17d8ced9589e82a.tar.bz2 libpam-x2go-e2dbf52d86c5c6e1734c7df1b17d8ced9589e82a.zip |
Adding a setcred function so callers are happy. Approved by Albert Astals Cid, jenkins.
Diffstat (limited to 'src')
-rw-r--r-- | src/pam-freerdp.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c index d1a6578..9774bfb 100644 --- a/src/pam-freerdp.c +++ b/src/pam-freerdp.c @@ -337,12 +337,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, |