spring-security-ldap

Spring security Version 3.1 - Need to match user using either userPrincipalName without domain added OR sAMAccountName (search filter ?)

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-11 17:51:07
问题 All, Our IT dept has decided to change the suffix of our users in AD by adding a different suffix to the userPrincipalName in AD to the actual domain being used. e.g. our domain is xxx.com but userPrincipalName is now "usera@zzz.tech" whereas before it was "usera@xxx.com". The Spring LDAP AD authentication no longer works with this because of this reason I think: userPrincipalName is built up using name + domain when it tries to authenticate. I need to override this somehow - but keep with

Spring security Version 3.1 - Need to match user using either userPrincipalName without domain added OR sAMAccountName (search filter ?)

偶尔善良 提交于 2021-02-11 17:51:05
问题 All, Our IT dept has decided to change the suffix of our users in AD by adding a different suffix to the userPrincipalName in AD to the actual domain being used. e.g. our domain is xxx.com but userPrincipalName is now "usera@zzz.tech" whereas before it was "usera@xxx.com". The Spring LDAP AD authentication no longer works with this because of this reason I think: userPrincipalName is built up using name + domain when it tries to authenticate. I need to override this somehow - but keep with

ldap.SpringSecurityLdapTemplate : Ignoring PartialResultException

只谈情不闲聊 提交于 2020-08-10 19:23:08
问题 This is my frist question and its about the title error. Context: I should implement a Java EE (Spring boot app) with ActiveDirectory (windows) authentication. Just authentication, the authorization is not Active Directory based and is only a query method that search in a table for roles in boolean fields. I mean, is not role-based for authorization. I follow (for starting my app) this guide : https://spring.io/guides/gs/authenticating-ldap/ Now its time to leave the embedded LDAP example and

GET /api/account returns error when LDAP authentication is enabled in Jhipster uaa app

最后都变了- 提交于 2020-01-16 18:08:17
问题 Overview of the issue GET /api/account return 500 error when we have ldap integration in jhipster uaa, the user is present in ldap directory not in the uaa DB, therefore it return 500 error, no user found Motivation for or Use Case It is a doubt, so my question is should we add the user in DB after successful authentication from Ldap or do I need to update the API according to my requirement, which will be the solution. Reproduce the error Add embedded ldap configuration in uaa: @override

GET /api/account returns error when LDAP authentication is enabled in Jhipster uaa app

佐手、 提交于 2020-01-16 18:05:12
问题 Overview of the issue GET /api/account return 500 error when we have ldap integration in jhipster uaa, the user is present in ldap directory not in the uaa DB, therefore it return 500 error, no user found Motivation for or Use Case It is a doubt, so my question is should we add the user in DB after successful authentication from Ldap or do I need to update the API according to my requirement, which will be the solution. Reproduce the error Add embedded ldap configuration in uaa: @override

GET /api/account returns error when LDAP authentication is enabled in Jhipster uaa app

爷,独闯天下 提交于 2020-01-16 18:05:11
问题 Overview of the issue GET /api/account return 500 error when we have ldap integration in jhipster uaa, the user is present in ldap directory not in the uaa DB, therefore it return 500 error, no user found Motivation for or Use Case It is a doubt, so my question is should we add the user in DB after successful authentication from Ldap or do I need to update the API according to my requirement, which will be the solution. Reproduce the error Add embedded ldap configuration in uaa: @override

How to insert new user or modify existing user in LDAP server using Spring boot ldap

北战南征 提交于 2020-01-16 08:47:07
问题 I am using ldap authentication for my Spring boot project and LDAP is succesfully configured as I am able to authenticate existing users but while I am creating a new user it shows error: org.springframework.ldap.odm.core.impl.InvalidEntryException: Can't get Id field from Entry org.springframework.ldap.core.DirContextAdapter I don't know how to generte ID authmatically. Also, I am not able to understand difference between: ldapTemplate.bind(DirContextAdapter obj) ldapTemplate.create