I use Samba 4 AD account provider (same settigns as with Active Directory)
Under LDAP settings:
The ldap host is:
ldaps://hostname.domain.tld
The ldap port is:
636
(389 if you use LDAP instead of LDAPS)
The ldap password is
your-bind-password
(password of the Samba4 account you created to bind other applications with Samba4)
The ldap base is
dc=domain;dc=tld
(If you only want to search the directory tree in the users OU, add a cn=users; in front.)
The ldap bind is
cn=bindaccount,cn=users,dc=domain,dc=tld
The LDAP main filter is
cn (if you want to log in with Dit e-mailadres wordt beveiligd tegen spambots. JavaScript dient ingeschakeld te zijn om het te bekijken., use sAMAccountName)
The LDAP second filter is
cn
Hope this helps.