summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2016-04-16 12:51:42 -0400
committerspeidy <speidy@gmail.com>2016-05-12 17:22:18 -0400
commita42cb4842c8e9f98cd174ca4d268d505e9faf24e (patch)
tree77a5bbf5ecaeae125054042666d028a211502a36
parent551d7dd58f934945b8f4508168b55caa086a6d05 (diff)
downloadxrdp-proprietary-a42cb4842c8e9f98cd174ca4d268d505e9faf24e.tar.gz
xrdp-proprietary-a42cb4842c8e9f98cd174ca4d268d505e9faf24e.zip
neutrinordp:
o support for passing domain name to module, using xrdp.ini module specific parameter o reduce rail trace logging
-rw-r--r--neutrinordp/xrdp-neutrinordp.c29
-rw-r--r--neutrinordp/xrdp-neutrinordp.h2
2 files changed, 19 insertions, 12 deletions
diff --git a/neutrinordp/xrdp-neutrinordp.c b/neutrinordp/xrdp-neutrinordp.c
index e2acc6de..cde63fef 100644
--- a/neutrinordp/xrdp-neutrinordp.c
+++ b/neutrinordp/xrdp-neutrinordp.c
@@ -423,6 +423,10 @@ lxrdp_set_param(struct mod *mod, char *name, char *value)
{
g_strncpy(mod->username, value, 255);
}
+ else if (g_strcmp(name, "domain") == 0)
+ {
+ g_strncpy(mod->domain, value, 255);
+ }
else if (g_strcmp(name, "password") == 0)
{
g_strncpy(mod->password, value, 255);
@@ -1466,6 +1470,7 @@ lfreerdp_pre_connect(freerdp *instance)
instance->settings->username = g_strdup(mod->username);
instance->settings->password = g_strdup(mod->password);
+ instance->settings->domain = g_strdup(mod->domain);
if (mod->client_info.rail_support_level > 0)
{
@@ -1549,7 +1554,7 @@ lrail_WindowCreate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
struct rail_window_state_order wso;
UNICONV* uniconv;
- LLOGLN(0, ("llrail_WindowCreate:"));
+ LLOGLN(10, ("lrail_WindowCreate:"));
uniconv = freerdp_uniconv_new();
mod = ((struct mod_context *)context)->modi;
memset(&wso, 0, sizeof(wso));
@@ -1565,7 +1570,7 @@ lrail_WindowCreate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
window_state->titleInfo.string, window_state->titleInfo.length);
}
- LLOGLN(0, ("lrail_WindowCreate: %s", wso.title_info));
+ LLOGLN(10, ("lrail_WindowCreate: %s", wso.title_info));
wso.client_offset_x = window_state->clientOffsetX;
wso.client_offset_y = window_state->clientOffsetY;
wso.client_area_width = window_state->clientAreaWidth;
@@ -1625,7 +1630,7 @@ void DEFAULT_CC
lrail_WindowUpdate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
WINDOW_STATE_ORDER *window_state)
{
- LLOGLN(0, ("lrail_WindowUpdate:"));
+ LLOGLN(10, ("lrail_WindowUpdate:"));
lrail_WindowCreate(context, orderInfo, window_state);
}
@@ -1635,7 +1640,7 @@ lrail_WindowDelete(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
{
struct mod *mod;
- LLOGLN(0, ("lrail_WindowDelete:"));
+ LLOGLN(10, ("lrail_WindowDelete:"));
mod = ((struct mod_context *)context)->modi;
mod->server_window_delete(mod, orderInfo->windowId);
}
@@ -1648,7 +1653,7 @@ lrail_WindowIcon(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
struct mod *mod;
struct rail_icon_info rii;
- LLOGLN(0, ("lrail_WindowIcon:"));
+ LLOGLN(10, ("lrail_WindowIcon:"));
mod = ((struct mod_context *)context)->modi;
memset(&rii, 0, sizeof(rii));
rii.bpp = window_icon->iconInfo->bpp;
@@ -1673,7 +1678,7 @@ lrail_WindowCachedIcon(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
{
struct mod *mod;
- LLOGLN(0, ("lrail_WindowCachedIcon:"));
+ LLOGLN(10, ("lrail_WindowCachedIcon:"));
mod = ((struct mod_context *)context)->modi;
mod->server_window_cached_icon(mod, orderInfo->windowId,
window_cached_icon->cachedIcon.cacheEntry,
@@ -1690,7 +1695,7 @@ lrail_NotifyIconCreate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
struct rail_notify_state_order rnso;
UNICONV* uniconv;
- LLOGLN(0, ("lrail_NotifyIconCreate:"));
+ LLOGLN(10, ("lrail_NotifyIconCreate:"));
uniconv = freerdp_uniconv_new();
mod = ((struct mod_context *)context)->modi;
@@ -1742,7 +1747,7 @@ void DEFAULT_CC
lrail_NotifyIconUpdate(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
NOTIFY_ICON_STATE_ORDER *notify_icon_state)
{
- LLOGLN(0, ("lrail_NotifyIconUpdate:"));
+ LLOGLN(10, ("lrail_NotifyIconUpdate:"));
lrail_NotifyIconCreate(context, orderInfo, notify_icon_state);
}
@@ -1752,7 +1757,7 @@ lrail_NotifyIconDelete(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
{
struct mod *mod;
- LLOGLN(0, ("lrail_NotifyIconDelete:"));
+ LLOGLN(10, ("lrail_NotifyIconDelete:"));
mod = ((struct mod_context *)context)->modi;
mod->server_notify_delete(mod, orderInfo->windowId,
orderInfo->notifyIconId);
@@ -1767,7 +1772,7 @@ lrail_MonitoredDesktop(rdpContext *context, WINDOW_ORDER_INFO *orderInfo,
struct mod *mod;
struct rail_monitored_desktop_order rmdo;
- LLOGLN(0, ("lrail_MonitoredDesktop:"));
+ LLOGLN(10, ("lrail_MonitoredDesktop:"));
mod = ((struct mod_context *)context)->modi;
memset(&rmdo, 0, sizeof(rmdo));
rmdo.active_window_id = monitored_desktop->activeWindowId;
@@ -1797,7 +1802,7 @@ lrail_NonMonitoredDesktop(rdpContext *context, WINDOW_ORDER_INFO *orderInfo)
struct mod *mod;
struct rail_monitored_desktop_order rmdo;
- LLOGLN(0, ("lrail_NonMonitoredDesktop:"));
+ LLOGLN(10, ("lrail_NonMonitoredDesktop:"));
mod = ((struct mod_context *)context)->modi;
memset(&rmdo, 0, sizeof(rmdo));
mod->server_monitored_desktop(mod, &rmdo, orderInfo->fieldFlags);
@@ -1809,7 +1814,7 @@ lfreerdp_post_connect(freerdp *instance)
{
struct mod *mod;
- LLOGLN(0, ("lfreerdp_post_connect:"));
+ LLOGLN(10, ("lfreerdp_post_connect:"));
mod = ((struct mod_context *)(instance->context))->modi;
g_memset(mod->password, 0, sizeof(mod->password));
diff --git a/neutrinordp/xrdp-neutrinordp.h b/neutrinordp/xrdp-neutrinordp.h
index feddda4b..4760742b 100644
--- a/neutrinordp/xrdp-neutrinordp.h
+++ b/neutrinordp/xrdp-neutrinordp.h
@@ -159,6 +159,7 @@ struct mod
tintptr wm;
tintptr painter;
tintptr si;
+
/* mod data */
int sck;
int width;
@@ -173,6 +174,7 @@ struct mod
int vrev;
char username[256];
char password[256];
+ char domain[256];
int bool_keyBoardSynced ; /* Numlock can be out of sync, we hold state here to resolve */
int keyBoardLockInfo ; /* Holds initial numlock capslock state */