enabling LDAP: ldap_update: [EFAULT] {'desc': 'Unknown authentication method', 'errno': 36, 'info': 'SASL(-4): no mechanism available: '}
Description
Problem/Justification
Impact
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
Caleb March 12, 2020 at 2:03 PM
Thanks for the update. Since you can't reproduce it now and we haven't seen this occurring in the community, I'm going to move this ticket towards closure. If you do manage to reproduce it again, please open a fresh ticket with us and be sure to attach a debug so we can investigate.
Thanks!
Bob Paul March 12, 2020 at 1:15 AM
So when I encountered this issue I rebooted back to the previous environment (11.2-U8) and then tried to reproduce it on the non-production system / replication receiver, where I was unsuccessful. On the production system, I've cycled back and forth between the 11.2-U8 and 11.3-U2 environments and have only experienced an issue once after reverting to 11.2-U8; this was fixed by invalidating browser cache and refreshing.
Either there's an issue on first boot after some 11.2 to 11.3 upgrades or this was a browser cache issue. Either way I'm not able to reproduce, though if pressed I can still go back to 11.2-U8 and run the upgrade again.
Caleb March 10, 2020 at 12:23 PM
Thanks for the report! Can you please attach a debug to this ticket? You can get one by going to System->Advanced and click the "Save Debug" button.
When trying to enable LDAP on FreeNAS 11.3 I get:
ValidationError
[EFAULT] ldap_update: [EFAULT] {'desc': 'Unknown authentication method', 'errno': 36, 'info': 'SASL(-4): no mechanism available: '}
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/ldap.py", line 586, in do_update
await self.middleware.call('ldap.ldap_validate', new)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1127, in call
app=app, pipes=pipes, job_on_progress_cb=job_on_progress_cb, io_thread=True,
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1077, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/ldap.py", line 490, in ldap_validate
await self.middleware.call('ldap.validate_credentials', data)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1127, in call
app=app, pipes=pipes, job_on_progress_cb=job_on_progress_cb, io_thread=True,
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1091, in _call
return await run_method(methodobj, *args)
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/run_in_thread.py", line 10, in run_in_thread
return await self.loop.run_in_executor(self.run_in_thread_executor, functools.partial(method, *args, **kwargs))
File "/usr/local/lib/python3.7/site-packages/middlewared/utils/io_thread_pool_executor.py", line 25, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/ldap.py", line 639, in validate_credentials
ret = LDAP.validate_credentials()
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/ldap.py", line 137, in validate_credentials
ret = self._open()
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/ldap.py", line 254, in _open
raise CallError(str(saved_simple_error))
middlewared.service_exception.CallError: [EFAULT] {'desc': 'Unknown authentication method', 'errno': 36, 'info': 'SASL(-4): no mechanism available: '}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 130, in call_method
io_thread=False)
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1077, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/service.py", line 302, in update
f'{self._config.namespace}.update', self, self.do_update, [data]
File "/usr/local/lib/python3.7/site-packages/middlewared/main.py", line 1077, in _call
return await methodobj(*args)
File "/usr/local/lib/python3.7/site-packages/middlewared/schema.py", line 961, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/middlewared/plugins/ldap.py", line 588, in do_update
raise ValidationError('ldap_update', str(e))
middlewared.service_exception.ValidationError: [EFAULT] ldap_update: [EFAULT] {'desc': 'Unknown authentication method', 'errno': 36, 'info': 'SASL(-4): no mechanism available: '}