Method: Net::LDAP#paged_searches_supported?
- Defined in:
- lib/net/ldap.rb
permalink #paged_searches_supported? ⇒ Boolean
– Convenience method to query server capabilities. Only do this once per Net::LDAP object. Note, we call a search, and we might be called from inside a search! MUST refactor the root_dse call out. ++
1278 1279 1280 1281 1282 1283 1284 1285 |
# File 'lib/net/ldap.rb', line 1278 def paged_searches_supported? # active directory returns that it supports paged results. However # it returns binary data in the rfc2696_cookie which throws an # encoding exception breaking searching. return false if @force_no_page @server_caps ||= search_root_dse @server_caps[:supportedcontrol].include?(Net::LDAP::LDAPControls::PAGED_RESULTS) end |