Results 1 to 3 of 3

Thread: ldaptemplate, acegi and spring-ws almost working together

  1. #1
    Join Date
    Jun 2006
    Location
    outside boston
    Posts
    108

    Default ldaptemplate, acegi and spring-ws almost working together

    I am using acegi security with spring-ws, utilizing ldap for authentication. Authentication wasn't working giving the following error regarding an unfollowed reference. My example below is using ldapsearch to illustrate the problem - it finds my entry but also gives an unfollowed reference which seems to cause a failure.
    I then added to my local hosts file an entry for mytest.com pointing to the local ldap server and now it works. Looking at the results of the ldapsearch I can see that it finds the account, however it seems to continue to look and wants to follow a reference (which doesn't work if there isn't a dns entry for it). This is probably an ldap config issues, but perhaps it could be handled in the code too. Is there a way to do this search (in aceig security really, but ldapsearch just for testing) so that there are no unfollowed references?
    I hope I explained this issue ok - thanks for any help.
    (note that n.n.n.n below is a mask for the ip address for this example only, not the actual number).
    ... Rich


    c:\kits>ldapsearch -b "dc=mytest,dc=com" -D "CN=LDAP Restricted,CN=Users,DC=my
    test,DC=com" -h n.n.n.n -d -s sub -w "Password" "sAMAccountName=rfarrell"
    sAMaccountName
    CN=Richard D. Farrell,OU=R&D,OU=Technical,DC=mytest,DC=com
    sAMAccountName=rfarrell

    Unfollowed reference(s)
    ref: ldap://mytest.com/CN=Configuration,DC=mytest,DC=com

  2. #2
    Join Date
    Mar 2005
    Location
    Landskrona, Sweden
    Posts
    505

    Default

    I think you should post the question in the Acegi-security forum; acegi isn't using Spring LDAP in the current version.
    Mattias Arthursson
    Jayway AB (www.jayway.se)
    Spring-LDAP project member

  3. #3
    Join Date
    Jun 2006
    Location
    outside boston
    Posts
    108

    Default thanks

    Ok, I will - that probably does make sense. I see it's using import org.acegisecurity.ldap.LdapTemplate;
    Last edited by farrellr; Oct 16th, 2006 at 03:40 PM. Reason: enhance meaning

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •