Error activating AD

[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]

Brief description of the problem

I get an error when trying to activate Active Directory support
Running Rockstor 5.0.9-0

Detailed step by step instructions to reproduce the problem

setup Samba config with workgroup
click Submit
enter info in Active Directory config, have Enable enumeration checked
click Submit
switch AD from OFF to ON
error message pops up

Web-UI screenshot

Error Traceback provided on the Web-UI

Traceback (most recent call last): File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception yield File "/opt/rockstor/src/rockstor/smart_manager/views/active_directory.py", line 195, in post join_domain(config, method=method) File "/opt/rockstor/src/rockstor/system/directory_services.py", line 270, in join_domain return run_command(cmd, pinput=("{}\n".format(config.get("password"))), log=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/rockstor/src/rockstor/system/osi.py", line 289, in run_command raise CommandException(cmd, out, err, rc) system.exceptions.CommandException: Error running a command. cmd = /usr/sbin/realm join --membership-software=samba -U administrator hq.sutter.com. rc = 1. stdout = ['Password for administrator: ', '']. stderr = ["realm: Couldn't join realm: Failed to enroll machine in realm. See diagnostics.", '']

@edc welcome to the Rockstor community. Have you tried to join the AD domain using the command line directly? A related, but not quite the same, thread was also going through various troubleshooting in the domain space. If @Flox or @ocelot11 have some insight to share here, since this is definitely not my domain expertise.