PM-3817
This commit is contained in:
@@ -362,10 +362,8 @@ try {
|
|||||||
}
|
}
|
||||||
if (isset($_POST['auth_dn'])) {
|
if (isset($_POST['auth_dn'])) {
|
||||||
$auth_dn = $_POST['auth_dn'];
|
$auth_dn = $_POST['auth_dn'];
|
||||||
} else {
|
|
||||||
$auth_dn = "";
|
|
||||||
}
|
|
||||||
$aData['USR_AUTH_USER_DN'] = $auth_dn;
|
$aData['USR_AUTH_USER_DN'] = $auth_dn;
|
||||||
|
}
|
||||||
$RBAC->updateUser($aData);
|
$RBAC->updateUser($aData);
|
||||||
G::auditLog("AssignAuthenticationSource", "User Name: ".$aData['USR_USERNAME'].' User ID: ('.$aData['USR_UID'].') assign to '.$aData['USR_AUTH_TYPE']);
|
G::auditLog("AssignAuthenticationSource", "User Name: ".$aData['USR_USERNAME'].' User ID: ('.$aData['USR_UID'].') assign to '.$aData['USR_AUTH_TYPE']);
|
||||||
echo '{success: true}';
|
echo '{success: true}';
|
||||||
|
|||||||
@@ -553,7 +553,7 @@ LoadAuthForm = function(){
|
|||||||
authForm.getForm().findField('usr_uid').setValue(user.data.USR_UID);
|
authForm.getForm().findField('usr_uid').setValue(user.data.USR_UID);
|
||||||
authForm.getForm().findField('auth_source').setValue(user.auth.AUTH_SOURCE_NAME);
|
authForm.getForm().findField('auth_source').setValue(user.auth.AUTH_SOURCE_NAME);
|
||||||
authForm.getForm().findField('auth_dn').setValue(user.data.USR_AUTH_USER_DN);
|
authForm.getForm().findField('auth_dn').setValue(user.data.USR_AUTH_USER_DN);
|
||||||
if (user.auth.AUTH_SOURCE_NAME=='ProcessMaker'){
|
if (user.auth.AUTH_SOURCE_NAME=='ProcessMaker (MYSQL)'){
|
||||||
authForm.getForm().findField('auth_dn').disable();
|
authForm.getForm().findField('auth_dn').disable();
|
||||||
}else{
|
}else{
|
||||||
authForm.getForm().findField('auth_dn').enable();
|
authForm.getForm().findField('auth_dn').enable();
|
||||||
|
|||||||
Reference in New Issue
Block a user