let's get it right for a change

This commit is contained in:
blackhedd 2007-05-02 10:21:39 +00:00
parent acfa64d159
commit 105fb102d5

View file

@ -1087,12 +1087,12 @@ module Net
:attributes=>[:subschemaSubentry] :attributes=>[:subschemaSubentry]
) )
return Entry.new unless (rs and rs.first) return Entry.new unless (rs and rs.first)
subschema_name = rs.subschemasubentry subschema_name = rs.first.subschemasubentry
return Entry.new unless (subschema_name and subschema_name.first) return Entry.new unless (subschema_name and subschema_name.first)
rs = search( rs = search(
:ignore_server_caps=>true, :ignore_server_caps=>true,
:base=>subschema_name, :base=>subschema_name.first,
:scope=>SearchScope_BaseObject, :scope=>SearchScope_BaseObject,
:filter=>"objectclass=*", :filter=>"objectclass=*",
:attributes=>[:objectclasses, :attributetypes] :attributes=>[:objectclasses, :attributetypes]