Display 'realm\user' for AD instead of 'user@realm'
parent
62a2f1dc0a
commit
097d5d68ce
|
@ -70,8 +70,12 @@ module Metasploit
|
|||
end
|
||||
|
||||
def to_s
|
||||
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
|
||||
|
||||
def ==(other)
|
||||
other.public == self.public && other.private == self.private && other.realm == self.realm
|
||||
|
|
Loading…
Reference in New Issue