Questions tagged [spring-security-ldap]
285 questions
3
votes
0 answers
userDetailsService AND authenticationProvider
I'd like to authenticate my users against our ActiveDirectory and then extend the user data with other data from database.
My code works if I set AuthenticationManagerBuilder.userDetailsService() OR…

BenoitD
- 525
- 1
- 6
- 16
3
votes
1 answer
Spring boot ldap security
Hello I have a problem creating simple login with Ldap. I have downloaded getting started project from spring.io website: Getting started LDAP.
It is working perfectly with ldif file but I want to replace it with running ldap server. I have tried it…

user3551808
- 95
- 2
- 8
3
votes
1 answer
Use Active Directory Authentication in Spring Boot OAuth2 Authorization Server
I'm trying it set up a proof of concept using Spring Boot and OAuth2. I've set up some project very similar to the ones outlined here:
https://spring.io/guides/tutorials/spring-boot-oauth2/
and here:…

Tim Webster
- 684
- 8
- 18
3
votes
0 answers
Spring Security 4 EhCache Java Config
I have implemented Spring Security 4.0.1 with database authentication and ldap authentication successfully. All configurations have been made via Java config.
In order to enable Spring Security to cache users for our REST API, especially when ldap…

aemaem
- 935
- 10
- 20
3
votes
0 answers
Spring security, LDAP and SSO
I am trying to build an application where login is done by siteminder SSO. Once login is done I need to get the user info(like roles,permissions) for logged in user from LDAP and put in session.
Aslo I am using spring MVC to expose REST services. I…

Arajit
- 133
- 3
- 15
3
votes
1 answer
Spring Java Config for LDAPTemplate.ignorePartialResultException
Appologies for the long question, but I in short I'm wondering how do I set the org.springframework.ldap.core.LdapTemplate#ignorePartialResultException flag using Spring Java Config.
The long winded question is...
I want to use our companies Active…

user1232555
- 1,099
- 3
- 11
- 18
3
votes
1 answer
How to change password using Spring LDAP and Spring security
I'm using latest version of both Spring LDAP and Spring security. Also, I'm using annotation based configuration and I have no XML configuration files.
What I'm trying to achieve is really basic, I want to be able to allow users to change their…

Christian Goudreau
- 411
- 4
- 13
3
votes
0 answers
Grails Spring Security not redirecting to saved request after successful login
I have a Grails 2.2.5 application that uses Grails Spring Security 1.2.7.3, Spring Security LDAP 1.0.6, and Spring Security CAS 1.0.5 plugins for authentication/authorization. Logging in, roles, single-sign-on all works fine. But for some reason the…

grantmcconnaughey
- 10,130
- 10
- 37
- 66
2
votes
0 answers
Spring Boot LDAP getting error 32 but only on accurate credentials
There are other similar posts here, but none of them have answers that worked for me.
I have a spring boot application where I am trying to use LDAP authentication. When I input an invalid username, I get "bad credentials", and the logs say "Failed…

Kevin Lewis
- 45
- 4
2
votes
1 answer
Why do I get javax.naming.NameNotFoundException: [LDAP: Error code 32 - No Such Object]; remaining name '/' after upgrading spring-ldap on findUser?
After upgrading to spring-ldap 2.4.0 from 2.0.2.RELEASE, we are experiencing this error when trying to find an existing ldap user. We haven't changed any code or configuration except for the .xsd schema files that need to be included. I haven't been…

Alison Graham
- 31
- 7
2
votes
1 answer
Spring Boot getting Roles from LDAP
I am trying to use LDAP for spring authentication and authorization. Even though I am successfully authenticating users, I couldn't get roles from LDAP yet.
dn: ou=Roles,dc=example,dc=org
objectClass: top
objectClass: organizationalUnit
ou:…

Dogukan Evcil
- 313
- 4
- 15
2
votes
1 answer
Filter granted authorities by checking memberOf
I'm sorry if it's a duplicate, but I've been really strugling with this topic. I need to filter search result of memberOf. I'm trying to map those results into Granted Authorities. I'm basing my solution on this repo…

Fajeczny
- 379
- 1
- 2
- 10
2
votes
2 answers
Spring Security ProviderNotFoundException when user authentication fails
I have setup a LDAP Custom Authentication provider similar to the example here - https://www.baeldung.com/spring-security-authentication-provider
There is a Login Controller to handle login errors and to check if the user is in an approved list. The…

Shankar
- 2,625
- 3
- 25
- 49
2
votes
0 answers
Spring Security - Get Credentials returns null
I have a springboot app, using ActiveDirectory for authentication. I intent to use login credentials for further querying the AD. Unfortunately the getCredentials() method return null.
My Configuration:
@Configuration
public class WebSecurityConfig…

FreddCha
- 465
- 2
- 8
- 15
2
votes
0 answers
Spring Security - Active Directory Get Custom User details
I am having a challenge extracting original user details from the LdapUserDetailsImpl such as the getUsername() returns null
I have the following Java classes
Custom User Class
public class AppUserDetails extends LdapUserDetailsImpl {
public…

FreddCha
- 465
- 2
- 8
- 15