Return UID instead of login name

Without this OCS on LDAP is broken for API requests coming via Basic Authentication...

@DeepDiver1975 @blizzz @karlitschek Or whoever feels responsible for OCS and LDAP. And while you're at it reviewing https://github.com/owncloud/core/pull/12917 would also be cool since OCS is broken otherwise apparently…