File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -315,19 +315,27 @@ def search(args = nil)
315
315
args ||= { }
316
316
317
317
# filtering, scoping, search base
318
+ # filter: https://tools.ietf.org/html/rfc4511#section-4.5.1.7
319
+ # base: https://tools.ietf.org/html/rfc4511#section-4.5.1.1
320
+ # scope: https://tools.ietf.org/html/rfc4511#section-4.5.1.2
318
321
filter = args [ :filter ] || Net ::LDAP ::Filter . eq ( "objectClass" , "*" )
319
322
base = args [ :base ]
320
323
scope = args [ :scope ] || Net ::LDAP ::SearchScope_WholeSubtree
321
324
322
325
# attr handling
326
+ # attrs: https://tools.ietf.org/html/rfc4511#section-4.5.1.8
327
+ # attrs_only: https://tools.ietf.org/html/rfc4511#section-4.5.1.6
323
328
attrs = Array ( args [ :attributes ] )
324
329
attrs_only = args [ :attributes_only ] == true
325
330
326
331
# references
332
+ # refs: https://tools.ietf.org/html/rfc4511#section-4.5.3
333
+ # deref: https://tools.ietf.org/html/rfc4511#section-4.5.1.3
327
334
refs = args [ :return_referrals ] == true
328
335
deref = args [ :deref ] || Net ::LDAP ::DerefAliases_Never
329
336
330
337
# limiting, paging, sorting
338
+ # size: https://tools.ietf.org/html/rfc4511#section-4.5.1.4
331
339
size = args [ :size ] . to_i
332
340
paged = args [ :paged_searches_supported ]
333
341
sort = args . fetch ( :sort_controls , false )
You can’t perform that action at this time.
0 commit comments