Commit 8e557c1f authored by RemyD's avatar RemyD

1.7.2.0

parent 3dbc3f98
No preview for this file type
......@@ -49,6 +49,13 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
RELEASE NOTES :
==============
Version 1.7.2 :
---------------
Minor version with some news:
Add mobile devices view (Beta for admin only)
Multiple corrected bugs
Version 1.7.0 :
---------------
Add Strong Encryption for Password protection
......
......@@ -32,9 +32,9 @@ function onShowEnd() {
$_INS_METHOD ;
// Getting stats for All Organizations
if ( empty($_REQUEST['search_name'] )) {
$sqlWhere = '';
$sqlWhere = ' AND A.msExchRecipientTypeDetails=1 ';
} else {
$sqlWhere = 'and B.Name like '. quotedb($_REQUEST['search_name'].'%');
$sqlWhere = 'AND A.msExchRecipientTypeDetails=1 and B.Name like '. quotedb($_REQUEST['search_name'].'%');
}
$groupid =$_SESSION['s']['user']['groups'];
// Getting Clients of the user
......
......@@ -298,6 +298,52 @@ class page_action extends tform_actions {
$app->tpl->setVar("AddaltRecipient",$AddaltRecipient);
unset($AddaltRecipient);
// search for Device connected for this user
$sql= "Select id,msExchDeviceFriendlyName,msExchDeviceOS,msExchDeviceTelephoneNumber,msExchDeviceType,msExchFirstSyncTime,msExchDeviceMobileOperator,msExchDeviceAccessState from AD_HOSTED_MSDEVICE where distinguishedName like '%".$thisrec['distinguishedName']."'";
if($_SESSION["s"]["user"]["typ"] == 'admin') {
// $app->error("SQL:".$sql,false);
}
$devices = $app->db->queryAllRecords($sql);
$class1="tbl_row_even";
$class2="tbl_row_uneven";
$thisclass=$class1;
$devicelisthead.="<td>Device Name</td><td>OS</td><td>Telephone</td><td>Type</td><td>First Sync</td><td>Operator</td><td>State<td>";
if(is_array($devices)) {
foreach( $devices as $device) {
if ($thisclass ==$class1) { $thisclass=$class2;} else {$thisclass=$class1;}
$msExchDeviceFriendlyName=$device['msExchDeviceFriendlyName'];
$msExchDeviceOS=$device['msExchDeviceOS'];
$msExchDeviceTelephoneNumber=$device['msExchDeviceTelephoneNumber'];
$msExchDeviceType=$device['msExchDeviceType'];
$msExchFirstSyncTime=$device['msExchFirstSyncTime'];
$msExchDeviceMobileOperator=$device['msExchDeviceMobileOperator'];
switch ($device['msExchDeviceAccessState']) {
case '1':
$msExchDeviceAccessState="Allowed";
break ;
case '2':
$msExchDeviceAccessState="Blocked";
break ;
case '3':
$msExchDeviceAccessState="Quarantined";
break ;
}
$devicelist.="<tr class='".$thisclass."'><td>".$msExchDeviceFriendlyName."</td><td >".$msExchDeviceOS."</td><td>".$msExchDeviceTelephoneNumber."</td><td>".$msExchDeviceType."</td><td>".$msExchFirstSyncTime."</td><td>".$msExchDeviceMobileOperator."</td><td>".$msExchDeviceAccessState."</td> </tr>" ;
//$msExchDeviceUserAgent
//$msExchDeviceOSLanguage
//$msExchDeviceModel
}
} else {
$devicelist = "No devices found.";
}
unset($devices);
$app->tpl->setVar("devicelisthead",$devicelisthead);
$app->tpl->setVar("devicelist",$devicelist);
}
/***************************/
/* End of function */
......@@ -406,6 +452,18 @@ class page_action extends tform_actions {
break;
case 'password':
// Change Password User => do not need to track change.
if (strlen($this->dataRecord['NewPassword']) >2){
$pass= $this->dataRecord['NewPassword'];
$res=$app->db->queryOneRecord("select AES_ENCRYPT('".$pass ."','". $_DB_SALT."') as encode");
$passencode=base64_encode($res['encode']);
$this->dataRecord['NewPassword'] = $passencode;
$act = new action($guid,$this->id,$upn,'<Encrypted_password>','',$passencode,33,$org);
$sql=$act->getSQL();
$app->db->query($sql);
unset($act);
unset($sql);
}
break ;
......
......@@ -33,4 +33,7 @@ INSERT INTO `AD_HOSTED_Setup` (`id`, `sys_groupid`, `sys_userid`, `sys_perm_user
# Upgrade From 1.7.0 to 1.7.1
CREATE OR REPLACE VIEW `AD_HOSTED_CHECK_SECURITY` AS SELECT `sg`.`name` AS `GROUP_NAME`,`AHT`.`sys_groupid` AS `GROUPID_TENANT`,`AHU`.`sys_groupid` AS `GROUPID_USERS`,`AHT`.`name` AS `Tenant`,`AHU`.`extensionAttribute1` AS `ExtensionAttribute1`,`AHU`.`GUID` AS `GUID`, `AHU`.`ID` AS `id`, `AHU`.`company` AS `company`, `AHU`.`userPrincipalName` AS `userPrincipalName`,'0' AS `sys_groupid`,'0' AS `sys_userid`,'r' AS `sys_perm_user`,'r' AS `sys_perm_group`,'' AS `sys_perm_other` FROM ((`sys_group` `sg` join `AD_HOSTED_TENANTS` `AHT`) join `AD_HOSTED_USERS` `AHU`) where ((`sg`.`groupid` = `AHT`.`sys_groupid`) and (`AHT`.`GUID` = `AHU`.`ParentGUID`) and ((`AHU`.`extensionAttribute1` <> `AHT`.`name`) or (`AHU`.`sys_groupid` <> `AHT`.`sys_groupid`)));
INSERT INTO `AD_HOSTED_Setup` (`id`, `sys_groupid`, `sys_userid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `AppVersion`, `AppRevision`, `AppSubversion`, `AppDevVersion`, `CreateDate`, `countryCode`)VALUES (16,0,0,'r','','',1,7,1,0,'2017-05-01 00:00:00:00',0);
\ No newline at end of file
INSERT INTO `AD_HOSTED_Setup` (`id`, `sys_groupid`, `sys_userid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `AppVersion`, `AppRevision`, `AppSubversion`, `AppDevVersion`, `CreateDate`, `countryCode`)VALUES (16,0,0,'r','','',1,7,1,0,'2017-05-01 00:00:00:00',0);
#Upgrade From 1.7.2 to 1.7.3
CREATE TABLE `AD_HOSTED_MSDEVICE` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `GUID` varchar(50) DEFAULT NULL, `ParentGUID` varchar(50) DEFAULT NULL, `cn` varchar(255) DEFAULT NULL, `name` varchar(50) DEFAULT NULL, `distinguishedName` varchar(255) DEFAULT NULL, `whenCreated` varchar(30) DEFAULT NULL, `whenChanged` varchar(30) DEFAULT NULL, `sys_userid` int(11) NOT NULL DEFAULT '0', `sys_groupid` int(11) NOT NULL, `sys_perm_user` varchar(5) NOT NULL DEFAULT '', `sys_perm_group` varchar(5) DEFAULT '', `sys_perm_other` varchar(5) DEFAULT '', `Status` int(11) DEFAULT '0', `msExchDeviceAccessState` int(11) DEFAULT '0', `msExchDeviceAccessStateReason` int(11) DEFAULT '0', `msExchDeviceEASVersion` varchar(50) DEFAULT '0', `msExchDeviceID` varchar(50) DEFAULT '0', msExchDeviceMobileOperator varchar(50) DEFAULT '0', msExchDeviceIMEI varchar(50) DEFAULT '0', msExchDeviceTelephoneNumber varchar(20) DEFAULT '0', msExchDeviceFriendlyName varchar(100) DEFAULT '0', `msExchDeviceModel` varchar(50) DEFAULT '0', `msExchDeviceOS` varchar(50) DEFAULT '0', `msExchDeviceOSLanguage` varchar(50) DEFAULT '0', `msExchDeviceType` varchar(100) DEFAULT '0', `msExchDeviceUserAgent` varchar(100) DEFAULT '0', `msExchFirstSyncTime` varchar(30), `msExchProvisioningFlags` int(2) , `msExchVersion` BigInt(16),`WhenChecked` datetime DEFAULT NULL,'ADsPath' varchar(100) , `uSNChanged` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `GUID` (`GUID`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
\ No newline at end of file
......@@ -100,7 +100,7 @@ if (isset($_REQUEST['id']) && ($_REQUEST['id'])>0) {
$form["tabs"]['Extra'] = array (
'title' => "Extra-Info",
'width' => 100,
'template' => "templates/Users_edit_exchange.htm",
// 'template' => "templates/Users_edit_exchange.htm",
'template' => "templates/Users_extra_info.htm",
'fields' => array (
'telephoneNumber' => array (
......@@ -283,7 +283,7 @@ if (isset($_REQUEST['id']) && ($_REQUEST['id'])>0) {
)
);
$form["tabs"]['Password'] = array (
'title' => "Change Password",
'title' => "Password",
'width' => 100,
'template' => "templates/Users_edit_password.htm",
'fields' => array (
......@@ -320,7 +320,7 @@ if (isset($_REQUEST['id']) && ($_REQUEST['id'])>0) {
);
$form["tabs"]['Mail'] = array (
'title' => "Mail Addresses",
'title' => "Mail Add.",
'width' => 100,
'template' => "templates/Users_edit_mail.htm",
'fields' => array (
......@@ -385,6 +385,24 @@ if (isset($_REQUEST['id']) && ($_REQUEST['id'])>0) {
),
)
);
if($_SESSION["s"]["user"]["typ"] == 'admin') {
$form["tabs"]['Device'] = array (
'title' => "Device",
'width' => 100,
'readonly' => true,
'template' => "templates/Users_device_exchange.htm",
'fields' => array (
'guid' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
),
)
);
}
} else {
// Create Record
......
<p><tmpl_var name="devicelist_desc_txt"></p>
<div class="pnl_listarea">
<table class="table">
<thead class=" form-group-sm">
{tmpl_var name="devicelisthead"}
</thead>
<tbody>
{tmpl_var name='devicelist'}
</tbody>
<tfoot>
</tfoot>
</table>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment