Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dynamic DC discovery #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions config/realm_ad.yml.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# Authentication for Kerberos-based Realms
# Authentication for Kerberos-based Realms. This will be used to get the DNS of the domain.
:realm: EXAMPLE.COM

# Kerberos pricipal used to authenticate against Active Directory
Expand All @@ -8,7 +8,7 @@
# Path to the keytab used to authenticate against Active Directory
:keytab_path: /etc/foreman-proxy/realm_ad.keytab

# FQDN of the Domain Controller
# Optional: Only use a specific domain controller. This will disable DNS based dc discovery.
:domain_controller: dc.example.com

# Optional: OU where the machine account shall be placed
Expand Down
1 change: 1 addition & 0 deletions lib/smart_proxy_realm_ad/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def radcli_connect
# Connect to active directory
conn = Adcli::AdConn.new(@domain)
conn.set_domain_realm(@realm)
# Directly connect to the domain controller if specified, skip the SRV lookup
conn.set_domain_controller(@domain_controller) unless @domain_controller.nil?
conn.set_login_ccache_name('')
conn.connect
Expand Down
Loading