cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jrvickers>
Subject Cocoon LDAP Referral=Follows
Date Mon, 05 Nov 2007 10:18:44 GMT

Hi All,

I have inherited a cocoon based project that uses LDAP for authentication.

When I run an LDAP query on the domain I login to, it is fine. When I run an
LDAP query on another domain, with the credentials of another user, it runs
OK, but returns no attributes. If I ask the user to run the same query, when
they are logged in to their own domain, they still receive nothing.

In both instances, I always get the following error:

512 [LDAPTransformer] Error in LDAP-Query:
javax.naming.PartialResultException: [LDAP: error code 9 - Referral:

Because the users of this system could be in any domain, I need them to
authenticate against their own local domain. i.e. in the ldap-execute
method, I am building the ldap query from values entered by the user. To add
to my troubles, there is no set organisational unit structure, so i cannot
even specify an exact location of the user account in AD.

Here is my code:

  <ldap:execute-query >

    String domain = null;
    String username = null;

    domain = <xsp-request:get-parameter name="domain"/>;
    domain = (domain == null) ? "" : domain;
    username = <xsp-request:get-parameter name="username"/>;
    username = (username == null) ? "" : username;









I have looked into this error, and it is suggested that this is thrown, as
no result was returned from the first query. It is suggested that you should
specify Referral as "Follow" - but I do not know how!?

Has anybody else been successful with this?


View this message in context:
Sent from the Cocoon - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message