@SpringBootTest(classes=TestConfiguration.class,
webEnvironment=RANDOM_PORT,
properties={"spring.main.web-application-type=servlet","spring.application.name=resourceserver-ldaptive","spring.ldap.embedded.base-dn=dc=bremersee,dc=org","spring.ldap.embedded.credential.username=uid=admin","spring.ldap.embedded.credential.password=secret","spring.ldap.embedded.ldif=classpath:schema.ldif","spring.ldap.embedded.validation.enabled=false","bremersee.ldaptive.enabled=true","bremersee.ldaptive.authentication-enabled=true","bremersee.ldaptive.ldap-url=ldap://localhost:${spring.ldap.embedded.port}","bremersee.ldaptive.use-start-tls=false","bremersee.ldaptive.bind-dn=uid=admin","bremersee.ldaptive.bind-credentials=secret","bremersee.ldaptive.pooled=false","bremersee.ldaptive.search-validator.search-request.base-dn=ou=people,dc=bremersee,dc=org","bremersee.ldaptive.search-validator.search-request.search-filter.filer=uid=anna","bremersee.ldaptive.search-validator.search-request.size-limit=1","bremersee.ldaptive.search-validator.search-request.search-scope=ONELEVEL","bremersee.ldaptive.user-details.user-base-dn=ou=people,dc=bremersee,dc=org","bremersee.ldaptive.user-details.user-find-one-filter=(&(objectClass=person)(uid={0}))","bremersee.ldaptive.user-details.authorities[0]=USER","bremersee.ldaptive.user-details.authority-attribute-name=memberOf","bremersee.ldaptive.user-details.authority-map.developers=ADMIN","bremersee.ldaptive.user-details.user-password-label=","bremersee.ldaptive.user-details.user-password-algorithm=","bremersee.cors.enable=true","bremersee.auth.resource-server=auto","bremersee.auth.any-access-mode=deny_all","bremersee.auth.path-matchers[0].ant-pattern=/public/**","bremersee.auth.path-matchers[0].access-mode=permit_all","bremersee.auth.path-matchers[1].ant-pattern=/protected/**","bremersee.auth.path-matchers[1].http-method=POST","bremersee.auth.path-matchers[1].roles=ROLE_ADMIN","bremersee.auth.path-matchers[2].ant-pattern=/protected/**","bremersee.auth.path-matchers[2].roles=ROLE_USER"})
public class LdaptiveTest
extends Object
The ldap basic auth test.
- Author:
- Christian Bremer