Skip to content
Snippets Groups Projects
Commit 76067dc4 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit test ets more ldap parameters

parent 709d18f3
No related branches found
No related tags found
1 merge request!346Resolve "LDAP authentication"
......@@ -85,6 +85,7 @@ public class UserServiceTest extends ServiceTestFunctions {
private LdapService createMockLdapService(String filename, String login, String passwd) throws LDAPException {
configurationService.setConfigurationValue(ConfigurationElementType.LDAP_BASE_DN, "dc=uni,dc=lu");
configurationService.setConfigurationValue(ConfigurationElementType.LDAP_OBJECT_CLASS, "person");
configurationService.setConfigurationValue(ConfigurationElementType.LDAP_FILTER, "memberof=cn=gitlab,cn=groups,cn=accounts,dc=uni,dc=lu");
LdapService ldapService = Mockito.spy(LdapService.class);
ldapService.setConfigurationService(configurationService);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment