Can not put Active directory Service on

I enter the credentials to join rockstor server to domain, no error is showed but service not change to on. Some clue ?, is there another log than messages.
This info is in messages

Feb 13 11:56:36 rockstor dbus-daemon: dbus[1905]: [system] Activating via systemd: service name=‘org.freedesktop.realmd’ unit='realmd.service’
Feb 13 11:56:36 rockstor dbus[1905]: [system] Activating via systemd: service name=‘org.freedesktop.realmd’ unit='realmd.service’
Feb 13 11:56:36 rockstor systemd: Starting Realm and Domain Configuration…
Feb 13 11:56:36 rockstor dbus[1905]: [system] Successfully activated service 'org.freedesktop.realmd’
Feb 13 11:56:36 rockstor dbus-daemon: dbus[1905]: [system] Successfully activated service 'org.freedesktop.realmd’
Feb 13 11:56:36 rockstor realmd: * Resolving: _ldap._tcp.server01.casacentral.atssa.com.ar
Feb 13 11:56:36 rockstor realmd: * Resolving: server01.casacentral.atssa.com.ar
Feb 13 11:56:36 rockstor realmd: * Performing LDAP DSE lookup on: 192.168.0.101
Feb 13 11:56:36 rockstor systemd: Started Realm and Domain Configuration.
Feb 13 11:56:36 rockstor realmd: * Successfully discovered: casacentral.atssa.com.ar

Sorry when I tried to put the service on: this is the error

        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 224, in post
method=method)
File “/opt/rockstor/src/rockstor/smart_manager/views/active_directory.py”, line 85, in _domain_workgroup
o, e, rc = run_command(cmd)
File “/opt/rockstor/src/rockstor/system/osi.py”, line 115, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /usr/bin/net ads workgroup. rc = 255. stdout = [’’]. stderr = [‘ads_connect: No logon servers’, ‘ads_connect: No logon servers’, “Didn’t find the cldap server!”, ‘’]

Been here so many times. I can not tell you why the problem is occurring but I’ve learned to do certain steps BEFORE I join it to an AD domain.

  1. shell -> can you ping the domain?
    No - > your Rockstor can not find a reference or anyone acknowledging the doamin
    YES -> That is good…

  2. (might seem odd) Enter the WORKGROUP NAME of the domain in the SAMBA sharing configuration. Turn on the service.

When I follow those two steps, joining the domain works every time.

Cheers

1 Like