Skip to content

Commit

Permalink
account for numeric active_directory domains: active_directory.py roc…
Browse files Browse the repository at this point in the history
  • Loading branch information
phillxnet committed Mar 22, 2024
1 parent 1c6f450 commit 5c1c9d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rockstor/smart_manager/views/active_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def post(self, request, command):
self._resolve_check(config.get("domain"), request)

# 2. realm discover check?
domain = config.get("domain")
domain = str(config.get("domain"))
try:
cmd = [REALM, "discover", "--name-only", domain]
cmd: list[str] = [REALM, "discover", "--name-only", domain]
o, e, rc = run_command(cmd)
except Exception as e:
e_msg = (
Expand All @@ -117,14 +117,14 @@ def post(self, request, command):

elif command == "start":
config = self._config(service, request)
domain = config.get("domain")
domain = str(config.get("domain"))
# 1. make sure ntpd is running, or else, don't start.
self._ntp_check(request)
# 2. Name resolution check?
self._resolve_check(config.get("domain"), request)

if method == "winbind":
cmd = [
cmd: list[str] = [
"/usr/sbin/authconfig",
]
# nss
Expand Down

0 comments on commit 5c1c9d5

Please sign in to comment.