AD Join - "expected string or buffer" - Resolved

[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 can’t join AD. I use to have my rockstor in the AD, but due to recent upgrade failure had to reload the OS and ran into this issue. Originally I was running older than 3.8.16 when I first joined the domain so not sure if this is an issue with the newer release. Later I plan on using an older copy and see if I get a change of status.

Detailed step by step instructions to reproduce the problem

Fresh install of 3.8.16-16
Added my AD info (Server 2008).
Samba service on / off did not matter same results.
“realm join” had missing packages samba-common-tools, sssd, oddjob, oddjob-mkhomedir
yum install the above.
No change.
used the gui to update rockstor to 3.9.0-7
“realm join -v” works but users are not imported.

[root@nas ~]# systemctl status smb
● smb.service - Samba SMB Daemon
Loaded: loaded (/etc/systemd/system/smb.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2017-05-24 02:51:08 PDT; 3min 50s ago
Main PID: 12969 (smbd)
Status: “smbd: ready to serve connections…”
CGroup: /system.slice/smb.service
├─12969 /usr/sbin/smbd
├─12970 /usr/sbin/smbd
├─12971 /usr/sbin/smbd
└─12972 /usr/sbin/smbd

May 24 02:51:06 nas systemd[1]: Starting Samba SMB Daemon…
May 24 02:51:06 nas systemd[1]: smb.service: Supervising process 12969 which is not our child. We’ll most likely not notice when it exits.
May 24 02:51:08 nas smbd[12969]: [2017/05/24 02:51:08.079567, 0] …/lib/util/become_daemon.c:124(daemon_ready)
May 24 02:51:08 nas smbd[12969]: STATUS=daemon ‘smbd’ finished starting up and ready to serve connections
May 24 02:51:08 nas systemd[1]: Started Samba SMB Daemon.

[root@nas ~]# realm join dillonsociety.com -v

  • Resolving: _ldap._tcp.dillonsociety.com
  • Performing LDAP DSE lookup on: 10.0.70.10
  • Successfully discovered: dillonsociety.com
    Password for Administrator:
  • Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/sssd, /usr/bin/net
  • LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.HVZZ0Y -U Administrator ads join dillonsociety.com
    Enter Administrator’s password:DNS update failed: NT_STATUS_INVALID_PARAMETER

Using short domain name – DILLONSOCIETY
Joined ‘NAS’ to dns domain ‘dillonsociety.com
No DNS domain configured for nas. Unable to perform DNS Update.

  • LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.HVZZ0Y -U Administrator ads keytab create
    Enter Administrator’s password:
  • /usr/bin/systemctl enable sssd.service
    Created symlink from /etc/systemd/system/multi-user.target.wants/sssd.service to /usr/lib/systemd/system/sssd.service.
  • /usr/bin/systemctl restart sssd.service
  • /usr/bin/sh -c /usr/sbin/authconfig --update --enablesssd --enablesssdauth --enablemkhomedir --nostart && /usr/bin/systemctl enable oddjobd.service && /usr/bin/systemctl start oddjobd.service
  • Successfully enrolled machine in realm
    [root@nas ~]#
Gui no change on join.

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 199, in post smb_config = self._get_config(smbo) File "/opt/rockstor/src/rockstor/smart_manager/views/base_service.py", line 40, in _get_config return json.loads(service.config) File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) TypeError: expected string or buffer

Thank You

Found the string issue, I did not configure SAMBA workgroup.