Questions tagged [spring-security-ldap]

285 questions
2
votes
1 answer

how to define DN for ldif file if DC is not provided while configuring with spring boot

I am using embedded ldap server with spring boot for testing my ldif file and its credentials but as I found my ldif file format is bit different than normal ldif as dc is not privided, inside dn only o is given. I have tried different configuration…
2
votes
1 answer

Grails 4: Is spring-security-ldap updated for Grails 4.0?

I am upgrading my Grails 3.3.2 application to Grails 4.0.0.RC2 and all references to org.springframework.security.ldap classes are unresolved. I'm not sure if this is a matter of waiting for a later version of the plugin or if there's something…
mcam11
  • 37
  • 3
2
votes
0 answers

can we use wiremock with ldap service?

I am trying to search but couldn't find an answer to it. I recorded a few http calls for mocking external services but not sure if I can record and use ldap call with wiremock. I am using spring ldap template to connect to ldap…
user1298426
  • 3,467
  • 15
  • 50
  • 96
2
votes
0 answers

LDAP SSO with waffle

I am using a spring 5 web application. I'm totally new to Waffle I would like to use waffle for users to authenticate on my web app with their Windows credentials. Once I get the username, I will do LDAP serach. But I am not sure where I can write…
2
votes
0 answers

Use Spring Boot LDAP authentication with Angular 7

I am working on an application which has two layers: Front End - based on Angular 7, a separate deployable. Back End - Spring Boot, separate deployable. I have a login form in Angular, and when the user submits username and password, I want to use…
Logan
  • 2,445
  • 4
  • 36
  • 56
2
votes
0 answers

disable anonymous access to embedded Spring Boot LDAP server

Which properties I should configure to disable access to the embedded Spring Boot LDAP server via external LDAP browsers ? Currently I have the following settings in my application.setting…
Eduard BABKIN
  • 71
  • 1
  • 5
2
votes
0 answers

Spring Security - Prevent login if missing role

I have a spring application which uses LDAP authentication to authenticate users, combine this with a custom authority populator I can login to my application correctly. However I want to prevent users from logging in entirely if they don't have a…
Blease
  • 1,380
  • 4
  • 38
  • 64
2
votes
1 answer

LDAP and SSO authentication on Spring Boot project

I'm currently working on a new project (from scracth) started with Spring Boot with Spring Security. I need to implements two way of authentication on the same REST API. First the SSO authentication and the LDAP authentication, the choice is made by…
2
votes
1 answer

Spring Security LDAP Authentication throws NO_ATTRIBUTE_OR_VAL error

I can't authenticate against a real LDAP/AD when following spring.io guide: https://spring.io/guides/gs/authenticating-ldap/ The problem I get when autentication agains a real AD/LADP…
olahell
  • 1,931
  • 3
  • 19
  • 35
2
votes
0 answers

spring security binding to LDAP with bindDN - bindCredential

We have an ldap that is configure to bind with a bindDN different from the user logging in and its own bindCredential as well. bindDN cn=appUser,dc=testOrgManagement,dc=com bindCredential: somePassword I am trying to configure Spring security…
Greg Hill
  • 2,148
  • 2
  • 23
  • 27
2
votes
1 answer

Spring Security @Preauthorize and @Async

I am having the @PreAuthorize("hasRole('ADMIN')") check methods when I am calling from the UI (It will take around 2 to 3 hours meanwhile session is getting expired) I am geetting the SecurityContext as null. Tried with MODE_INHERITABLETHREADLOCAL,…
2
votes
0 answers

Mixing multiple LDAP URL's with ldap connection pooling

Im currently feeding a list of LDAP URL's to my spring security configuration -
farrellmr
  • 1,815
  • 2
  • 15
  • 26
2
votes
1 answer

LDAP: Error creating springSecurityFilterChain: AlreadyBuiltException: This object has already been built

Here is my only configuration class: @Configuration @EnableGlobalMethodSecurity(prePostEnabled=true, jsr250Enabled=true) public class SecurityConfiguration extends WebSecurityConfigurerAdapter { @Override protected void…
Philip
  • 4,128
  • 5
  • 31
  • 49
2
votes
1 answer

How to avoid plain text LDAP password in spring security?

I just managed to get my OpenLDAP + Spring Security work, all works fine except one small issue that in spring security xml, I have to put plain text password there:
gfytd
  • 1,747
  • 2
  • 24
  • 47