Skip to content

Commit 5305e04

Browse files
Add a check for the LDAP session feature
1 parent f8760a9 commit 5305e04

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/auxiliary/server/relay/smb_to_ldap.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ def relay_targets
7676
end
7777

7878
def check_options
79+
unless framework.features.enabled?(Msf::FeatureManager::LDAP_SESSION_TYPE)
80+
fail_with(Failure::BadConfig, 'This module requires the `ldap_session_type` feature to be enabled. Please enable this feature using `features set ldap_session_type true`')
81+
end
7982
if datastore['RHOSTS'].present?
8083
print_warning('Warning: RHOSTS datastore value has been set which is not supported by this module. Please verify RELAY_TARGETS is set correctly.')
8184
end

0 commit comments

Comments
 (0)