contacts
contacts copied to clipboard
Share with ldap group
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:
- Go to Contacts
- In Settings at the bottom of the page create a new group
- 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.
Same with: Nextcloud version: 22.0.0 Contacts version: 4.0.1
This plugin does not work for me with LDAP. Does it for you?
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 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.
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)
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!
Hi, @MohammedNoureldin resourceid - this number corresponds to id of addressbook from table oc_adressbooks principaluri - name of LDAP group
@oljask thank you, I am gonna try that. But are you using LDAP-Contact-Backend app? Or you achieved it working without it?
@MohammedNoureldin LDAP-Contact-Backend not installed.
Are their spaces involved? e.g. https://github.com/nextcloud/contacts/issues/2621#issuecomment-1245288292