owncloud / owncloud/user_ldap

Undefined array key "mail" at /var/www/html/apps/user_ldap/lib/Access.php#555

Open
#829 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
17
Forks
19
Avg merge
11h 40m
Merged PRs (30d)
2

Description

I have the LDAP integration tweaked to create the Account Name from the users email address defined in AD. Using the standard uid account name was creating problems getting Exchange to sync using Sendent Sync. I went into the Expert screen and put in 'mail' for 'Internal Username Attribute'. This seems to have fixed my problem, all of my users were synced over but now have their email address used for Account Name within NC. Sendent also seems to be able to sync now, so all is well.

Except for an issue popping up every 10 minutes in the logs.

I now see an entry every 10 minutes of:

Error | PHP | Undefined array key "mail" at /var/www/html/apps/user_ldap/lib/Access.php#555

Does it not like that I typed in mail for the Internal Username Attribute?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in apps/user_ldap/lib/Access.php around line 555 and reproduce the warning with Internal Username Attribute set to 'mail'. Trace how the LDAP attributes are read when a user lacks that key, then verify that the warning no longer appears while email-based account names and synchronization continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
authentication
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.