[owncloud-devel] get display and login name

Klaus Herberth klaus at herberth.eu
Wed Jan 13 10:49:44 GMT 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I implemented a auto-completion field for my app jsxc which requires
to get the display and login names according to an entered string. I
thought the user id is always the same as the login name and therefore
I used the OCP\User::getDisplayNames function.

But login name and uid is only equal in the internal backend and now I
am looking for a solution that works also with other backends like ldap.


Is there a better way as to:
- - check the backend type
- - get uids
- - map every uid to a login name
to get a tuple of login name and uid?

Cheers,
Klaus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQEcBAEBAgAGBQJWlivIAAoJECDHQz+a0U/X9n4H/07XHw19tqCGuSDcVERhRVRq
L4oJPgYj7Uo0rQrfxMVloN6M/nuTJSyEf3JnI9/puLTKXBAG46YEeLhaMQfAU7oC
RKQAlKgNbcxdnTRMzAaRH8Di8PgxDFQRuqrEaj/KSYxgs0nibSjA6qsib0WP3FVM
D6aONb+1EUJvkMqVPvhTTe64GAe5tmJyT9UPznU5iL2gzGXPCv7z18qPQFSuHPVV
QIXk2NEorQ1fQtF26X1SVlThujAdjf3iARFWMel6fXlTc1ux6/TAkvG+heb0PNzC
7ofJmcrX1mMJpKAEfO5RkDIEmefCQdE6ODMerr2mOBoagJWA+ESkTmuWSuUxFuo=
=EkLK
-----END PGP SIGNATURE-----


More information about the Devel mailing list