VCL-1094 - add .\ to windows user login to prevent automatic use of Microsoft accounts
requests: modified AJconnectRequest: if OS type is windows, prepend .\
to $conuser
utils.php: modified sendRDPfile: if OS type is windows, prepend .\
to $userid
diff --git a/web/.ht-inc/requests.php b/web/.ht-inc/requests.php
index 42b7a43..b163c42 100644
--- a/web/.ht-inc/requests.php
+++ b/web/.ht-inc/requests.php
@@ -4374,6 +4374,8 @@
$conuser = $user['unityid'];
if($requestData['reservations'][0]['domainDNSName'] != '' && ! strlen($passwd))
$conuser .= "@" . $requestData['reservations'][0]['domainDNSName'];
+ elseif($requestData['reservations'][0]['OStype'] == 'windows')
+ $conuser = ".\\$conuser";
if(! strlen($passwd))
$passwd = i('(use your campus password)');
if($cluster)
diff --git a/web/.ht-inc/utils.php b/web/.ht-inc/utils.php
index 9c6bcab..7c98834 100644
--- a/web/.ht-inc/utils.php
+++ b/web/.ht-inc/utils.php
@@ -10569,6 +10569,8 @@
$userid = $user["unityid"];
if($request['reservations'][0]['domainDNSName'] != '' && ! strlen($passwd))
$userid .= "@" . $request['reservations'][0]['domainDNSName'];
+ elseif($request['reservations'][0]['OStype'] == 'windows')
+ $userid = ".\\$userid";
print "username:s:$userid\r\n";
print "clear password:s:$passwd\r\n";
print "domain:s:\r\n";