]> source.dussan.org Git - archiva.git/commitdiff
modify ldap bind authenticator enabled with the ui
authorOlivier Lamy <olamy@apache.org>
Wed, 13 Feb 2013 10:31:44 +0000 (10:31 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 13 Feb 2013 10:31:44 +0000 (10:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1445545 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/general-admin.js
archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/templates/archiva/general-admin.html

index efb9531fae5816a492cd2d1c15a6514e2394c5c7..6f2ab26f784e3dcdfe95e64792b73fb7e1569e16 100644 (file)
@@ -1343,6 +1343,8 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
     this.useRoleNameAsGroup.subscribe(function(newValue){self.modified(true)});
 
     //bindAuthenticatorEnabled
+    this.bindAuthenticatorEnabled=ko.observable(bindAuthenticatorEnabled);
+    this.bindAuthenticatorEnabled.subscribe(function(newValue){self.modified(true)});
 
   }
 
index 680ca8cfedecb914b21825688e67d86656693ca8..d5fba10401dec6208e7615048ee0473af58fa9fd 100644 (file)
                        data-bind="checked: redbackRuntimeConfiguration().ldapConfiguration().useRoleNameAsGroup"/>
               </div>
             </div>
+            <div class="control-group">
+              <label for="ldap-bindAuthenticatorEnabled" class="control-label">
+                ${$.i18n.prop('redback.runtime.ldap.bindAuthenticatorEnabled.label')}
+              </label>
+              <div class="controls">
+                <input type="checkbox" id="ldap-bindAuthenticatorEnabled" name="ldap-bindAuthenticatorEnabled"
+                       data-bind="checked: redbackRuntimeConfiguration().ldapConfiguration().bindAuthenticatorEnabled"/>
+              </div>
+            </div>
 
             <div class="control-group">
               <label for="ldapPassword" class="control-label">