Return UID instead of login name

Without this OCS on LDAP is broken for API requests coming via Basic Authentication...
Merge pull request #12918 from owncloud/use-uid-instead-of-login-name

Return UID instead of login name