Questions tagged [spring-security-ldap]
285 questions
0
votes
1 answer
Cast object when authenticating on tests
I have following method in my Spring application
public static String getCurrentUserStudentId() {
return ((LdapPerson) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getID();
}
This works on the application run, but when…

mjgirl
- 1,214
- 7
- 24
- 42
0
votes
1 answer
how to get user entered password in spring security 3
I have implemented UserDetailsService and overriden loadUserByUsername(String username), here i need User entered password.
I want to authenticate against LdapTemplate authenticate(username,password).
I have searched a lot but dint get it.
Please…

Ramesh Kotha
- 8,266
- 17
- 66
- 90
0
votes
2 answers
Configure spring security ldap-server attribute to use different url based on deployed environment
We are using spring security and have it working well. I am trying to figure out one thing that has not being obvious - how do I configure ldap-server attribute to use different url based on deployed environment?
This is what I have that is…

Sharath
- 65
- 1
- 7
0
votes
1 answer
LDAP error : Cannot find a partition
Am using Apache Directory Studio to build LDAP with Spring Security application.
LDIF file:
version: 1
dn: o=mojo
objectClass: organization
objectClass: top
o: mojo
dn: ou=users,o=mojo
objectClass: organizationalUnit
objectClass: top
ou:…

Ramesh Kotha
- 8,266
- 17
- 66
- 90
0
votes
1 answer
Security Model in Spring-Integration
Please help me understand, how security is implemented in Spring-integration. Is it like if flow is suppose JMS Queue-> Spring-integration -> Webservice, then 2 channels in spring-integration one for JMS and other for WS would connect. So is it like…

Chakradhar K
- 501
- 13
- 40
0
votes
1 answer
How to configure AD authentication and DB authurization in spring security 3.1
I have gone through below question
Spring Security 3 Active Directory Authentication, Database Authorization
Instead of delegate method we can configure in only spring security xml file.
Can you please guide me How we can do that.
This is working…

Kamahire
- 2,149
- 3
- 21
- 50
0
votes
1 answer
Spring Security; custom-filter and user-service-ref not working together
I'm trying to implement spring security authorization using a custom filter.
security.xml

Unknown
- 863
- 2
- 14
- 29
0
votes
1 answer
How can I create a LdapUserDetailsMapper which can take patterns for attribute values?
I have created a custom LdapUserDetailsMapper class to map extended properties to a custom UserDetails class that contains extra properties for things like displayName, telephoneNumber and department to name a few. I managed to populate these…

Brett Ryan
- 26,937
- 30
- 128
- 163
-1
votes
1 answer
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.LdapTemplate : No results found…

Kévin
- 497
- 10
- 37
-1
votes
1 answer
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.

Ayu Widi
- 1
- 3
-1
votes
1 answer
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()
…

ankit giri
- 388
- 3
- 11
-1
votes
1 answer
@EnableResourceServer not available in springboot application
The resource server is not detected in the sprign application.Not able to get the reason behind.
Please help on this
This is my pom

dheeraj
- 195
- 2
- 19
-1
votes
1 answer
Restful LDAP Authentication Service using springboot
I am writing a program that validates the username and password sent over HTTP POST and validate against ldap and sends the response back to the user whether the validation is success or not.
My Websecurity Configurer implementation
package…

Sree
- 921
- 2
- 12
- 31
-1
votes
1 answer
Prevent anonymous bind in LDAP
Am developing the spring application with LDAP. Is there is any option to prevent the anonymous bind in LDAP. Am using Apache Directory Studio. Even I am giving the simple bind. Anonymous bind is permitted
Pl. help me to fix this.
Thanks in Advance

Aadhavan G S
- 87
- 1
- 2
- 18