Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-14907

Cant edit OpenLDAP User

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 13
    • Fix Version/s: None
    • Component/s: User Management
    • Labels:
      None
    • Bug Tracker:
      Customer Issue
    • ToDo:
    • Asterisk Version:
      13.15.0
    • Distro Version:
      10.13.66-18
    • Distro:
      FreePBX Distro

      Description

      Users imported through the new openLDAP module can't be edited in the "Users" list.

      Userman Version: 13.0.76 (Edge Track)

       

      Action results in:

      Whoops \ Exception \ ErrorException (E_ERROR)

      Call to undefined method FreePBX\View::destinationUsage()

      1. case 'adduser':
      2. if($action == 'showuser' && !empty($request['user'])) {
      3. $user = $this->getUserByID($request['user']);
      4. $assigned = $this->getGlobalSettingByID($request['user'],'assigned');
      5. $assigned = !(empty($assigned)) ? $assigned : array();
      6. $default = $user['default_extension'];
      7. $directory = $user['auth'];
      8. $usage_html = \FreePBX::View()->destinationUsage("ext-fax,$request[user],1");
      9. } else {
      10. $user = array();

       

       
      Server/Request Data

      SCRIPT_URL /admin/config.php
      SCRIPT_URI http://host.example/admin/config.php
      HTACCESS on
      HTTP_HOST host.example
      HTTP_CONNECTION keep-alive
      HTTP_UPGRADE_INSECURE_REQUESTS 1
      HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
      HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
      HTTP_DNT 1
      HTTP_REFERER http://host.example/admin/config.php?display=userman
      HTTP_ACCEPT_ENCODING gzip, deflate, sdch
      HTTP_ACCEPT_LANGUAGE en-US,en;q=0.8,de-DE;q=0.6,de;q=0.4
      HTTP_COOKIE lang=en_US; searchHide=1; PHPSESSID=fedgkjdsgmpi0t18r13lsqs2u2
      PATH /sbin:/usr/sbin:/bin:/usr/bin
      SERVER_SIGNATURE <address>Apache/2.2.15 (CentOS) Server at host.example Port 80</address>
      SERVER_SOFTWARE Apache/2.2.15 (CentOS)
      SERVER_NAME host.example
      SERVER_ADDR 10.30.0.5
      SERVER_PORT 80
      REMOTE_ADDR 10.32.1.25
      DOCUMENT_ROOT /var/www/html
      SERVER_ADMIN root@localhost
      SCRIPT_FILENAME /var/www/html/admin/config.php
      REMOTE_PORT 50140
      GATEWAY_INTERFACE CGI/1.1
      SERVER_PROTOCOL HTTP/1.1
      REQUEST_METHOD GET
      QUERY_STRING display=userman&action=showuser&user=6
      REQUEST_URI /admin/config.php?display=userman&action=showuser&user=6
      SCRIPT_NAME /admin/config.php
      PHP_SELF /admin/config.php
      REQUEST_TIME 1495999459

      GET Data

      display userman
      action showuser
      user 6

      POST Dataempty
      Filesempty
      Cookies

      lang en_US
      searchHide 1
      PHPSESSID fedgkjdsgmpi0t18r13lsqs2u2

      Session

      langdirection ltr
      module_name userman
      module_page userman
      AMP_user ampuser Object ( [username] => admin [id] => [password:ampuser:private] => a692e8c73826b98ecbe04918e82ec41721abb1d9 [extension_high:ampuser:private] => [extension_low:ampuser:private] => [sections:ampuser:private] => Array ( [0] => [1] => * [2] => 999 [3] => ampusers [4] => advancedsettings [5] => announcement [6] => 99 [7] => cli [8] => iaxsettings [9] => asteriskinfo [10] => logfiles_settings [11] => logfiles [12] => manager [13] => astmodules [14] => phonebook [15] => arimanager [16] => sipsettings [17] => backup [18] => backup_restore [19] => backup_servers [20] => backup_templates [21] => blacklist [22] => bulkhandler [23] => cdr [24] => superfecta [25] => cel [26] => daynight [27] => callrecording [28] => callback [29] => cidlookup [30] => certman [31] => conferences [32] => configedit [33] => contactmanager [34] => customdests [35] => customextens [36] => dahdichandids [37] => disa [38] => index [39] => devices [40] => directory [41] => extensions [42] => fax [43] => featurecodeadmin [44] => firewall [45] => findmefollow [46] => wiki [47] => ivr [48] => did [49] => languages [50] => miscapps [51] => miscdests [52] => modules [53] => music [54] => irc [55] => routing [56] => phpinfo [57] => pinsets [58] => paging [59] => parking [60] => presencestate [61] => printextensions [62] => queueprio [63] => queues [64] => restapi [65] => restapi_logs [66] => ringgroups [67] => outroutemsg [68] => setcid [69] => soundlang [70] => sysadmin [71] => recordings [72] => tts [73] => ttsengines [74] => timeconditions [75] => timegroups [76] => trunks [77] => ucptab [78] => userman [79] => users [80] => voicemail [81] => vmblast [82] => hotelwakeup [83] => weakpasswords ) [mode:ampuser:private] => database [opmode:ampuser:private] => [_lastactivity] => 1495999460 )

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  GameGamer43 Bryan Walters
                  Reporter:
                  ebeha Hannes Eberhardt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    NextupJiraPlusStatus

                    Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.