# Search-result referrals in Net::LDAP

**URL:** <https://www.ruby-forum.com/t/search-result-referrals-in-net-ldap/62049>\
**Category:** Ruby\
**Created:** [May 31, 2006, 12:17am UTC](https://www.ruby-forum.com/t/search-result-referrals-in-net-ldap/62049 "2006-05-31T00:17:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackhedd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9de053/32.png) [@blackhedd](https://www.ruby-forum.com/u/blackhedd)\
**Post date:** [May 31, 2006, 12:17am UTC](https://www.ruby-forum.com/t/search-result-referrals-in-net-ldap/62049/1 "2006-05-31T00:17:41Z")

</div>

All, I received an email from a gentleman who had a problem using  
Net::LDAP  
(library at Rubyforge) to query an Active Directory (A/D) server. He got  
the  
following error message:

This happens because many A/D servers are configured to return what LDAP  
calls “Search-result referrals”- an additional LDAP URL that you are  
encouraged to query in order to get additional relevant results. The  
Net::LDAP library was not supporting this result-type. I’m in the  
process of  
adding it in now and will produce a patch shortly. Has anyone else  
encountered this problem?

Another problem you are likely to see when querying A/D is that you  
can’t  
get back more than 1000 results no matter what you try. This is due to  
an  
“LDAP control” that A/D uses to prevent large queries. This has already  
been  
fixed in the HEAD revision of Net::LDAP.
