Replace function of ldapclient

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