Display 'realm\user' for AD instead of 'user@realm'
parent
62a2f1dc0a
commit
097d5d68ce
|
@ -70,7 +70,11 @@ module Metasploit
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
"#{self.public}:#{self.private}#{at_realm}"
|
if realm && realm_key == Metasploit::Model::Realm::Key::ACTIVE_DIRECTORY_DOMAIN
|
||||||
|
"#{self.realm}\\#{self.public}:#{self.private}"
|
||||||
|
else
|
||||||
|
"#{self.public}:#{self.private}#{at_realm}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def ==(other)
|
def ==(other)
|
||||||
|
|
Loading…
Reference in New Issue