Hello everyone. I’m using TrueNAS-13.0-U5.3 in VMWare Exsi, with 4GB of RAM and 2 storage disks of 20GB each. I have already linked this TrueNas to an Active Directory No.1, just by filling in the necessary information in the “Active Directory” tab located in “Directory Services”, and by putting the IP address of the domain controller of this Active Directory among the DNS addresses of TrueNas in the network configuration. I disconnected TrueNas from this directory, and I wanted to link it to another Active Directory No.2. But by following the same steps that worked previously, I get the error:
‘str’ object has no attribute ‘name’
Error: Traceback (most recent call last): File “/usr/local/lib/python3.9/site-packages/middlewared/job.py”, line 367, in run await self.future
File “/usr/local/lib/python3.9/site-packages/middlewared/job.py”, line 403, in __run_body rv = await self.method(*([self] + args))
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/activedirectory.py”, line 691, in start await self._net_ads_join()
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/activedirectory.py”, line 1037, in _net_ads_join await self.set_state(DSStatus[‘FAULTED’].name)
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/activedirectory.py”, line 588, in set_state return await self.middleware.call(‘directoryservices.set_state’, {‘activedirectory’: state.name})
AttributeError: ‘str’ object has no attribute ‘name’
So I canceled the operation and tried again with Active Directory No.1, everything went well as the first time. So I attempted again with Active Directory No.2, always following exactly the same steps, but I still get this error. Thank you for helping me understand what is not working.
‘str’ object has no attribute ‘name’
Error: Traceback (most recent call last): File “/usr/local/lib/python3.9/site-packages/middlewared/job.py”, line 367, in run await self.future
File “/usr/local/lib/python3.9/site-packages/middlewared/job.py”, line 403, in __run_body rv = await self.method(*([self] + args))
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/activedirectory.py”, line 691, in start await self._net_ads_join()
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/activedirectory.py”, line 1037, in _net_ads_join await self.set_state(DSStatus[‘FAULTED’].name)
File “/usr/local/lib/python3.9/site-packages/middlewared/plugins/activedirectory.py”, line 588, in set_state return await self.middleware.call(‘directoryservices.set_state’, {‘activedirectory’: state.name})
AttributeError: ‘str’ object has no attribute ‘name’
So I canceled the operation and tried again with Active Directory No.1, everything went well as the first time. So I attempted again with Active Directory No.2, always following exactly the same steps, but I still get this error. Thank you for helping me understand what is not working.