Announcement Announcement Module
Collapse
No announcement yet.
ldaptemplate, acegi and spring-ws almost working together Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    I think you should post the question in the Acegi-security forum; acegi isn't using Spring LDAP in the current version.

    Comment


    • #3
      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, 03:40 PM. Reason: enhance meaning

      Comment

      Working...
      X