Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
Best practices
0 votes
1 replies
18 views

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 ...
Gustav Blaß's user avatar
1 vote
2 answers
89 views

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()....
Amir Pashazadeh's user avatar
2 votes
1 answer
49 views

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 ...
dherla's user avatar
  • 23
0 votes
0 answers
107 views

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 ...
DJViking's user avatar
  • 911
0 votes
1 answer
191 views

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(&...
sergiopf's user avatar
0 votes
1 answer
141 views

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....
alessandro ferrucci's user avatar
0 votes
1 answer
136 views

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 ...
Sam's user avatar
  • 3,094
0 votes
1 answer
423 views

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 ...
Big Ed's user avatar
  • 1,284
0 votes
2 answers
97 views

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 ...
sergiopf's user avatar
-1 votes
1 answer
267 views

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. ("...
Shivayan Mukherjee's user avatar
1 vote
0 answers
337 views

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 ...
Mansi Adroja's user avatar
0 votes
1 answer
931 views

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 ...
Viktor Eriksson's user avatar
1 vote
1 answer
308 views

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 ...
Pythorogus's user avatar
0 votes
0 answers
180 views

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 ...
Shaon Kanti Dhar's user avatar
-1 votes
1 answer
85 views

I encounter this issue with spring LDAP: class javax.naming.ldap.LdapName cannot be cast to class java.lang.String (javax.naming.ldap.LdapName is in module java.naming of loader 'bootstrap'; java.lang....
Mathieu Thauvoye's user avatar
0 votes
1 answer
558 views

I am using Spring LDAP and have entries (person) with a multivalued attribute named Department. i.e each person can have zero or more Department attributes. I am trying to make a search (filter) and ...
jimny's user avatar
  • 103
3 votes
1 answer
235 views

I want to delete attribute with multiple values but it ignores this while successfully deletes another attribute with specific value in directory. Attribute attr1 = new BasicAttribute("fooAttr&...
ace's user avatar
  • 12.1k
1 vote
1 answer
994 views

Below is my spring security ldap authentication code snippet I am able to authenticate admin user as shown in CASE 2. However, when I am not able to authenticate user1 as shown in CASE 1 for a ...
cNgamba's user avatar
  • 131
0 votes
1 answer
1k views

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 ...
ilovestackoverflow's user avatar
0 votes
1 answer
2k views

I am trying to create a YAML Route to perform a simple query to a LDAP server and to output the result to the log. My route looks like following: - route: id: route-561c from: uri: timer:...
Jirmed's user avatar
  • 451
2 votes
1 answer
4k views

I am attempting to connect an application to LDAP after upgrading to: OpenJDK 17, SpringBoot 3.0.2, Gradle 8.0 Previously, we had a homegrown solution to connect to the active directory that will no ...
kkellogg's user avatar
1 vote
0 answers
288 views

I am trying to map my java pojo (Parent and child classes) with LDAP entry using spring ODM @Entry as below The ldap entry looks as below //child class public class ChildClass extends ParentClass{ ...
bpetlur's user avatar
  • 383
0 votes
1 answer
93 views

@Attribute(name = "manager") private String manager; ldapTemplate.create(user); The following code works when I have manager if I format the string like: "manager": "CN=...
Peter's user avatar
  • 5,924
0 votes
1 answer
245 views

I am getting the below issue when using a native image. With JVM-based uber jar, no issues. Spring Boot 3.0.1 openjdk version "17.0.5" 2022-10-18 OpenJDK Runtime Environment GraalVM CE 22.3....
Ladu anand's user avatar
1 vote
0 answers
76 views

Typically, we configure a vanilla LdapAuthenticationProvider with a Dn and a password. auth .ldapAuthentication() .contextSource() .url(env.getProperty("spring.ldap.urls&...
ThunderMead's user avatar
0 votes
0 answers
114 views

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 ...
Gestalt's user avatar
  • 187
3 votes
0 answers
3k views

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....
ThunderMead's user avatar
1 vote
1 answer
15k views

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://*** ...
Ultiorra's user avatar
0 votes
1 answer
197 views

What would be the syntax for LDAP for the below scenario: Where sAMAccountName = GRA-* without $. I want the records which are highlighted in green. This is my current LADP Filter for your reference: ...
M.G. Puru's user avatar
1 vote
1 answer
2k views

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, ...
signalhouse's user avatar
0 votes
1 answer
1k views

I found a very simple example for LDAP authentication, which works just fine using an embedded LDAP server: https://github.com/asbnotebook/spring-boot/tree/master/spring-security-embedded-ldap-example ...
nn4l's user avatar
  • 975
0 votes
1 answer
1k views

I have a requirement that user account will be locked if user tries with multiple incorrect password and alternatively admin can also lock the account, for incorrect pwd attempts I can use the ...
unknown_11's user avatar
0 votes
1 answer
1k views

I want to create a ldap account (with password) or change account passwords with spring-ldap, so I follow some instructions to export a certificate from AD and import it to jdk, after that I change ...
acerphenix's user avatar
5 votes
4 answers
18k views

WebSecurityConfigurerAdapter: @Component @EnableWebSecurity public class SecurityConfiguration extends WebSecurityConfigurerAdapter { @Override protected void configure(HttpSecurity httpSecurity)...
emoleumassi's user avatar
  • 5,179
0 votes
0 answers
828 views

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 ...
bggoxp's user avatar
  • 13
2 votes
1 answer
2k views

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 ...
Alison Graham's user avatar
2 votes
1 answer
1k views

To test ma LDAP service. I set up the embedded LDAP config like that: spring: ldap: base: OU=Internals,DC=int,DC=springboot,DC=dev username: uid=admin password: secret urls: ldap://...
SaebaAtHot's user avatar
0 votes
1 answer
1k views

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)...
yoann let's user avatar
0 votes
1 answer
881 views

Our organization stores signing certificates in Active Directory. We are using anonymous bind to search for them at a base DN (e.g. OU=MY ORG,dc=mydc,dc=org). I have been trying to use the Spring ...
SteveB's user avatar
  • 533
2 votes
0 answers
286 views

I am using Spring Data LDAP to return all members of a particular AD group . The AD group has more than 40,000 members . When running the below query , I am only able to retrieve 6000 members . How do ...
Ladu anand's user avatar
2 votes
1 answer
3k views

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 ...
Kévin's user avatar
  • 577
-1 votes
1 answer
965 views

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....
Kévin's user avatar
  • 577
0 votes
1 answer
1k views

I have a requirement to replace the LDAP Authentication from a gateway microservice with Azure AD B2C, Is there any standard way or steps to replace that with newer authentication method or we need to ...
Sarthak Garg's user avatar
0 votes
1 answer
242 views

I’m trying to connect the LDAP using the following code: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-...
Tomasz S.'s user avatar
0 votes
1 answer
345 views

https://docs.spring.io/spring-ldap/docs/1.3.2.RELEASE/reference/html/pooling.html open fun create(): LdapTemplate { return LdapTemplate(PooledContextSource( PoolConfig().apply { ...
Venot's user avatar
  • 101
0 votes
0 answers
2k views

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 ...
user3073180's user avatar
0 votes
0 answers
2k views

I am working on a spring boot Gradle application that has a dependency on spring-ldap. The issue is, I need to use our firm's custom dependency for ldap operation which has an older spring-ldap ...
Chintan Patel's user avatar
1 vote
1 answer
2k views

I'm trying to create an user with password in the Active Directory installed in a virtual machine. I have imported the certificate generated from the Active Directory into the JVM that runs in the ...
herbert's user avatar
  • 327
0 votes
0 answers
8k views

I'm new in this domain and trying to bind with active directory using spring ldap client in java. I have already googled this and tried every given solution on internet but it didn't work for me. I'm ...
M A.'s user avatar
  • 949
0 votes
1 answer
3k views

I'm kind of newbie on Spring Boot and have a Jndi code that authenticates to an LDAP server just fine. But now i want to migrate my code to Spring LDAP, but get [LDAP: error code 49 - 80090308: ...
Ricardo Álvarez's user avatar

1
2 3 4 5
13