280 questions
0
votes
0
answers
176
views
LDAP Reset Password errror javax.naming.NamingException: connection has been closed; remaining name when resetting password using LdapTemplate
I'm working with Spring LDAP and trying to reset a user's password via an LDAP connection. I’ve set up the connection successfully, but when I attempt to change a user's password, I encounter the ...
0
votes
1
answer
783
views
Spring Authorization Server in multi security config
I have a requirement of multiple security configurations in a Spring Boot 3.0 application where postman API calls need to do oauth and application authentication would be through ...
0
votes
0
answers
178
views
How to use proxy server while authenticate using LDAP in Spring Boot?
How to set proxy server ip in LdapContextSource while authenticated using LdapTemplate.authenticate()
Actually for security purposes we don't have direct access to AD server. So how to set proxy IP ...
0
votes
1
answer
419
views
How can Spring Security validate a AD user whose Authentication Provider is configured on WebLogic?
Use-case:
I have a Spring Boot application v2.7.x. For the security, i am trying to configure a SecurityFilterChain that will point to an authentication provider (LDAP) that is configured in WebLogic ...
2
votes
0
answers
440
views
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 ...
0
votes
1
answer
3k
views
How to resolve LDAP error code 49 - AcceptSecurityContext Error during Spring Security LDAP authentication in a multi-forest domain?
I'm getting this error when I'm trying to authenticate a user against forest domain.
[Request processing failed; nested exception is org.springframework.ldap.AuthenticationException: [LDAP: error ...
1
vote
0
answers
57
views
Spring security unit test
@Override
protected void configure(AuthenticationManagerBuilder authBuilder) throws Exception {
if (ldap) {
authBuilder.ldapAuthentication()
....
0
votes
1
answer
1k
views
Query LDAP groups in Spring via LDAPTemplate - Authorization needed and how?
I'm in the process of developing a Spring Boot application that can be connected to an LDAP server for authentication and some (limited) query purposes.
By now, authentication and my needed query ...
0
votes
1
answer
5k
views
Spring Security LDAPs authentication
i need help in Spring Security authentication with Ldap.
I try lot of things found online but i'm going crazy on this.
Basiclly i need to pass username and password to ldaps server
this is my pom.xml ...
1
vote
1
answer
5k
views
Spring Boot: LDAP Error: error code 49 - 80090308: LdapErr: DSID-0C090439, comment: AcceptSecurityContext error, data 52e
I have a Spring Boot Webapplication which is working with dao authentication like a charm. But i want to implement active directory authentication too.
For testing purposes I've modified my ...
1
vote
1
answer
618
views
Spring Security returns "Bad Credentials" with no exception on LDAP based authentication
I am trying to create Sprint Boot, Spring Security 6, LDAP Server (external not embedded) based authentication application. When I spin up the app and provide the username (uid) and password on the ...
0
votes
0
answers
114
views
How to Authenticate to LDAP server when the available managerPassword is not in cleartext but hashed using a secure salt?
EDIT- The server currently hashes the incoming cleartext user password and compares that with the hash that is stored in the server. My problem is that my application is sending the password already ...
3
votes
0
answers
3k
views
How does ActiveDirectoryLdapAuthenticationProvider work without explicitly specifying user credentials?
Following is a typical example of what I've found on the Internet for Authenticating to Active Directory using LDAP.
package com.test;
import org.springframework.security.config.annotation....
1
vote
1
answer
15k
views
LDAP: error code 49 - 80090308: LdapErr: DSID-0C09044E, comment: AcceptSecurityContext error, data 52e, v2580 (first time using ldap)
I am having problem with ldap on spring, I know what that error means but idk what i am doing wrong in the config of the connection
this is my application.properties :
spring.ldap.urls=ldap://***
...
1
vote
1
answer
2k
views
LDAP query to retrieve users from a specific group
I am trying to write a query to extract the users from an LDAP group. I tried several queries to retrieve the users from a specific group but none of them seem to have worked until now. For example, ...
1
vote
0
answers
439
views
No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' available
I am getting bean creation exception when trying to run a Spring Boot application with Spring LDAP Security and Thymeleaf. The application runs when authenticating via username and password but throws ...
4
votes
2
answers
7k
views
spring security 5.7 - multiple authentication provider without WebSecurityConfigurerAdapter
I'm using spring security 5.7 and WebSecurityConfigurerAdapter is deprecated.
I want use multiple Authentication Provider(Ldap and Dao) but ldap provider not working and spring security just call ...
1
vote
1
answer
882
views
Spring Security 5.7 LdapUserDetailsMapper Authorties Empty
Before upgrading to Spring Boot 2.7.2 (Spring Security 5.7.2) the following LDAP authentication configuration worked.
Ldap related application properties:
spring.ldap.urls = ldaps://ldap-one:636, ...
1
vote
1
answer
2k
views
Ldap AD Authentication in Spring Security
I have a login page in my application where I want to validate the entered username/password against Ldap AD. I am thinking of creating a bind and get a context. If bind is successful that means user ...
0
votes
1
answer
615
views
Spring Security LDAP Authentication should authenticate only one user
I want my rest api to be restricted only for a particular user (SuperUser).
I am using Spring security the below code works fine if I give SuperUser/Password , it only checks for the correctness of ...
0
votes
0
answers
824
views
LDAP Authentication in Sping with multiple URLs
I have an application that uses LDAP Spring for authentication which works as expected.
Now we are trying to support providing multiple URLs to authenticate on and I found that this is already ...
2
votes
1
answer
2k
views
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 ...
8
votes
1
answer
11k
views
How to configure ldap in spring-security 5.7 while retaining basic form login
I'm trying to configure my webSecurity to use both ldap and basic authentication (jdbc) with the new component-based security configuration (no WebSecurityConfigurerAdapter) but I can't get it to use ...
0
votes
1
answer
1k
views
Spring security Ldap authentication Exception : Not an instance of DirContext
I'm trying to connect to a Ldap server (host by the company, don't have much info about it), using Spring Security, I have this bean:
@Override
public void configure(AuthenticationManagerBuilder auth)...
0
votes
1
answer
5k
views
Java Spring - Active Directory- How can I Get AD User Details (telNumber, full name, mail , address, description)?
In my college project i would like to get user informations from an AD Server such as the telephone number, the mail, the full name after an authentication.
So i use the default spring security login ...
2
votes
1
answer
3k
views
Retrieve user information from LDAP with Spring
I need to retrieve user information based on the email of the user.
I have see some subject discussing about this but i don't find one with ldapTemplate that respond to the problem.
Actually a user ...
-1
votes
1
answer
964
views
Springboot with LDAP Auth No results found for search, base: ''
I'm trying to connect my SpringBoot app to the ldap server. (not embedded)
The problem while i'm trying to connect is :
try auth
2022-02-26 20:31:12.593 INFO 19692 --- [nio-8080-exec-2] o.s.ldap.core....
-1
votes
1
answer
234
views
Dynamically configure LDAP server Properties using text file
I currently working with LDAP using Spring Security with XML Configuration. I need advice about how can i put attributes like URL, port, manager-dn and password in external file.
<ldap-server id=&...
2
votes
1
answer
2k
views
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: ...
1
vote
1
answer
3k
views
How to authenticate a ldap user from any ldap server (except embedded server) using bind authentication mechanism in spring security
I want to implement ldap authentication in an existing spring boot project for my company. So for that I am trying to implement one sample spring boot app first, in which I will authenticate a ldap ...
0
votes
0
answers
2k
views
Test LDAP connection using LDAP search
Our Spring application deployed on Linux is failing with Acces Denied to issue a token. As the same code and setup works on other VM's I am speculating there could be an issue connecting to the LDAP ...
0
votes
1
answer
2k
views
Spring Security LDAP "bind must be completed on the connection"
I need to create a SpringBoot service and provide an authentication service using LDAP.
I followed this example and it works fine for me using an embedded local ldap server (as suggested into the ...
2
votes
1
answer
1k
views
LdapAuthenticationProvider::authenticate locks account after a single call with wrong password
This is/was a java issue see Retrying a failed authentication on multiple LDAP servers can lead to users blocked
We have an issue with Active Directory/LDAP user accounts becoming locked after doing a ...
0
votes
1
answer
322
views
How do curly brackets in Spring Security Ldap Authentication Filter work?
While I was doing research to implement LDAP Authentication using Spring Security, I saw that Group Search and User Search filters were usually implementing with {0}s. Such as:
public void configure(...
0
votes
1
answer
385
views
How can I decrypt wcrypt data from ldap?
I need to fetch data from a LDAP using Java and SpringBoot. I managed to retrieve the OpenOTP data from the Ldap, but I found it's encrypted using wcrypt and I have no idea of how to decrypt it in ...
0
votes
0
answers
732
views
Getting a user's groups from LDAP in Spring Boot
Our legacy application is deployed on Glassfish, and uses javax.security to manage authorization.
The following code retrieves from LDAP the Active Director groups the user is a member of:
try{
...
-1
votes
1
answer
160
views
Migrating from spring to spring boot (spring security auth not working)
@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().and().headers().and().anonymous().disable()
.formLogin().loginPage("/...
1
vote
0
answers
1k
views
LDAPS Implementation with Spring Boot
I am currently implementing Active Directory Authentication over LDAPS into a Spring Boot Application.
This means the AD Server uses SSL, now it seems like Spring Boot does not offer support for this.
...
0
votes
1
answer
2k
views
Active Directory LDAP Authentication using Spring Boot and Java
I'm trying to authenticate with organization ldap server. When I enter the credentials I'm facing this error. Can someone help?
Uncategorized exception occured during LDAP processing; nested exception ...
1
vote
0
answers
1k
views
Spring-Security 5.0.0 STATELESS session
I have a simple application that uses spring security to authenticate over LDAP. My Config is as follows
http
.csrf()
.disable();
http
....
0
votes
0
answers
181
views
LDAP Custom AuthnticationProvider Spring
I have to validate browser credentials against my LDAP. But Username/Password given in Browser has to be used to connect to LDAP, its not fixed userDN and password.After authentication, I get the ...
2
votes
1
answer
354
views
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 ...
0
votes
1
answer
424
views
Spring LDAP Basic Auth caching some clients but not others
I am using a org.springframework.security.ldap.authentication.LdapAuthenticationProvider.LdapAuthenticationProvider(LdapAuthenticator authenticator, LdapAuthoritiesPopulator authoritiesPopulator) to ...
0
votes
0
answers
2k
views
Spring security LDAP- Error LDAP: error code 50 - Insufficient Access Rights
I am trying to use LDAP authentication with spring sceurity. I followed the article https://spring.io/guides/gs/authenticating-ldap/ for implementation. I am getting error "[LDAP: error code 50 - ...
3
votes
2
answers
7k
views
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 ...
0
votes
1
answer
944
views
Returning a cookie or token with LDAP authentication in Spring security
All:
I have a basic program for Ldap authentication which returns a "Principal User "
package com.bpm.cbl.premium.controller;
import java.security.Principal;
import org.springframework....
0
votes
1
answer
3k
views
Does LDAP store user password in clear text or as encoded text?
I am going through this spring LDAP integration article: https://spring.io/guides/gs/authenticating-ldap/
This article contains a sample LDIF file, where the passwords are presented in clear text.
dn: ...
1
vote
1
answer
807
views
Spring Security - LDAP Authentication and DB Authorization
In my SpringBoot application, I want to authenticate my user again Enterprise AD and then Authorize (Grant Authorities) from an application-specific database table.
Eg: User A authenticated from LDAP ...
0
votes
1
answer
2k
views
Bad Credentials when authenticating with active directory LDAP with Spring Security
I am trying to use Spring Security to perform authentication and authorization in front of my REST controller, which is also secured with SSL. The code I have is mostly derived from the example at ...
1
vote
1
answer
2k
views
Spring Security with LDAP - error after login
I've managed to make my Spring project work with Security and LDAP, but only with an LDIF file. Now I'm trying to make it work by configuring it with an LDAP server, but I only get this far - I get no ...