Truenas and openldap

Hi,
i installed a TrueNAS scale, and i also have an openldap server hosted on a debian external server.
This LDAP is used to handle few other authentications.
I wanted to add my LDAP users/password to TrueNAS, so i can share some datasets for windows users.
I could configure trueNAS to get my users from an LDAP Directory service, and created a datasets owend by one of those users.
But, when i’m on a windows machine, trying to access this datasets, i can connect a network drive, but they will refuse my password.
it looks like even if the users can be in oustide directory, the passwords have to be local to trueNAS.

Maybe i’m doing something wrong ? Did someone already manage to use a password from openldap to access a SMB share ?
I’m not using any AD/FreeIPA or such services…
Thanks for any clue, i’m on that problem for few weeks now…

We do not support SMB protocol authentication with a plain openldap server for some technical reasons that are perhaps out of scope here. Try using AD.

Thanks for your quick answer, i will check for FreeIPA integration then

You can also use samba AD (FOSS alternative). It generally works better with Windows / SMB clients.

I never heard of that. But i will take a look, unless there is some kind of tutorial already existing ?

A good place to start is the upstream wiki / documentation. This is typically not something you’d host on the TrueNAS itself.

1 Like