spring-security-ldap

How to deep into the LDAP tree to find a user who can authenticate in spring ldap security

社会主义新天地 提交于 2020-01-06 06:27:40
问题 I want to use spring security ldap authentication. However I would like to traverse ldap tree recursively. Unfortunately I can find a user only one level or depth. For example , my user tree likes below: ouUsers: has users (user1, user2 etc) and subtrees (ouGenel, ouYatay). And subtrees have subtrees and users. I would like to traverse the ldap tree recursively to authenticate in spring security project. My spring authencation code is below, what should I change in my code? : @Override public

How to deep into the LDAP tree to find a user who can authenticate in spring ldap security

我怕爱的太早我们不能终老 提交于 2020-01-06 06:27:12
问题 I want to use spring security ldap authentication. However I would like to traverse ldap tree recursively. Unfortunately I can find a user only one level or depth. For example , my user tree likes below: ouUsers: has users (user1, user2 etc) and subtrees (ouGenel, ouYatay). And subtrees have subtrees and users. I would like to traverse the ldap tree recursively to authenticate in spring security project. My spring authencation code is below, what should I change in my code? : @Override public

Spring LDAP/Active Directory with SQL

为君一笑 提交于 2020-01-05 04:33:08
问题 I am trying to enable both JDBA and Active Directory Authentication , i made great progress but currently i am stuck as userDetailsService is trying to compare the password in LdapUserDetails which does not exist . When checking the log i see it is able to query the user and authenticate and get the roles correctly. I know i should use bindService or so , but i couldn't find till now how to do that. Below is what i did . in WebSecurityConfigurerAdapter @Autowired public void configureGlobal

ldap.rememberMe.usernameMapper.userDnBase (multiple instances of?) (searchSubtree search capability)

自古美人都是妖i 提交于 2020-01-03 00:55:10
问题 I have a Grails application that is successfully using the latest spring-security-core:2.0-RC4 and spring-security-ldap:2.0-RC2 . Users can login perfectly using grails.plugin.springsecurity.ldap.search.base setting for LDAP login authentication. There is a different setting for the rememberMe userDnBase (mapper) and that setting is: grails.plugin.springsecurity.ldap.rememberMe.usernameMapper.userDnBase The LDAP authentication grails.plugin.springsecurity.ldap.search.base is set to ou=people

How to change password using Spring LDAP and Spring security

大城市里の小女人 提交于 2019-12-24 00:49:26
问题 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 password from my web application. I've found that I could execute that request through DirContext.modifyAttributes. This method requires two attributes, the first one is the current userDn, which I'm not sure how to easily get through Spring. I'm

Grails - Spring security plugin ldap: remember me not working

﹥>﹥吖頭↗ 提交于 2019-12-23 01:07:17
问题 I have a Grails application with spring-security-ldap plugin installed and configured with Active Directory specific options. Grails version: 2.1.1. spring-security-core plugin version: 2.0-RC2 spring-security-ldap plugin version: 2.0-RC2 Everything works fine: users log in to the application validating against the Active Directory and their groups are retrieved in order to control the access to the different pages. My problem: "remember me" option doesn't work. I have configured the

spring-security-oauth2 2.0.7 refresh token UserDetailsService Configuration - UserDetailsService is required

徘徊边缘 提交于 2019-12-18 21:49:41
问题 I would have one question regarding the configuration of spring-security-oauth2 2.0.7 please. I am doing the Authentication using LDAP via a GlobalAuthenticationConfigurerAdapter: @SpringBootApplication @Controller @SessionAttributes("authorizationRequest") public class AuthorizationServer extends WebMvcConfigurerAdapter { public static void main(String[] args) { SpringApplication.run(AuthorizationServer.class, args); } @Override public void addViewControllers(ViewControllerRegistry registry)

Spring-boot LDAP customize UserDetails

允我心安 提交于 2019-12-18 17:10:12
问题 I'm using LDAP authentication in spring-boot application (configuration based on annotations). I would like to customize UserDetails object. Default UserDetails implementation is LdapUserDetailsImpl . I would like to extend this class and add some extra iterfaces and bind into spring-security. My config class: @Configuration protected static class AuthenticationConfiguration extends GlobalAuthenticationConfigurerAdapter { @Autowired private UserService userService; @Autowired private

LDAP: Empty binddn“” and Authentication type becomes simple from none

我是研究僧i 提交于 2019-12-13 03:47:00
问题 Am Developing an application in Spring MVC & JPA with Spring Security. Now Integrating the OUD (Oracle Unified Directory) through LDAP. While User authentication the response from the LDAP in OUD log file is CONNECT conn=909681 from ******* to *******:1636 protocol=LDAPS Bind REQ conn=909681 op=0 msgID=1 type=SIMPLE dn="" version=3 BindRES conn=909681 op=0 msgID=1 result=1 message="The directory server could not find a network group for the bind dn "" because the client connection does not

Fetching LDAP attribute memberof inside Grails Spring application

不问归期 提交于 2019-12-12 04:22:21
问题 I am stuck possibly at a very stupid question, trying to implement LDAP role based authentication/authorization in a Grails application (bookstore) using spring-security-core and spring-security-ldap plugins. I created a custom UserDetailsContextMapper and trying to map my LDAP role with application role. However, the memberof attribute is never returned in the attributes. UserDetails mapUserFromContext(DirContextOperations ctx, String username, Collection authorities) { Attributes attributes