Update auth.c

add ldap_clear(), use sprintf() to form bindDN and filter