Samba4 and OpenLDAP auth only


I'm trying to have a regular standalone samba4 server with LDAP backend for auth only instead of the file based DB. So no AD required just a way arround from smbpasswd to ldap as auth instead.

There is probably plenty of tutorials out there, but I only keep on finding the AD setup ones. Is there a way to point samba to the required smbaccount ldap attribute without making it a AD?