Connecting to TrueNAS Scale using LDAP configuration

A plain OpenLDAP server is insufficient to provide authentication for SMB protocol. You could in theory use the legacy samba schema extensions, but support for this is being removed in Electric Eel. Using AD (Samba or Microsoft) is a better option.