Skip to content

Commit bc1129f

Browse files
author
blackhedd
committed
tweaked subschema query to comply with RFC 4512 pgh 4.4.
1 parent 8cfb4a1 commit bc1129f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/net/ldap.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ def search_root_dse
10751075
# # your code
10761076
# end
10771077
#--
1078-
# cf. RFC4512 section 4.
1078+
# cf. RFC4512 section 4, particulary graff 4.4.
10791079
# The :dn attribute in the returned Entry is the subschema name as returned from
10801080
# the server.
10811081
# Set :ignore_server_caps, see the notes in search_root_dse.
@@ -1095,7 +1095,7 @@ def search_subschema_entry
10951095
:ignore_server_caps=>true,
10961096
:base=>subschema_name.first,
10971097
:scope=>SearchScope_BaseObject,
1098-
:filter=>"objectclass=*",
1098+
:filter=>"objectclass=subschema",
10991099
:attributes=>[:objectclasses, :attributetypes]
11001100
)
11011101

0 commit comments

Comments
 (0)