Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy to address book not working - configuration issue? #146

Open
klasyc opened this issue Mar 12, 2024 · 2 comments
Open

Copy to address book not working - configuration issue? #146

klasyc opened this issue Mar 12, 2024 · 2 comments
Labels

Comments

@klasyc
Copy link

klasyc commented Mar 12, 2024

Hello,

I am trying to configure this plugin with my Nextcloud 28 instance. The authentication is handled by Keycloak via OpenID Connect Login plugin. Keycloak federates the user database from my Active Directory server, and the LDAP user backend plugin should be connected directly to my Active Directory server, bypassing Keycloak.

I installed the plugin and configured it as follows (the LDAP server is running locally):

id: 0
addressBookDisplayName: mycompany
host: localhost
port: 389
agentDn: CN=CloudContacts,OU=MyCompany-Services,DC=int,DC=example,DC=com
agentPassword: mySecretPass
bases:
  OU=MyCompany-Users,DC=int,DC=example,DC=com
searchAttributes:
  cn
  mail
  telephoneNumber
attributeMapping:
  EMAIL: mail
  FN: cn
  TEL: telephoneNumber
tEnc: none
filter:

Now, I can see my LDAP users in the contacts' menu in the top right corner of my Nextcloud user interface. Unfortunately, when I click the "Copy to address book" option, I get the Internal server error page and in the Nextcloud log system, I can see the following error:

LdapException Could not complete search with dn "CN=My Person,OU=test,OU=MyCompany-Users,DC=int,DC=example,DC=com",
query "" and filters "*". LDAP error was [-1] Can't contact LDAP server.

1. /var/www/html/nextcloud/apps/ldap_contacts_backend/lib/Service/LdapQuerent.php line 55
   Symfony\Component\Ldap\Adapter\ExtLdap\Query->execute()
2. /var/www/html/nextcloud/apps/ldap_contacts_backend/lib/Service/LdapCardBackend.php line 55
   OCA\LDAPContactsBackend\Service\LdapQuerent->fetchOne()
3. /var/www/html/nextcloud/apps/ldap_contacts_backend/lib/Service/AddressBook.php line 58
   OCA\LDAPContactsBackend\Service\LdapCardBackend->getCard() 
4. /var/www/html/nextcloud/apps/ldap_contacts_backend/lib/Controller/ContactsController.php line 83
   OCA\LDAPContactsBackend\Service\AddressBook->getChild()
5. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
   OCA\LDAPContactsBackend\Controller\ContactsController->import()
6. /var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
   OC\AppFramework\Http\Dispatcher->executeController()
7. /var/www/html/nextcloud/lib/private/AppFramework/App.php line 184
   OC\AppFramework\Http\Dispatcher->dispatch()
8. /var/www/html/nextcloud/lib/private/Route/Router.php line 315
   OC\AppFramework\App::main()
9. /var/www/html/nextcloud/lib/base.php line 1069
   OC\Route\Router->match()
10. /var/www/html/nextcloud/index.php line 39
   OC::handleRequest()

Please guys, could you help me to fix this issue?

@blizzz
Copy link
Member

blizzz commented Mar 12, 2024

@klasyc thanks for opening with those details! Do you have the full backtrace of the LdapException, not only the first three items?

@blizzz blizzz added bug Something isn't working 0. Needs triage needs info labels Mar 12, 2024
@klasyc
Copy link
Author

klasyc commented Mar 12, 2024

Sure, I've updated my initial post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants