summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_login_wnd.c
diff options
context:
space:
mode:
authornorrarvid <norrarvid@gmail.com>2012-05-31 16:57:17 +0200
committernorrarvid <norrarvid@gmail.com>2012-05-31 16:57:17 +0200
commit10fdc5c17f7aec2df8885d2cf7354f6681af76f6 (patch)
treeb6f06d3c08430ebee080c36a5d9f1744a87ee575 /xrdp/xrdp_login_wnd.c
parent60b052965634be151d88f7011149d0edc71f23d8 (diff)
downloadxrdp-proprietary-10fdc5c17f7aec2df8885d2cf7354f6681af76f6.tar.gz
xrdp-proprietary-10fdc5c17f7aec2df8885d2cf7354f6681af76f6.zip
separate pam authentication for gateways
Diffstat (limited to 'xrdp/xrdp_login_wnd.c')
-rw-r--r--xrdp/xrdp_login_wnd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c
index 2b394837..7065c2ce 100644
--- a/xrdp/xrdp_login_wnd.c
+++ b/xrdp/xrdp_login_wnd.c
@@ -21,7 +21,7 @@
*/
#include "xrdp.h"
-
+#define ACCESS
/*****************************************************************************/
/* all login help screen events go here */
static int DEFAULT_CC
@@ -302,7 +302,11 @@ xrdp_wm_show_edits(struct xrdp_wm* self, struct xrdp_bitmap* combo)
username_set = 1;
}
}
+#ifdef ACCESS
+ if ((g_strncmp(name, "password", 255) == 0) || (g_strncmp(name, "pampassword", 255) == 0))
+#else
if (g_strncmp(name, "password", 255) == 0)
+#endif
{
b->password_char = '*';
if (username_set)