Dear Matt

 I tried the ldap.zip file.

 It seems the role and user model had some modifications

 Would you mind to paste them ?

 ex: role.getMembers missed .

 Regards

 Chenztw

On 4/18/07, Matt Raible <[EMAIL PROTECTED]> 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]




--
ChenRanHow

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

Reply via email to