🗃️ LDAP backend for Nextcloud Contacts
Перейти к файлу
github-actions[bot] 21813d0c9b
Merge pull request #214 from nextcloud/automated/noid/main-update-nextcloud-ocp
[main] Update nextcloud/ocp dependency
2024-10-06 04:21:51 +00:00
.github/workflows
appinfo
img
lib chore: Apply codestyle fixer again 2024-09-19 10:56:02 +02:00
screenshots
tests chore: Apply codestyle fixer again 2024-09-19 10:56:02 +02:00
vendor-bin chore: Set PHP platform to 8.1 in all tools 2024-09-20 12:25:52 +02:00
.gitignore
.nextcloudignore chore: Add license to rector.php and do not package it 2024-09-19 09:20:50 +02:00
.php-cs-fixer.dist.php chore: Add missing install commands and fix config 2024-09-20 12:22:15 +02:00
LICENSE
README.md
composer.json chore: Set PHP platform to 8.1 in all tools 2024-09-20 12:25:52 +02:00
composer.lock chore(dev-deps): Bump nextcloud/ocp package 2024-10-06 02:59:33 +00:00
krankerl.toml
psalm.xml
rector.php chore: Import all names and increase type coverage with rector 2024-09-19 10:17:16 +02:00

README.md

LDAP Contacts Backend

LDAP backend for Nextcloud Contacts

image

Adds a virtual address book and enables importing contacts to a user's individual address book.

You and your users will be able to search through the LDAP contacts via the global contacts menu. An import action allows to copy the contact over to the best fitting existing addressbook. A redirect takes you the contacts app with the newly created card open.

Note: The Contacts app for Nextcloud should also be installed.

Configuring

In order to configure an LDAP backend, run:

./occ ldap_contacts:add --interactive <ADDRESS_BOOK_NAME>

Where <ADDRESSBOOK_NAME> is a name you like to identify the virtual addressbook with. The interactive mode leads you through the configuration, but you can also use the --help flag to see all the options.

Commands

./occ ldap_contacts:add

Add an LDAP contacts backend configuration

./occ ldap_contacts:edit

Edit an LDAP contacts backend configuration

./occ ldap_contacts:list

Lists all LDAP contacts backend configurations

./occ ldap_contacts:delete

Delete an LDAP contacts backend configuration

Example configuration

occ ldap_contacts:add test \
  --host=localhost \
  --port=389 \
  --trans_enc=tls \
  --bindDN='cn=admin,dc=...' \
  --bindPwd=****** \
  --filter='(objectClass=inetOrgPerson)' \
  --base='ou=users,dc=...' \
  --attrs=cn \
  --attrs=mail \
  --attrs=telephoneNumber \
  --mapping=EMAIL:mail \
  --mapping=FN:cn \
  --mapping=TEL:telephoneNumber

Additional documentation

Hints about what should go in some of the fields can be found by looking at the User authentication with LDAP documentation since many of the fields are similar.