[X2Go-Commits] libpam-x2go.git - build-main (branch) updated: e2dbf52d86c5c6e1734c7df1b17d8ced9589e82a

X2Go dev team git-admin at x2go.org
Sat Apr 27 13:45:30 CEST 2013


The branch, build-main has been updated
  discards  645af42abcb4b3ac922705751d134d31d8959912 (commit)
  discards  edbe36fbccacebc2de6d15d0bfa3d480dd69a135 (commit)
  discards  48df96792e41ff14f101fbb9829a059b0cdd3879 (commit)
       via  e2dbf52d86c5c6e1734c7df1b17d8ced9589e82a (commit)
       via  0b41e3977e41d07997f008a8344f9ab70e4d213d (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (645af42abcb4b3ac922705751d134d31d8959912)
            \
             N -- N -- N (e2dbf52d86c5c6e1734c7df1b17d8ced9589e82a)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 src/pam-freerdp.c |   34 ++++++++++++++--------------------
 1 file changed, 14 insertions(+), 20 deletions(-)

The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 8331a27..9774bfb 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -32,8 +32,6 @@
 
 #define PAM_TYPE_DOMAIN  1234
 
-static char * global_domain = NULL;
-
 /* Either grab a value or prompt for it */
 static char *
 get_item (pam_handle_t * pamh, int type)
@@ -45,10 +43,6 @@ get_item (pam_handle_t * pamh, int type)
 		if (pam_get_item(pamh, type, (const void **)&value) == PAM_SUCCESS && value != NULL) {
 			return strdup(value);
 		}
-	} else {
-		if (global_domain != NULL) {
-			return strdup(global_domain);
-		}
 	}
 	/* Now we need to prompt */
 
@@ -86,7 +80,7 @@ get_item (pam_handle_t * pamh, int type)
 	}
 
 	struct pam_response * responses = NULL;
-	if (conv->conv(1, &pmessage, &responses, conv->appdata_ptr) != PAM_SUCCESS || responses == NULL) {
+	if (conv->conv(1, &pmessage, &responses, conv->appdata_ptr) != PAM_SUCCESS) {
 		return NULL;
 	}
 
@@ -109,17 +103,6 @@ get_item (pam_handle_t * pamh, int type)
 		}
 	}
 
-	if (retval != NULL) { /* Can't believe it really would be at this point, but let's be sure */
-		if (type != PAM_TYPE_DOMAIN) {
-			pam_set_item(pamh, type, (const void *)retval);
-		} else {
-			if (global_domain != NULL) {
-				free(global_domain);
-			}
-			global_domain = strdup(retval);
-		}
-	}
-
 	return retval;
 }
 
@@ -129,6 +112,9 @@ get_item (pam_handle_t * pamh, int type)
 		goto done; \
 	}
 
+/* TODO: Make this a build thing */
+#define XFREERDP "/usr/bin/xfreerdp"
+
 /* 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
@@ -351,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,


hooks/post-receive
-- 
libpam-x2go.git (Remote login session via X2Go (PAM module))

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libpam-x2go.git" (Remote login session via X2Go (PAM module)).




More information about the x2go-commits mailing list