[API] Fix realname extracting during creation from ldap.