fix compatibility of ldap modules with newer erlang (Alexey Radkov) TSUN-316