There's a closed pull request on the Samba Samba Github repository Kcc fixes https://github.com/samba-team/samba/pull/24 Description: With these changes samba_kcc --exportldif is now tested. Please review/push.