spring-security-ldap

How to integrate an LDAP user with the PERSON table created by Spring Security in Grails?

人盡茶涼 提交于 2019-12-01 12:08:32
We are creating a grails aplication where we want the user to log in using their Active Directory credentials. Additionally, we want to give the business owner of this application the ability to control who has access to certain links (actions). Because of this we are using the following plugins in our grails application: Spring Security Core Spring Security LDAP Spring Security UI Because we want to empower the business user to create customized roles with certain permissions(actions) on the fly when necessary, we think that the best Spring Security Configuration is the Requestmap database

How to integrate an LDAP user with the PERSON table created by Spring Security in Grails?

心不动则不痛 提交于 2019-12-01 11:18:44
问题 We are creating a grails aplication where we want the user to log in using their Active Directory credentials. Additionally, we want to give the business owner of this application the ability to control who has access to certain links (actions). Because of this we are using the following plugins in our grails application: Spring Security Core Spring Security LDAP Spring Security UI Because we want to empower the business user to create customized roles with certain permissions(actions) on the

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

若如初见. 提交于 2019-11-30 19:00:38
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) { registry.addViewController("/login").setViewName("login"); registry.addViewController("/oauth

Spring-boot LDAP customize UserDetails

核能气质少年 提交于 2019-11-30 15:26:55
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 Environment env; @Override public void init(AuthenticationManagerBuilder auth) throws Exception { AuthMethod

Spring Security LDAP and Remember Me

守給你的承諾、 提交于 2019-11-29 22:59:41
I'm building an app with Spring Boot that has integration with LDAP. I was able to connect successfully to LDAP server and authenticate user. Now I have a requirement to add remember-me functionality. I tried to look through different posts ( this ) but was not able to find an answer to my problem. Official Spring Security document states that If you are using an authentication provider which doesn't use a UserDetailsService (for example, the LDAP provider) then it won't work unless you also have a UserDetailsService bean in your application context Here the my working code with some initial

Spring Boot JWT security - getting to response even without passing token

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 12:45:11
I have been struggling since past 2-3 weeks on this and asked for help in this post earlier, but no help yet. I tried looking into other examples and answers in stackoverflow and finally able to proceed a couple of steps. but now again another obstacle in my way. Really need your help... fyi: I am completely changing the description of this questions as I am able to figure out what I asked before. Problem: 1) When I call a GET request without passing Token in header, I am still getting response from rest service 2) How can I customize the response when there is a Bad request(404), e.g. invalid

How to authenticate against Active Directory via LDAP over TLS?

喜你入骨 提交于 2019-11-29 07:51:32
I have a working proof-of-concept application which can successfully authenticate against Active Directory via LDAP on a test server, but the production application will have to do so over TLS -- the domain controller closes any connection which does not initiate via TLS. I have installed the LDAP browser in Eclipse, and I can indeed bind as myself using TLS in it , but I cannot for the life of me figure out how to get my application to use TLS. ldap.xml : <bean id="ldapAuthenticationProvider" class="my.project.package.OverrideActiveDirectoryLdapAuthenticationProvider"> <!-- this works to

Spring Security LDAP and Remember Me

二次信任 提交于 2019-11-28 19:57:33
问题 I'm building an app with Spring Boot that has integration with LDAP. I was able to connect successfully to LDAP server and authenticate user. Now I have a requirement to add remember-me functionality. I tried to look through different posts (this) but was not able to find an answer to my problem. Official Spring Security document states that If you are using an authentication provider which doesn't use a UserDetailsService (for example, the LDAP provider) then it won't work unless you also

Spring Boot JWT security - getting to response even without passing token

此生再无相见时 提交于 2019-11-28 06:37:20
问题 I have been struggling since past 2-3 weeks on this and asked for help in this post earlier, but no help yet. I tried looking into other examples and answers in stackoverflow and finally able to proceed a couple of steps. but now again another obstacle in my way. Really need your help... fyi: I am completely changing the description of this questions as I am able to figure out what I asked before. Problem: 1) When I call a GET request without passing Token in header, I am still getting

How to authenticate against Active Directory via LDAP over TLS?

前提是你 提交于 2019-11-28 01:31:07
问题 I have a working proof-of-concept application which can successfully authenticate against Active Directory via LDAP on a test server, but the production application will have to do so over TLS -- the domain controller closes any connection which does not initiate via TLS. I have installed the LDAP browser in Eclipse, and I can indeed bind as myself using TLS in it , but I cannot for the life of me figure out how to get my application to use TLS. ldap.xml : <bean id="ldapAuthenticationProvider