contacts icon indicating copy to clipboard operation
contacts copied to clipboard

Share with ldap group

Open Saphar opened this issue 3 years ago • 10 comments

Describe the bug

Our Nextcloud installation is connected to LDAP for user authentication and groups. We were able to create a group in the contacts app and share it with certain group of users. Now recently we wanted to create a new group and share it again but it was not possible anymore. Sharing files with groups works. Sharing contacts with groups was also working previously, but we don't know where the problem occurred.

To Reproduce Steps to reproduce the behavior:

  1. Go to Contacts
  2. In Settings at the bottom of the page create a new group
  3. Try sharing it with an LDAP group.

Expected behavior LDAP group is not visible.

Actual behavior Should be possible to share it.

Server configuration

Operating system: Linux 4.19.0-13-amd64 x86_64

Web server: Apache, Nginx reverse proxy

Database: MariaDB

Nextcloud version: 20.0.8 Stable

Contacts version: 3.4.3

No errors have been found.

Saphar avatar Mar 04 '21 10:03 Saphar

Same with: Nextcloud version: 22.0.0 Contacts version: 4.0.1

oljask avatar Aug 11 '21 20:08 oljask

This plugin does not work for me with LDAP. Does it for you?

MohammedNoureldin avatar Sep 18 '21 01:09 MohammedNoureldin

This plugin does not work for me with LDAP. Does it for you?

I gave up to figure out how to make it work from the gui. Had to edit mysql table directly to share address book.

oljask avatar Sep 21 '21 11:09 oljask

@oljask so you added the contacts manually? Or were you able to automatically share LDAP contacts dynamically over carddav?

Could you show your setup and the steps please?

I am curoius how did use to work? I cannot figure out what steps to follow to get it working to share my ldap users.

MohammedNoureldin avatar Sep 21 '21 11:09 MohammedNoureldin

Added new row in table oc_dav_shares: principaluri: principals/groups/LdapGroupName type: addressbook access: 2 (read-write) resourceid: 2 (id from table oc_addressbooks)

oljask avatar Sep 21 '21 11:09 oljask

Hi, @oljask

I don't get it quite well yet, how you combined this new address book with LDAP Users of specific group? Could you please explain it a bit more? I would really appreciate that.

Thanks!

MohammedNoureldin avatar Oct 19 '21 18:10 MohammedNoureldin

Hi, @MohammedNoureldin resourceid - this number corresponds to id of addressbook from table oc_adressbooks principaluri - name of LDAP group

oljask avatar Oct 20 '21 09:10 oljask

@oljask thank you, I am gonna try that. But are you using LDAP-Contact-Backend app? Or you achieved it working without it?

MohammedNoureldin avatar Oct 20 '21 19:10 MohammedNoureldin

@MohammedNoureldin LDAP-Contact-Backend not installed.

oljask avatar Oct 21 '21 08:10 oljask

Are their spaces involved? e.g. https://github.com/nextcloud/contacts/issues/2621#issuecomment-1245288292

joshtrichards avatar Jan 15 '24 13:01 joshtrichards