From: Chris R. <chr...@me...> - 2000-09-26 14:37:47
|
Jay Zeemer <jz...@ed...> wrote: > Salutations all, > Great module does everything I have needed it to do so far. > Although I am having a problem getting it to do one last thing. I am > trying to query a customers ldap server and according to them the branch > I need to protected via a firewall. I can feed an LDAP url into Netscape > and see the info, but when I query it using the perl module I get this > error back: > > Return code: 10 > Message: LDAP_REFERRAL : The server is referring the client to another > server. The response will contain a list of URL's MessageID: 2 > > but no new url. Can anyone offer me information, urls, or a good prayer > ;) > > Thank you > Jay Zeemer You have to bind using LDAPv3 (the default version is LDAPv2!) in order to get legal referrals back. Netscape will still try to return referrals to LDAPv2 clients, which might be confusing Net::LDAP. (This would be a Netscape bug rather than a Net::LDAP bug IMHO.) Check you are binding using LDAPv3. If you are, then create the connection with debug set to 2 (or 8.) This will dump out the packets returned from the server in hex (or pretty-printed). This may help debugging the problem. Cheers, Chris |