new digest routine for LDAP