There are compilation error in the pdb_ldap.c. The prototype of the function smbldap_search_domain_info is missing in the smbldap.h file. So when we add the prototype it work very well :) Thanks
at least not a problem with recent samba versions