passman icon indicating copy to clipboard operation
passman copied to clipboard

LDAP users are displayed by their internal UID instead of their user names

Open budachst opened this issue 8 years ago • 10 comments

When sharing a credential with LDAP users, the sharing info does not display the actual user/account name, but nextcloud's internal UID, which makes this very cumbersone in a LDAP environment.

It actually looks like this:

admin -> local user 1125a389-6f4c-4c5a-8b1d-8f3ac86e738c -> LDAP user

This will make it quite difficult to keep up with one's shared credentials, when running in larger setup.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

budachst avatar Feb 18 '17 10:02 budachst

Thanks for reporting. Unfortunately we don't have an ldap setup, and don't have the time to setup one either. Because it's purely visual i'll assign a low prio to this.

brantje avatar Feb 18 '17 11:02 brantje

Sure - if I can be of any help, let me know.

budachst avatar Feb 18 '17 13:02 budachst

Yes, do the LDAP users exist in the user table from nextcloud? Also, the places where they shown might come in handy.

brantje avatar Feb 18 '17 14:02 brantje

There are three mapping tables in the database:

oc_ldap_group_mapping oc_ldap_group_members oc_ldap_user_mapping

I'd think, that you will mostly be interested in the oc_ldap_user_mapping at this time. The structure looks like this:

ldap_dn owncloud_name directory_uuid

These will map LDAP users to their resp. local user id. Places, where these are shown is e.g. the standard sharing dialog, when sharing a link or other item.

budachst avatar Feb 18 '17 16:02 budachst

Nextcloud has classes for getting users, we need to use those i think.

brantje avatar Feb 18 '17 16:02 brantje

It surely has - unfortuanetly I am not a dev, so I can't be of more help in this field, but I can perform some testing, if that'd help.

budachst avatar Feb 18 '17 16:02 budachst

I've setup a local ldap installation, will start debugging this week i hope.

As far i know at the following places the usernames appear

  • [ ] Accept share request
  • [ ] Share credential

If i missed some places, feel free to add them

brantje avatar Feb 19 '17 21:02 brantje

here is field with ID. screen shot 2017-06-19 at 20 54 09

mrPsycho avatar Jun 19 '17 18:06 mrPsycho

I'm using nextcloud 16.0.1 and LDAP sharing simply doesn't work. I can't find any of the users using their name, but neither by using the internal ID. Is there any information I can provide to help solve this?

Or maybe some indication on what to look for in the code, as I'm not familiar at all with nextcloud's and its apps source code.

agamez avatar Jun 10 '19 12:06 agamez

We experience the same issue

InsOpDe avatar Nov 03 '22 11:11 InsOpDe