|
@@ -4440,7 +4440,7 @@ MIIFHjCCAwYCCQDpHKOBI+Lt0zANBgkqhkiG9w0BAQUFADBRMQswCQYDVQQGEwJV
|
|
}
|
|
}
|
|
|
|
|
|
get_ambari_properties_method.return_value = configs
|
|
get_ambari_properties_method.return_value = configs
|
|
- raw_input_mock.side_effect = ['a:3', 'b:b', 'host', 'b:2', 'false', 'uid', 'base', 'true']
|
|
|
|
|
|
+ raw_input_mock.side_effect = ['a:3', 'b:b', 'hody', 'b:2', 'false', 'user', 'uid', 'group', 'cn', 'member', 'base', 'true']
|
|
ambari_server.SILENT = False
|
|
ambari_server.SILENT = False
|
|
get_YN_input_method.return_value = True
|
|
get_YN_input_method.return_value = True
|
|
|
|
|
|
@@ -4451,7 +4451,11 @@ MIIFHjCCAwYCCQDpHKOBI+Lt0zANBgkqhkiG9w0BAQUFADBRMQswCQYDVQQGEwJV
|
|
"authentication.ldap.primaryUrl": "a:3",
|
|
"authentication.ldap.primaryUrl": "a:3",
|
|
"authentication.ldap.secondaryUrl": "b:2",
|
|
"authentication.ldap.secondaryUrl": "b:2",
|
|
"authentication.ldap.useSSL": "false",
|
|
"authentication.ldap.useSSL": "false",
|
|
|
|
+ "authentication.ldap.userObjectClass": "user",
|
|
"authentication.ldap.usernameAttribute": "uid",
|
|
"authentication.ldap.usernameAttribute": "uid",
|
|
|
|
+ "authentication.ldap.groupObjectClass": "group",
|
|
|
|
+ "authentication.ldap.groupNamingAttr": "cn",
|
|
|
|
+ "authentication.ldap.groupMembershipAttr": "member",
|
|
"authentication.ldap.baseDn": "base",
|
|
"authentication.ldap.baseDn": "base",
|
|
"authentication.ldap.bindAnonymously": "true",
|
|
"authentication.ldap.bindAnonymously": "true",
|
|
"client.security": "ldap"
|
|
"client.security": "ldap"
|
|
@@ -4465,7 +4469,7 @@ MIIFHjCCAwYCCQDpHKOBI+Lt0zANBgkqhkiG9w0BAQUFADBRMQswCQYDVQQGEwJV
|
|
self.assertTrue(8, raw_input_mock.call_count)
|
|
self.assertTrue(8, raw_input_mock.call_count)
|
|
|
|
|
|
raw_input_mock.reset_mock()
|
|
raw_input_mock.reset_mock()
|
|
- raw_input_mock.side_effect = ['a:3', '', 'b:2', 'false', 'uid', 'base', 'true']
|
|
|
|
|
|
+ raw_input_mock.side_effect = ['a:3', '', 'b:2', 'false', 'user', 'uid', 'group', 'cn', 'member', 'base', 'true']
|
|
|
|
|
|
ambari_server.setup_ldap()
|
|
ambari_server.setup_ldap()
|
|
|
|
|
|
@@ -4473,7 +4477,11 @@ MIIFHjCCAwYCCQDpHKOBI+Lt0zANBgkqhkiG9w0BAQUFADBRMQswCQYDVQQGEwJV
|
|
{
|
|
{
|
|
"authentication.ldap.primaryUrl": "a:3",
|
|
"authentication.ldap.primaryUrl": "a:3",
|
|
"authentication.ldap.useSSL": "false",
|
|
"authentication.ldap.useSSL": "false",
|
|
|
|
+ "authentication.ldap.userObjectClass": "user",
|
|
"authentication.ldap.usernameAttribute": "uid",
|
|
"authentication.ldap.usernameAttribute": "uid",
|
|
|
|
+ "authentication.ldap.groupObjectClass": "group",
|
|
|
|
+ "authentication.ldap.groupNamingAttr": "cn",
|
|
|
|
+ "authentication.ldap.groupMembershipAttr": "member",
|
|
"authentication.ldap.baseDn": "base",
|
|
"authentication.ldap.baseDn": "base",
|
|
"authentication.ldap.bindAnonymously": "true",
|
|
"authentication.ldap.bindAnonymously": "true",
|
|
"client.security": "ldap"
|
|
"client.security": "ldap"
|
|
@@ -4563,10 +4571,14 @@ MIIFHjCCAwYCCQDpHKOBI+Lt0zANBgkqhkiG9w0BAQUFADBRMQswCQYDVQQGEwJV
|
|
"authentication.ldap.primaryUrl": "test",
|
|
"authentication.ldap.primaryUrl": "test",
|
|
"authentication.ldap.secondaryUrl": "test",
|
|
"authentication.ldap.secondaryUrl": "test",
|
|
"authentication.ldap.useSSL": "false",
|
|
"authentication.ldap.useSSL": "false",
|
|
|
|
+ "authentication.ldap.userObjectClass": "test",
|
|
"authentication.ldap.usernameAttribute": "test",
|
|
"authentication.ldap.usernameAttribute": "test",
|
|
"authentication.ldap.baseDn": "test",
|
|
"authentication.ldap.baseDn": "test",
|
|
"authentication.ldap.bindAnonymously": "false",
|
|
"authentication.ldap.bindAnonymously": "false",
|
|
"authentication.ldap.managerDn": "test",
|
|
"authentication.ldap.managerDn": "test",
|
|
|
|
+ "authentication.ldap.groupObjectClass": "test",
|
|
|
|
+ "authentication.ldap.groupMembershipAttr": "test",
|
|
|
|
+ "authentication.ldap.groupNamingAttr": "test",
|
|
"client.security": "ldap", \
|
|
"client.security": "ldap", \
|
|
ambari_server.LDAP_MGR_PASSWORD_PROPERTY: ambari_server.get_alias_string( \
|
|
ambari_server.LDAP_MGR_PASSWORD_PROPERTY: ambari_server.get_alias_string( \
|
|
ambari_server.LDAP_MGR_PASSWORD_ALIAS)
|
|
ambari_server.LDAP_MGR_PASSWORD_ALIAS)
|