After some digging in the forums I finaly figured out how to use Samba4 AD as an external LDAP.

Now I'm facing the next problem Auto provisioning new accounts in my AD to ZCS8.

I've read several post telling how to do it the proper way with a M$ AD, but I'm not willing to pay M$ for the AD.

- Zimbra 8.0 Auto Provisioning help
- ZIMBRA + external LDAP - autoprovisioning accounts created in external LDAP
- Zimbra 8 Auto Provisioning not work properly

Anyone got the autoprovisioning to work with Samba4?

My config:

Code:
[zimbra@zimbra8 ~]$ zmprov gd digos.lin |grep zimbraAutoProv
zimbraAutoProvAccountNameMap: sAMAccountName
zimbraAutoProvAuthMech: LDAP
zimbraAutoProvAuthMech: PREAUTH
zimbraAutoProvAuthMech: KRB5
zimbraAutoProvBatchSize: 20
zimbraAutoProvLdapAdminBindDn: administrator@example.lin
zimbraAutoProvLdapAdminBindPassword: p@ssw0rd
zimbraAutoProvLdapBindDn: %u@EXAMPLE.LIN
zimbraAutoProvLdapSearchBase: dc=EXAMPLE,dc=LIN
zimbraAutoProvLdapSearchFilter: (|(sAMAccountName=%u)(mail=%u@example.lin)(mail=%n))
zimbraAutoProvLdapURL: ldap://samba4.example.lin:389 ldap://samba4.example.lin:3268
zimbraAutoProvMode: LAZY
zimbraAutoProvMode: MANUAL
zimbraAutoProvNotificationBody: Your account has been auto provisioned.  Your email address is ${ACCOUNT_ADDRESS}.
zimbraAutoProvNotificationSubject: New account auto provisioned
according to "/opt/zimbra/docs/autoprov.txt" this config should work, but it doesn't