Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/uri/ldap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,18 @@ def initialize(*arg)
parse_query
end

def set_path(val)
super
parse_dn if val
end
protected :set_path

def query=(val)
result = super
parse_query
result
end

# Private method to cleanup +dn+ from using the +path+ component attribute.
def parse_dn
raise InvalidURIError, 'bad LDAP URL' unless @path
Expand Down