Contact LDAP Backend, issue with address field

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian Linux 5.10.0-34-amd64 x86_64
  • Web server and version (e.g, Apache 2.4.25):
    • nginx/1.28.0
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx/1.28.0
  • PHP version (e.g, 8.3):
    • 8.4.16
  • Is this the first time you’ve seen this error? (Yes / No):
    • YES
  • When did this problem seem to first start?
    • upgrade Nextcloud version
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

We used Contact LDAP apps, but with the upgrade to 32.0.2 version, this app is not supported.

So now we use LDAP Contacts Backend

In LDAP Contacts Backend, in integration LDAP/AD menu, I configure the mapping between LDAP Field with Contact field (as describe in https://docs.nextcloud.com/server/32/admin_manual/configuration_user/user_auth_ldap.html )

In user profil attribut, for the Adress field if I use the LDAP parameter “street” that works.

But other field as “l” or “postalCode” don’t works.

LDAP fields

image

image

image

And of cource I’d like to use street, postalCode, l but just l or just PostalCode don’t works.

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

   "system": {
        "memcache.local": "\\OC\\Memcache\\APCu",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "*********.fr",
            "*********.fr",
            "*********.fr"
        ],
        "trusted-poxies": {
            "1": "172.26.0.5\/16"
        },
        "forwarded_for_headers": [
            "HTTP_X_FORWARDED_FOR"
        ],
        "dbtype": "mysql",
        "version": "32.0.3.2",
        "overwrite.cli.url": "https:****.fr",
        "overwritehost": "******.fr",
        "overwriteprotocol": "https",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "app_install_overwrite": {
            "0": "occweb",
            "1": "ldapcontacts",
            "2": "ldaporg",
            "4": "files_markdown"
        },
        "maintenance": false,
        "theme": "",
        "loglevel": 0,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpsecure": "ssl",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "has_rebuilt_cache": true,
        "session_lifetime": 3600,
        "session_keepalive": false,
        "default_phone_region": "FR",
        "trashbin_retention_obligation": "auto, 90",
        "preview_max_x": 1080,
        "preview_max_y": 1920,
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "upgrade.disable-web": true,
        "maintenance_window_start": 1
    }

Apps

Enabled:

  • activity: 5.0.0-dev.0
  • admin_audit: 1.22.0
  • announcementcenter: 7.2.2
  • bruteforcesettings: 5.0.0-dev.0
  • calendar: 6.1.4
  • circles: 32.0.0
  • cloud_federation_api: 1.16.0
  • comments: 1.22.0
  • contacts: 8.2.0
  • contactsinteraction: 1.13.1
  • dashboard: 7.12.0
  • dav: 1.34.2
  • drawio: 3.1.2
  • external: 7.0.0
  • federatedfilesharing: 1.22.0
  • federation: 1.22.0
  • files: 2.4.0
  • files_downloadlimit: 5.0.0-dev.0
  • files_linkeditor: 1.1.23
  • files_markdown: 2.4.1
  • files_pdfviewer: 5.0.0-dev.0
  • files_reminders: 1.5.0
  • files_sharing: 1.24.1
  • files_trashbin: 1.22.0
  • files_versions: 1.25.0
  • firstrunwizard: 5.0.0-dev.0
  • forms: 5.2.3
  • groupfolders: 20.1.6
  • ldap_contacts_backend: 1.12.0
  • ldap_write_support: 1.14.0
  • libresign: 12.1.0
  • logreader: 5.0.0-dev.0
  • lookup_server_connector: 1.20.0
  • nextcloud_announcements: 4.0.0-dev.0
  • notes: 4.12.4
  • notifications: 5.0.0-dev.0
  • oauth2: 1.20.0
  • onlyoffice: 9.12.0
  • password_policy: 4.0.0-dev.0
  • photos: 5.0.0-dev.1
  • polls: 8.6.2
  • privacy: 4.0.0-dev.0
  • profile: 1.1.0
  • provisioning_api: 1.22.0
  • recommendations: 5.0.0-dev.0
  • related_resources: 3.0.0-dev.0
  • serverinfo: 4.0.0-dev.0
  • settings: 1.15.1
  • sharebymail: 1.22.0
  • side_menu: 5.1.3
  • spreed: 22.0.7
  • support: 4.0.0-dev.0
  • survey_client: 4.0.0-dev.0
  • suspicious_login: 10.0.0-dev.0
  • systemtags: 1.22.0
  • tasks: 0.17.1
  • text: 6.0.1
  • theming: 2.7.0
  • twofactor_backupcodes: 1.21.0
  • twofactor_totp: 14.0.0
  • updatenotification: 1.22.0
  • user_ldap: 1.23.0
  • user_status: 1.12.0
  • viewer: 5.0.0-dev.0
  • weather_status: 1.12.0
  • webhook_listeners: 1.3.0
  • welcome: 1.4.0
  • workflowengine: 2.14.0
    Disabled:
  • app_api: 32.0.0 (installed 32.0.0)
  • breezedark: 29.0.0 (installed 29.0.0)
  • carnet: 0.25.12 (installed 0.25.12)
  • co2clock: 1.0.2 (installed 1.0.2)
  • encryption: 2.20.0
  • files_accesscontrol: 3.0.2 (installed 3.0.2)
  • files_external: 1.24.0
  • login_notes: 1.6.1 (installed 1.6.1)
  • piwik: 0.13.0 (installed 0.13.0)
  • ransomware_protection: 1.14.0 (installed 1.14.0)
  • twofactor_nextcloud_notification: 6.0.0-dev.0
  • user_usage_report: 3.0.0 (installed 3.0.0).

With occ ldap_contacts:list command nothing appeart