No description
  • PHP 84.3%
  • JavaScript 14.2%
  • Shell 1.5%
Find a file
github-actions[bot] bef7de5997
Merge pull request #438 from nextcloud/automated/noid/main-update-nextcloud-ocp
[main] Update nextcloud/ocp dependency
2026-05-10 04:26:25 +00:00
.github Merge pull request #422 from nextcloud/automated/noid/main-update-workflows 2026-04-16 12:31:54 +02:00
.tx feat: Add l10n configuration for transifex 2025-07-31 10:55:39 +02:00
appinfo chore: Update info.xml to lower version number 2026-01-26 10:22:29 +01:00
img docs(reuse): Add SPDX header 2024-12-17 15:58:09 +01:00
l10n fix(l10n): Update translations from Transifex 2026-04-28 01:19:49 +00:00
lib fix: Fix types in Edit command 2026-04-07 10:15:53 +02:00
LICENSES ci(reuse): Add reuse check 2024-12-17 15:59:00 +01:00
screenshots docs(reuse): Add SPDX header 2024-12-17 15:58:09 +01:00
tests chore: Adapt tests for Configuration class 2026-04-07 10:15:53 +02:00
vendor-bin chore(dev-deps): Bump nextcloud/ocp package 2026-05-10 03:23:08 +00:00
.gitignore docs(reuse): Add SPDX header 2024-12-17 15:58:09 +01:00
.l10nignore feat: Add l10n configuration for transifex 2025-07-31 10:55:39 +02:00
.nextcloudignore docs(reuse): Add SPDX header 2024-12-17 15:58:09 +01:00
.php-cs-fixer.dist.php docs(reuse): Add SPDX header 2024-12-17 15:58:09 +01:00
AUTHORS.md docs(reuse): Add SPDX header 2024-12-17 15:58:09 +01:00
composer.json chore: Move phpunit to a vendor bin 2026-03-31 13:19:19 +02:00
composer.lock chore(dev-deps): Bump nextcloud/ocp package 2026-05-10 03:23:08 +00:00
krankerl.toml docs(reuse): Add SPDX header 2024-12-17 15:58:09 +01:00
LICENSE Initial commit 2019-11-15 12:55:24 +01:00
psalm.xml chore: Increase psalm level and fix issues 2026-04-07 10:15:52 +02:00
README.md docs(readme): Add reuse status badge 2024-12-17 16:00:45 +01:00
rector.php chore: Apply rector updated configuration, add rector command to composer.json 2024-12-05 10:52:20 +01:00
REUSE.toml chore: Add vendor-bin/phpunit to reuse 2026-03-31 13:31:02 +02:00

LDAP Contacts Backend

REUSE status

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.