Modified rename function to use LDAPDN object.