ldap-client

Adding multiple ldap sources to spring-security in multi-domain environment

久未见 提交于 2020-01-03 05:16:11
问题 I am trying to add a secondary ldap contextSource to spring security in a split domain environment and I seem to be coming up short. I realize similar questions have been asked before but this is for two separate domains logging into the same application. My first step was to add the secondary context source to my security-config xml file like so: <beans:bean id="secondaryContextSource" class="org.springframework.security.ldap.DefaultSpringSecurityContextSource"> <beans:constructor-arg value=

Spring's LdapTemplate search: PartialResultException: Unprocessed Continuation Reference(s); remaining name '/'

做~自己de王妃 提交于 2020-01-01 12:20:10
问题 I add users through LDAP for a certain application, made with spring. While this works for most of the cases, in some cases, it does not work... The retrieve the users I use: public class LdapUserServiceImpl implements ILdapUserService { @Override public List<LdapUserVO> getUserNamesByQuery(String query) { return ldapTemplate.search( query().countLimit(15) .where("objectClass").is("user") .and("sAMAccountName").isPresent() .and(query() .where("sAMAccountName").like("*" + query + "*") .or(

How to change primary LDAP domain of WSO2 IS 4.5.0

此生再无相见时 提交于 2019-12-12 09:24:14
问题 I would like modify the domain of the primary user storage (based on LDAP), but i can not get successfully. The current domain in user-mgt.xml is dc=wso2,dc=org and I would like to change to dc=foobar,dc=com My modified user-mgt.xml is: ... <UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager"> <Property name="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</Property> <Property name="defaultRealmName">FOOBAR.COM</Property>

Get LDAP user attributes from CAS

天大地大妈咪最大 提交于 2019-12-11 17:45:35
问题 i've got some problems with CAS in conjunction with LDAP now. I want to implement an SSO solution for multiple applications. Authentication works great so far. We want to authorize the users on the base of their roles which are configured in LDAP. The problem is that CAS does not deliver the user roles. I am now so far that I know that the deployerConfigContext.xml needs to be configured. I have also found various tutorials, most work with either the wrong version of CAS or do not do what I

How to change primary LDAP domain of WSO2 IS 4.5.0

我的未来我决定 提交于 2019-12-04 19:45:52
I would like modify the domain of the primary user storage (based on LDAP), but i can not get successfully. The current domain in user-mgt.xml is dc=wso2,dc=org and I would like to change to dc=foobar,dc=com My modified user-mgt.xml is: ... <UserStoreManager class="org.wso2.carbon.user.core.ldap.ReadWriteLDAPUserStoreManager"> <Property name="TenantManager">org.wso2.carbon.user.core.tenant.CommonHybridLDAPTenantManager</Property> <Property name="defaultRealmName">FOOBAR.COM</Property> <Property name="kdcEnabled">false</Property> <Property name="Disabled">false</Property> <Property name=

Spring's LdapTemplate search: PartialResultException: Unprocessed Continuation Reference(s); remaining name '/'

落爺英雄遲暮 提交于 2019-12-04 10:39:58
I add users through LDAP for a certain application, made with spring. While this works for most of the cases, in some cases, it does not work... The retrieve the users I use: public class LdapUserServiceImpl implements ILdapUserService { @Override public List<LdapUserVO> getUserNamesByQuery(String query) { return ldapTemplate.search( query().countLimit(15) .where("objectClass").is("user") .and("sAMAccountName").isPresent() .and(query() .where("sAMAccountName").like("*" + query + "*") .or("sAMAccountName").is(query) .or("displayName").like("*" + query + "*") .or("displayName").is(query)) , new