mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #3650: Use NebulaTemplate to set the
default value of DEFAULT_AUTH
This commit is contained in:
parent
aa43470233
commit
d89ba1692a
@ -356,11 +356,18 @@ void OpenNebulaTemplate::set_conf_default()
|
||||
#*******************************************************************************
|
||||
# Auth Manager Configuration
|
||||
#*******************************************************************************
|
||||
# DEFAULT_AUTH
|
||||
# SESSION_EXPIRATION_TIME
|
||||
# ENABLE_OTHER_PERMISSIONS
|
||||
# DEFAULT_UMASK
|
||||
#*******************************************************************************
|
||||
*/
|
||||
// DEFAULT_AUTH
|
||||
value = "default";
|
||||
|
||||
attribute = new SingleAttribute("DEFAULT_AUTH",value);
|
||||
conf_default.insert(make_pair(attribute->name(),attribute));
|
||||
|
||||
// SESSION_EXPIRATION_TIME
|
||||
value = "0";
|
||||
|
||||
|
@ -736,11 +736,6 @@ bool UserPool::authenticate_external(const string& username,
|
||||
//Initialize authentication request and call the driver
|
||||
nd.get_configuration_attribute("DEFAULT_AUTH",default_auth);
|
||||
|
||||
if (default_auth.empty())
|
||||
{
|
||||
default_auth = "default";
|
||||
}
|
||||
|
||||
ar.add_authenticate(default_auth, username,"-",token);
|
||||
|
||||
authm->trigger(AuthManager::AUTHENTICATE, &ar);
|
||||
|
Loading…
x
Reference in New Issue
Block a user