Forum archive
Samba File Sharing with JumpCloud LDAP
Mediaserver includes Samba and Webmin. I use JumpCloud's LDAP-as-a-Service. I know that Samba can authenticate to JumpCloud's LDAP service but how do I configure this for Samba Windows File Sharing?
I've posted this question to SuperUser but there's been no comments yet.
Webmin provides access to "Edit Config File". I've used the following based on a JumpCloud LDAP NAS/Samba Integration Step-by-Step Worksheet (note: obviously not my actual org id or user id).
I checked with JumpCloud and they believe my configuration is correct for LDAP.
I've run smbpasswd -w my-samba-passwd and restarted the fileserver.
The error in the Samba logs is:
Failed to find a Unix account for 'my-user'
User 'my-user' in passdb, but getpwnam() fails!
For Debian 9 Stretch, which is the underlying OS for the TKL Fileserver, LDAP/NSS is set up from the configuration screens with these installs:apt-get install libnss-ldapdapt-get install libpam-ldapd
I've run through the elements in the Debian wiki for LDAP NSS and my configuration appears correct but getent passwd doesn't return the users from JumpCloud so it's probable that the configuration of NSS is incorrect?
Thanks, Jeremy,
I think it may be something to do with the ordering of the NSS load and the start of Samba services, as those StackExchange questions show.
I've decided it was a bit too much fiddling so I'm not using JumpCloud for access to the fileserver. I create duplicate account on the TKL Fileserver for each user (with the same passwords). Luckily, I don't have to do regular password recycling!