Cheers Matt,

Your correct i am following the one from the website
(http://appfuse.org/display/APF/LDAP+Authentication) but the code in my
example below is from debugging the acegic classes. I think i have over
analyzed the problem. went thru the log files and found

LDAP: error code 49 - 80090308: LdapErr: DSID-0C09033

which according to : http://www.directory-info.com/LDAP/LDAPErrorCodes.html

LDAP_INVALID_CREDENTIALS: Indicates that during a bind operation one of the
following occurred:

    * The client passed either an incorrect DN or password.
    * The password is incorrect because it has expired, intruder detection
has locked the account, or some other similar reason.

So given that my password is correct as it is my own, would this have
anything to do with the fact i cannot see userPassword in my ldap schema
using a regular ldap browser?


mraible wrote:
> 
> What tutorial are you talking about?  The one on the wiki doesn't
> require any code AFAIK. Attached is an LDAP version of AppFuse I
> created a while back.  It doesn't fully work, but it might have what
> you're looking for. It uses Spring LDAP to do most of the heavy
> lifting.
> 
> Matt
> 
> On 4/17/07, reddeagle9 <[EMAIL PROTECTED]> wrote:
>>
>> 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]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
>  
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
View this message in context: 
http://www.nabble.com/Authenticating-with-ldap-almost-there-tf3591637s2369.html#a10039874
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