mirror of https://github.com/apache/archiva.git
add ldap bind authenticator enabled as a archiva config
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1445544 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
08297071c2
commit
114eb24636
|
@ -138,6 +138,9 @@ public class DefaultRedbackRuntimeConfigurationAdmin
|
|||
ldapConfiguration.setUseRoleNameAsGroup(
|
||||
userConfiguration.getBoolean( UserConfigurationKeys.LDAP_GROUPS_USE_ROLENAME, false ) );
|
||||
|
||||
ldapConfiguration.setBindAuthenticatorEnabled(
|
||||
userConfiguration.getBoolean( UserConfigurationKeys.LDAP_BIND_AUTHENTICATOR_ENABLED, false ) );
|
||||
|
||||
redbackRuntimeConfiguration.setMigratedFromRedbackConfiguration( true );
|
||||
|
||||
updateRedbackRuntimeConfiguration( redbackRuntimeConfiguration );
|
||||
|
@ -460,6 +463,11 @@ public class DefaultRedbackRuntimeConfigurationAdmin
|
|||
return conf.getLdapConfiguration().isUseRoleNameAsGroup();
|
||||
}
|
||||
|
||||
if ( UserConfigurationKeys.LDAP_BIND_AUTHENTICATOR_ENABLED.equals( key ) )
|
||||
{
|
||||
return conf.getLdapConfiguration().isBindAuthenticatorEnabled();
|
||||
}
|
||||
|
||||
if ( conf.getConfigurationProperties().containsKey( key ) )
|
||||
{
|
||||
return Boolean.valueOf( conf.getConfigurationProperties().get( key ) );
|
||||
|
@ -498,6 +506,11 @@ public class DefaultRedbackRuntimeConfigurationAdmin
|
|||
return getRedbackRuntimeConfiguration().getLdapConfiguration().isUseRoleNameAsGroup();
|
||||
}
|
||||
|
||||
if ( UserConfigurationKeys.LDAP_BIND_AUTHENTICATOR_ENABLED.equals( key ) )
|
||||
{
|
||||
return getRedbackRuntimeConfiguration().getLdapConfiguration().isBindAuthenticatorEnabled();
|
||||
}
|
||||
|
||||
RedbackRuntimeConfiguration conf = getRedbackRuntimeConfiguration();
|
||||
|
||||
if ( conf.getConfigurationProperties().containsKey( key ) )
|
||||
|
|
|
@ -1290,7 +1290,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
|
|||
}
|
||||
|
||||
LdapConfiguration=function(hostName,port,ssl,baseDn,baseGroupsDn,contextFactory,bindDn,password,authenticationMethod,
|
||||
extraPropertiesEntries,writable,useRoleNameAsGroup){
|
||||
extraPropertiesEntries,writable,useRoleNameAsGroup,bindAuthenticatorEnabled){
|
||||
|
||||
var self=this;
|
||||
this.modified=ko.observable(false);
|
||||
|
@ -1342,6 +1342,8 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
|
|||
this.useRoleNameAsGroup=ko.observable(useRoleNameAsGroup);
|
||||
this.useRoleNameAsGroup.subscribe(function(newValue){self.modified(true)});
|
||||
|
||||
//bindAuthenticatorEnabled
|
||||
|
||||
}
|
||||
|
||||
mapLdapConfiguration=function(data){
|
||||
|
@ -1355,7 +1357,7 @@ define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout"
|
|||
}
|
||||
$.log("mapLdapConfiguration done");
|
||||
return new LdapConfiguration(data.hostName,data.port,data.ssl,data.baseDn,data.baseGroupsDn,data.contextFactory,data.bindDn,data.password,
|
||||
data.authenticationMethod,extraPropertiesEntries,data.writable,data.useRoleNameAsGroup);
|
||||
data.authenticationMethod,extraPropertiesEntries,data.writable,data.useRoleNameAsGroup,data.bindAuthenticatorEnabled);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue