649 questions
0
votes
0
answers
70
views
Spring LDAP 2 to 3 Migration - Cannot search without binding
I am working on Spring LDAP migration from 2 to 3 in a Java agent running on Windows Active Directory server.
In one piece of my code I authenticate as Administrator and perform a LDAP search using ...
Best practices
0
votes
2
replies
37
views
Spring: How to use dynamic credentials for LDAP authentication?
I'm building a Spring service that uses
its own database to authenticate administrators and staff,
a central LDAP server (managed by someone else) to authenticate regular customers.
Whenever Spring ...
1
vote
2
answers
91
views
Cannot read accountExpires attribute from Active Directory with Spring LDAP
I am using Spring Boot/Spring Data Ldap.
When I query users I cannot read accountExpires attribute, even when the property is shown in GetADUser.
I tried something like this:
return readTemplate()....
2
votes
1
answer
50
views
Spring LDAP : Verbose mode to see LDIF sended
I use Spring Boot with Spring LDAP to OpenLDAP.
Is there a way to view in debug mode the command send to the LDAP server ?
Like a "verbose mode" to view the LDIF send to OpenLDAP.
Thanks in ...
0
votes
0
answers
111
views
Spring Boot Reactive with Webflux: Security with LDAP bind fails
Upgraded an Spring Boot application.
Java 11 > Java 21
Spring Boot 2.3.3 > 3.4.4
Spring Zuul > Spring Cloud Gateway
Hystrix Fallback > Resiliance4j
Using Spring Security and Spring LDAP
...
0
votes
1
answer
203
views
Retrieve more than 1000 records in LDAP using springboot
I'm using ldaptemplate to retrieve many records from Active Directory using sring-ldap-core 3.2.
This is the code I'm using
AndFilter filter = new AndFilter();
filter.and(new EqualsFilter(&...
0
votes
1
answer
146
views
Spring ldapTemplate search() doesn't return dn attribute
I've got a fairly straight forward program that performs an LDAP search based on a CN and maps all the returned attributes, here's the program:
import java.util.ArrayList;
import java.util....
0
votes
1
answer
139
views
Springboot LDAP integration
I am trying to integrate LDAP with my Spring-boot application. I can see the following DN for my account in my Active Directory Explorer.
CN=John, Doe,OU=ITS,OU=Users,OU=_OBDE,DC=demodemo,DC=net
We ...
0
votes
1
answer
428
views
Why is my Spring LDAP search failing to return a user
I am trying to write a Spring LDAP program to search for a user's record in an Active Directory server, but it will not return any records. The same search in Apache Directory Studio works.
When I ...
0
votes
2
answers
98
views
Ldap attribues for testing in Spring Boot with ApacheDS
I am trying to simulate a real Microsoft LDAP tree.
The application is working against a real LDAP, but using an inmemory LDAP server (ApacheDS) for testing in Spring Boot but it doesn't work. I can't ...
-1
votes
1
answer
272
views
How to find all groups in LDAP using Spring which falls under the same CN?
I have this requirement where I need to find all groups in LDAP which comes under the same common name(CN). For example, I am able to find the definition for one using the below piece of code.
("...
1
vote
0
answers
339
views
How to add LDAP login using Spring boot 3.x.x + Vaadin 24?
WebSecurityConfig for LDAP login. I have used Spring boot 3.x.x and vaadin 24. I want use vaadin not controller but how to replace. In vaadin clcik on button then login form open using LDAP. How to do ...
0
votes
1
answer
934
views
How to retrieve authorities/roles when authenticating with spring security and LDAP?
First of all I want to say I don't understand LDAP fully, so if I need to provide more information about the LDAP, please say so.
I have a spring boot application (Java 17, spring boot 3.2.0) which ...
1
vote
1
answer
312
views
Spring LDAP - multiple bases in one or more request(s)
I need to make a query that will search for all users, located in two different OUs.
For example :
base1: "OU=ou2,OU=ou1"
base2 : "OU=ou3,OU=ou1"
How can I do this with ...
0
votes
0
answers
181
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 ...