Adding property to configure if userAccountControls should be updated in Active Directory after user set his password
This commit is contained in:
1 parent
8430fb0ed3
commit
c2e2a46025
3 files changed
+20
No files matched your search
+11
@@ -445,8 +445,11 @@ module.controller('LDAPCtrl', function($scope, $location, Notifications, Dialog,
|
||||
$scope.instance.config = {};
|
||||
$scope.instance.priority = 0;
|
||||
$scope.syncRegistrations = false;
|
||||
$scope.userAccountControlsAfterPasswordUpdate = true;
|
||||
$scope.instance.config.userAccountControlsAfterPasswordUpdate = true;
|
||||
} else {
|
||||
$scope.syncRegistrations = instance.config.syncRegistrations && instance.config.syncRegistrations == "true";
|
||||
$scope.userAccountControlsAfterPasswordUpdate = instance.config.userAccountControlsAfterPasswordUpdate && instance.config.userAccountControlsAfterPasswordUpdate == "true";
|
||||
}
|
||||
|
||||
$scope.ldapVendors = [
|
||||
@@ -474,6 +477,14 @@ module.controller('LDAPCtrl', function($scope, $location, Notifications, Dialog,
|
||||
}
|
||||
})
|
||||
|
||||
$scope.$watch('userAccountControlsAfterPasswordUpdate', function() {
|
||||
if ($scope.userAccountControlsAfterPasswordUpdate) {
|
||||
$scope.instance.config.userAccountControlsAfterPasswordUpdate = "true";
|
||||
} else {
|
||||
$scope.instance.config.userAccountControlsAfterPasswordUpdate = "false";
|
||||
}
|
||||
})
|
||||
|
||||
$scope.$watch('instance', function() {
|
||||
if (!angular.equals($scope.instance, instance)) {
|
||||
$scope.changed = true;
|
||||
|
||||
+6
@@ -116,6 +116,12 @@
|
||||
<a class="btn btn-primary" data-ng-click="testAuthentication()">Test authentication</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group clearfix" data-ng-show="instance.config.vendor === 'ad' ">
|
||||
<label class="col-sm-2 control-label" for="userAccountControlsAfterPasswordUpdate">Enable Account After Password Update</label>
|
||||
<div class="col-sm-4">
|
||||
<input ng-model="userAccountControlsAfterPasswordUpdate" name="userAccountControlsAfterPasswordUpdate" id="userAccountControlsAfterPasswordUpdate" onoffswitch />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="pull-right form-actions" data-ng-show="create && access.manageUsers">
|
||||
|
||||
Reference in new issue
Block a user