We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b210b6 + b187466 commit 677fa62Copy full SHA for 677fa62
modules/auxiliary/admin/kerberos/get_ticket.rb
@@ -134,6 +134,10 @@ def validate_options
134
if datastore['SPN'].present? && !datastore['SPN'].match(%r{.+/.+})
135
fail_with(Failure::BadConfig, 'SPN format must be service_name/FQDN (ex: cifs/dc01.mydomain.local)')
136
end
137
+
138
+ if datastore['IMPERSONATE'].present? && datastore['IMPERSONATE_TYPE'] == 'none'
139
+ fail_with(Failure::BadConfig, 'IMPERSONATE_TYPE must be set to "generic", "dmsa" or "auto" when IMPERSONATE is provided')
140
+ end
141
142
143
def run
0 commit comments