New modification for LDAP implementation