authenticate, and add_entry() of ldap

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>