Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory fusiondirectory
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectoryfusiondirectory
  • Issues
  • #5195
Something went wrong while setting issue due date.
Closed
Open
Issue created 8 years ago by bmortier@bmortierMaintainer
  • New related issue

  • New related issue

Undefined index: dn / del_lock()

Closed

Undefined index: dn / del_lock()

I got the following (with debug enabled) error when deleting an user in FD 1.0.16-2~jenkinsbuild446

PHP error "Undefined index: dn" - File: /usr/share/fusiondirectory/include/functions.inc (Line 745)
Trace[1]: function del_lock	File: /usr/share/fusiondirectory/include/class_management.inc (Line 877)	Type: -
Arguments: "uid=..."
Trace[2]: class management / function remove_lock	File: /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc (Line 724)	Type: method
Arguments: -
Trace[3]: class simpleManagement / function removeEntryConfirmed	File: /usr/share/fusiondirectory/include/class_management.inc (Line 455)	Type: method
Arguments: "removeConfirmed",array(),array("removeConfirmed",array())
Trace[4]: class management / function handleActions	File: /usr/share/fusiondirectory/include/class_management.inc (Line 172)	Type: method
Arguments: array("removeConfirmed")
Trace[5]: class management / function execute	File: /usr/share/fusiondirectory/plugins/admin/users/main.inc (Line 47)	Type: method
Arguments: -
Trace[6]: function require	File: /usr/share/fusiondirectory/html/main.php (Line 286)	Type: -
Arguments: "/usr/share/fusiondirectory/plugins/admin/users/main.inc"

There might be a missing test in functions.inc / del_lock()

 /* Check for existance and remove the entry */
  $ldap = $config->get_ldap_link();
  $ldap->cd(get_ou('lockRDN').get_ou('fusiondirectoryRDN').$config->current['BASE']);
  $ldap->search('(&(objectClass=fdLockEntry)(fdObjectDn='.base64_encode($object).'))', array('fdObjectDn'));
  $attrs = $ldap->fetch();
  if (!$ldap->success()) {
    msg_dialog::display(_('LDAP error'), msgPool::ldaperror($ldap->get_error(), $ldap->getDN(), LDAP_DEL, ERROR_DIALOG));
    return;
  } elseif ($attrs['dn'] != '') {
    $ldap->rmdir($attrs['dn']);
  }
}

(is the case above, the 'dn' key in $attrs doesn't exist.)

(from redmine: issue id 5195, created on 2016-10-21, closed on 2016-10-24)

  • Changesets:
    • Revision 7dfa646a by Côme Chilliet on 2016-10-24T07:48:43.000Z:
Fixes #5195 Undefined index: dn / del_lock()
  • Revision 160acc95 by Côme Chilliet on 2016-10-24T07:49:17.000Z:
Fixes #5195 Undefined index: dn / del_lock()

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    0

    Link issues together to show that they're related. Learn more.

    Activity


    • bmortier
      bmortier @bmortier · 8 years ago
      Author Maintainer

      I confirm it is fixed on my side in 1.0.16-2~jenkinsbuild448

      (from redmine: written on 2016-10-24)

      By mhamant on 2017-09-02T15:33:58 (imported from GitLab)

    • bmortier
      bmortier @bmortier · 8 years ago
      Author Maintainer

      Close issue

      (from redmine: written on 2016-10-24)

      By bmortier on 2017-09-02T15:33:58 (imported from GitLab)

    • bmortier closed 7 years ago

      closed

      By bmortier on 2017-09-02T15:33:58 (imported from GitLab)

    • bmortier added Fixed label 6 years ago

      added Fixed label

      By bmortier on 2018-09-27T18:53:39 (imported from GitLab)

    Please register or sign in to reply
    Assignee
    bmortier's avatar
    bmortier
    Assign to
    Labels
    0
    None
    0
    None
      Assign labels
    • Manage project labels

    Milestone
    No milestone
    None
    Due date
    None
    None
    None
    Time tracking
    No estimate or time spent
    Confidentiality
    Not confidential
    Not confidential

    You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

    Lock issue
    Unlocked
    0
    0 Participants
    Reference:

    Menu

    Explore Projects Groups Topics Snippets