This patch warns the admin that the 'ldap admin dn' value in smb.conf is null, put a debug 0 and exits without setting the pw.
Created attachment 1689 [details] patch for lp_ldap_admin_dn() check. fixes password set on null admin dn.
a revised patch has been committed