diff --git a/api/src/test/resources/application.yaml b/api/src/test/resources/application.yaml index 73d0d9b..d578563 100644 --- a/api/src/test/resources/application.yaml +++ b/api/src/test/resources/application.yaml @@ -17,7 +17,7 @@ loginsvc: url: "ldaps://some.domain.com:636/" search-filter: "(samaccountname={1})" service-account: - account-pattern: "CN=%s,OU=Users,OU=CORP Accounts,DC=corp,DC=dsarena,DC=com" + account-pattern: "CN=svc-ldap,OU=Users,OU=Accounts,DC=domain,DC=subdomain,DC=com" in-config-account: username: "svc-ldap" password: "password" diff --git a/api/src/test/scala/za/co/absa/loginsvc/rest/config/provider/ConfigProviderTest.scala b/api/src/test/scala/za/co/absa/loginsvc/rest/config/provider/ConfigProviderTest.scala index 22ac159..d6e2c7b 100644 --- a/api/src/test/scala/za/co/absa/loginsvc/rest/config/provider/ConfigProviderTest.scala +++ b/api/src/test/scala/za/co/absa/loginsvc/rest/config/provider/ConfigProviderTest.scala @@ -46,7 +46,7 @@ class ConfigProviderTest extends AnyFlatSpec with Matchers { activeDirectoryLDAPConfig.domain shouldBe "some.domain.com" activeDirectoryLDAPConfig.searchFilter shouldBe "(samaccountname={1})" activeDirectoryLDAPConfig.order shouldBe 2 - activeDirectoryLDAPConfig.serviceAccount.username shouldBe "CN=svc-ldap,OU=Users,OU=CORP Accounts,DC=corp,DC=dsarena,DC=com" + activeDirectoryLDAPConfig.serviceAccount.username shouldBe "CN=svc-ldap,OU=Users,OU=Accounts,DC=domain,DC=subdomain,DC=com" activeDirectoryLDAPConfig.serviceAccount.password shouldBe "password" activeDirectoryLDAPConfig.enableKerberos shouldBe None activeDirectoryLDAPConfig.attributes shouldBe Some(Map("mail" -> "email", "displayname" -> "displayname"))