Hi Guys,
Appufse 1.9.4 spring mvc, with acegi

Today i have swapped out dao authentication for ldap (active directory) and
i am almost there. I followed the tutorial posted and can connect to ldap
and find the user.

In the LdapTemplate class

public Object searchForSingleEntry(final String base, final String filter,
final Object[] params,
        final LdapEntryMapper mapper) {
        return execute(new LdapCallback() {
                public Object doInDirContext(DirContext ctx)
                    throws NamingException {
                    NamingEnumeration results = ctx.search(base, filter,
params, searchControls);

                    if (!results.hasMore()) {
                        throw new IncorrectResultSizeDataAccessException(1,
0);
                    }

                    SearchResult searchResult = (SearchResult)
results.next();

                    if (results.hasMore()) {
                        // We don't know how many results but set to 2 which
is good enough
                        throw new IncorrectResultSizeDataAccessException(1,
2);
                    }

I get an exception at                     if (results.hasMore()) {

The searchResult  object contains my details as retrieved from ldap.

and i have the following exception

org.acegisecurity.ldap.LdapDataAccessException: LdapCallback;Unprocessed
Continuation Reference(s); nested exception is
javax.naming.PartialResultException: Unprocessed Continuation Reference(s);
remaining name 'DC=example,DC=com'

Anyone shed any light on this, has be baffeled.

When i use an ldap broswer and search for a user, i do not see the attribute
userPassword as an attribute.?

Cheers guys
-- 
View this message in context: 
http://www.nabble.com/Authenticating-with-ldap-almost-there-tf3591637s2369.html#a10037977
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to