Added resolution of next available UID in ldap tree