aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-17 11:39:11 -0500
committerTed Gould <ted@gould.cx>2012-08-17 11:39:11 -0500
commitc051f53ba57721d6faff87c96173f70588d57aac (patch)
tree5d40ce5fa68016962f8bb76cfcf3d02b30f7f8cf
parent7e33e925c8d1062a41667a3be308a0b6f469c57c (diff)
downloadlibpam-freerdp2-c051f53ba57721d6faff87c96173f70588d57aac.tar.gz
libpam-freerdp2-c051f53ba57721d6faff87c96173f70588d57aac.tar.bz2
libpam-freerdp2-c051f53ba57721d6faff87c96173f70588d57aac.zip
Understanding the design
-rw-r--r--src/pam-freerdp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 6466a06..539cd0d 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -1,18 +1,25 @@
#include <security/pam_modules.h>
#include <security/pam_modutil.h>
+/* Authenticate. We need to make sure we have a user account, that
+ there are remote accounts and then verify them with FreeRDP */
PAM_EXTERN int
pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc, const char **argv)
{
return PAM_IGNORE;
}
+/* Open Session. Here we need to fork a little process so that we can
+ give the credentials to the session itself so that it can startup the
+ xfreerdp viewer for the login */
PAM_EXTERN int
pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, const char **argv)
{
return PAM_IGNORE;
}
+/* Close Session. Make sure our little guy has died so he doesn't become
+ a zombie and eat things. */
PAM_EXTERN int
pam_sm_close_session (pam_handle_t *pamh, int flags, int argc, const char **argv)
{