Issue Connecting to Active Directory

I have configured rockstor and enabled NTP. When trying to enable The active directory service i add the AD details however the service fails to work, below is the error received.

          >       Traceback (most recent call last):
>       File "/opt/rockstor/src/rockstor/rest_framework_custom/", line 41, in _handle_exception
>         yield
>       File "/opt/rockstor/src/rockstor/smart_manager/views/", line 199, in post
>         smb_config = self._get_config(smbo)
>       File "/opt/rockstor/src/rockstor/smart_manager/views/", line 40, in _get_config
>         return json.loads(service.config)
>       File "/usr/lib64/python2.7/json/", line 338, in loads
>         return _default_decoder.decode(s)
>       File "/usr/lib64/python2.7/json/", line 366, in decode
>         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>     TypeError: expected string or buffer

Can anyone advise what may be causing this issue?

Thanks in advance.


be sure to be able to resolve the AD controller. in my case i had to add it to the hosts.