spring-ldap

Spring embedded ldap server in unit tests

I am currently trying to use an embedded ldap server for unit tests. In Spring Security, you can quickly define an embedded ldap server for testing with the tag with some sample data loaded from the specified ldif. I will be using Spring Ldap to perform ldap operations, and thinking of testing the usual CRUD features of my User servic...

LDAP: How to search for a given uid across multiple organization units?

First off, let me start by saying that I am totally new to working with LDAP. I am working on an application that shares an LDAP server with a few legacy applications. All of the user accounts in the legacy application are organized into Organizational Units by IDs. Each entry has a uid that is the users email address. I can find ...

LdapUserDetails Mapper changed in Spring Security 3.0?

In the earlier versions of the spring security, The LdapUserDetailsMapper used to have an attribute to store custom user attributes like samAccountName, givenName.... But with the recent release in Spring security 3.0 apparently something changed and there is no way to store these details which we can access later from security context. ...

Spring security 2.0.5 LDAP authentication setup w/Active Directory

I've been having a hell of a time trying to get LDAP authentication working with this application (apache Roller). It seems like it would just be "populate the right fields and go", but I'm still attempting to authenticate against the database (the default authentication method). I don't understand what's telling spring-security to use...

Switchback with spring-ldap failover

I have configured multiple LDAP servers as per reference documentation 8.1.1. LDAP Server URLs. I can confirm that if the first server crashes the application starts using successfully the next servers. However I would need the application to switch back to using the first server in the list when it comes available, even though the othe...

Spring Security 3.0 and Active Directory LDAP: DOMAIN\user login

I would like to have users authenticate against an ActiveDirectory LDAP server using the DOMAIN\user.name syntax. I think that should be possible with SpringSec 3.0 since the docs mention an alternative syntax which I guess refers to the DOM\user syntax instead of a bind DN, but the docs don't elaborate further. Is there some way to con...

How to configure Spring Security PasswordComparisonAuthenticator

I can bind to an embedded ldap server on my local machine with the following bean: <b:bean id="secondLdapProvider" class="org.springframework.security.ldap.authentication.LdapAuthenticationProvider"> <b:constructor-arg> <b:bean class="org.springframework.security.ldap.authentication.BindAuthenticator"> <b:constru...

Minimizing SpringLdap dependencies.

I would like to use SpringLDAP to do some simple username/password verification for authentication purposes. WHile the actual jar file is quite small (less than 1 meg) it seems to have a lot of dependencies as listed by link text. By alot i mean it seems to suck in over 50 things many which dont seem right such as spring-jdbc as I dont...

spring ldap test - custom schema?

Is there a way i can load a custom ldap schema when using org.springframework.ldap.test.TestContextSourceFactoryBean? E.g. for unit tests? ...

Spring LDAP 1.3.0 clarify

I have this error, what does it mean? org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001A8, problem 2001 (NO_OBJECT), data 0, best match of: '' ]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-031001A8, problem 2001 (NO_OBJECT...

spring ldap pooling oracle (OID-Ldap) not supported?

i try to do pooling through PoolingContextSource http://static.springsource.org/spring-ldap/site/reference/html/pooling.html and get below error? does oracle(oid) ldap support pooling? java.lang.UnsupportedOperationException: Not supported for this implementation at org.springframework.ldap.pool.factory.PoolingContextSource.getCon...

Spring Ldap: Lookup dn without throwing exception if it isn't there

Using LdapTemplate in Spring LDAP, I have this code: Object object=null; try{ String dn = "cn=readers,ou=groups,dc=mycompany, dc=com"; object = this.ldapTemplate.lookup(dn); } catch(final NameNotFoundException e){ // create Object } But since I've read my Joshua Bloch I know that exceptions should not be used for control f...