glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.12k stars 1.28k forks source link

User drop down list doesn't show all already users imported from LDAP #7871

Closed jcervantes-sipecom closed 4 years ago

jcervantes-sipecom commented 4 years ago

Describe the bug

I got Users sync from LDAP, but not all users appears or shows whean trying selecting from a Dropdown user box like:

In the dropdowns just appears 64 users from a total of 101 in Administration > Users

Page(s) URL

To reproduce

Steps to reproduce the behavior:

  1. Go to 'Asset > Computers > Computer'
  2. Click on 'User' Dropdown
  3. Scroll down to the entire list
  4. Doesn't show the 101 users from the LDAP just 64 users

Expected behavior

Show the entire list of users, the 101 users sync from LDAP, but only show 64.

Your GLPI setup (you can find it in Setup > General menu, System tab)


GLPI 9.4.6 ( => /var/www/html/glpi) Installation mode: TARBALL
--

Operating system: Linux sg01ilinv3sipe 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 PHP 7.2.24-0ubuntu0.18.04.6 apache2handler (Core, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler,   apc, apcu, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, json,  ldap, libxml, mbstring, memcache, mysqli, mysqlnd, odbc, openssl, pcre, pdo_mysql, posix, pspell, readline, recode, session,    shmop, snmp, soap, sockets, sodium, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc,     xmlwriter, xsl, zip, zlib) Setup: max_execution_time="30" memory_limit="1024M" post_max_size="8M" safe_mode="" session.save_handler="files"     upload_max_filesize="2M"  Software: Apache/2.4.29 (Ubuntu) (Apache/2.4.29 (Ubuntu) Server at glpi.sipecom-apps.ml Port 443)     Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36 Server Software: mariadb.org binary distribution  Server Version: 10.4.12-MariaDB-1:10.4.12+maria~bionic  Server SQL Mode:    Parameters: glpi@127.0.0.1/glpi     Host info: 127.0.0.1 via TCP/IP      mysqli extension is installed ctype extension is installed fileinfo extension is installed json extension is installed mbstring extension is installed iconv extension is installed zlib extension is installed curl extension is installed gd extension is installed simplexml extension is installed xml extension is installed ldap extension is installed imap extension is installed Zend OPcache extension is installed APCu extension is installed xmlrpc extension is installed CAS extension is installed exif extension is installed Database version seems correct (10.4.12) - Perfect! /var/www/html/glpi/files/_log : OK /var/www/html/glpi/config : OK /var/www/html/glpi/files : OK /var/www/html/glpi/files/_dumps : OK /var/www/html/glpi/files/_sessions : OK /var/www/html/glpi/files/_cron : OK /var/www/html/glpi/files/_graphs : OK /var/www/html/glpi/files/_lock : OK /var/www/html/glpi/files/_plugins : OK /var/www/html/glpi/files/_tmp : OK /var/www/html/glpi/files/_cache : OK /var/www/html/glpi/files/_rss : OK /var/www/html/glpi/files/_uploads : OK /var/www/html/glpi/files/_pictures : OK Web access to the files directory should not be allowed but this cannot be checked automatically on this instance. Make sure acces to error log file is forbidden; otherwise review .htaccess file and web server configuration.

htmLawed version 1.2.4 in (/var/www/html/glpi/lib/htmlawed) phpmailer/phpmailer version 6.0.7 in (/var/www/html/glpi/vendor/phpmailer/phpmailer/src) simplepie/simplepie version 1.5.3 in (/var/www/html/glpi/vendor/simplepie/simplepie/library) tecnickcom/tcpdf version 6.3.2 in (/var/www/html/glpi/vendor/tecnickcom/tcpdf) michelf/php-markdown in (/var/www/html/glpi/vendor/michelf/php-markdown/Michelf) true/punycode in (/var/www/html/glpi/vendor/true/punycode/src) iamcal/lib_autolink in (/var/www/html/glpi/vendor/iamcal/lib_autolink) sabre/vobject in (/var/www/html/glpi/vendor/sabre/vobject/lib) zendframework/zend-cache in (/var/www/html/glpi/vendor/zendframework/zend-cache/src) zendframework/zend-i18n in (/var/www/html/glpi/vendor/zendframework/zend-i18n/src) zendframework/zend-serializer in (/var/www/html/glpi/vendor/zendframework/zend-serializer/src) monolog/monolog in (/var/www/html/glpi/vendor/monolog/monolog/src/Monolog) sebastian/diff in (/var/www/html/glpi/vendor/sebastian/diff/src) elvanto/litemoji in (/var/www/html/glpi/vendor/elvanto/litemoji/src) symfony/console in (/var/www/html/glpi/vendor/symfony/console) leafo/scssphp in (/var/www/html/glpi/vendor/leafo/scssphp/src) phpCas version 1.3.3 in (/usr/share/php)

Server: 'x.x.x.x', Port: '389', BaseDN: 'OU=X', Connection filter:      '(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))', RootDN: 'CN=X', Use TLS: none

Not active

Way of sending emails: SMTP+TLS (X)

Name: X Password: Yes

accounts             Name: Accounts                       Version: 2.5.0      State: Enabled    activity             Name: Activities                     Version: 2.5.0      State: Enabled    actualtime           Name: ActualTime                     Version: 1.3.1      State: Enabled    fields               Name: Additionnal fields             Version: 1.10.3     State: Enabled    news                 Name: Alerts                         Version: 1.6.0      State: Enabled    archisw              Name: Apps structures                Version: 2.1.3      State: Not activated  cleanarchivedemails  Name: Archived eMail clean           Version: 1.3.1      State: Enabled    impacts              Name: Asset impacts                  Version: 1.3.5      State: Enabled    barcode              Name: Barcode                        Version: 2.4.1      State: Enabled    behaviors            Name: Behaviours                     Version: 2.3.0      State: Enabled    positions            Name: Cartography                    Version: 4.6.0      State: Enabled    childticketmanager   Name: Child ticket manager           Version: 2.1.3      State: Not activated  consumables          Name: Consumable request             Version: 1.5.0      State: Enabled    costs                Name: Costs                          Version: 1.2.0      State: Enabled    credit               Name: Credit vouchers                Version: 1.6.2      State: Not activated  dashboard            Name: Dashboard                      Version: 0.9.9      State: Not activated  mydashboard          Name: Dashboard access               Version: 1.7.8      State: Enabled    databases            Name: Databases                      Version: 2.2.1      State: Enabled    dataflows            Name: Dataflows                      Version: 2.1.0      State: Not activated  archimap             Name: Diagrams                       Version: 2.1.3      State: Enabled    domains              Name: Domains                        Version: 2.1.0      State: Enabled    dporegister          Name: DPO Register                   Version: 1.4        State: Not activated  manageentities       Name: Entities portal                Version: 3.1.0      State: Not activated  environment          Name: Environment                    Version: 2.3.0      State: Enabled    escalade             Name: Escalation                     Version: 2.4.4      State: Enabled    datainjection        Name: File injection                 Version: 2.7.0      State: Not activated  financialreports     Name: Financial reports              Version: 2.6.0      State: Not activated  formcreator          Name: Form Creator                   Version: 2.10.1     State: Enabled    formvalidation       Name: Form Validation                Version: 0.6.3      State: Not activated  fpconsumables        Name: FP Consumables                 Version: 1.3.0      State: Not activated  fpsoftware           Name: FP Software                    Version: 1.4.0      State: Not activated  archifun             Name: Functional Areas               Version: 2.1.0      State: Not activated  fusioninventory      Name: FusionInventory                Version: 9.4+2.4    State: Enabled    gappessentials       Name: Gapp Essentials                Version: 1.1.0      State: Enabled    gdrive               Name: GDrive                         Version: 1.2.0      State: Not activated  mod                  Name: GLPI Modifications             Version: 1.5.5      State: Enabled    resources            Name: Human Resources                Version: 2.6.3      State: Not activated  geninventorynumber   Name: Inventory number generation    Version: 2.4.1      State: Enabled    addressing           Name: IP Adressing                   Version: 2.8.0      State: Enabled    uninstall            Name: Item's Lifecycle (uninstall)   Version: 2.6.2      State: Not activated  itilcategorygroups   Name: ItilCategory Groups            Version: 2.3.0      State: Not activated  mailanalyzer         Name: Mail Analyzer                  Version: 1.6.1      State: Not activated  mask                 Name: Mask                           Version: 2.3.0      State: Not activated  metademands          Name: Meta-Demands                   Version: 2.6.0      State: Not activated  metabase             Name: metabase                       Version: 1.0.0      State: Not activated  mreporting           Name: More Reporting                 Version: 1.6.1      State: Enabled    satisfaction         Name: More satisfaction              Version: 1.4.3      State: Not activated  moreticket           Name: More ticket                    Version: 1.5.1      State: Enabled    notifications        Name: Notifications                  Version: 9.4+1.0    State: Enabled    genericobject        Name: Objects management             Version: 2.8.0      State: Enabled    ocsinventoryng       Name: OCS Inventory NG               Version: 1.6.1      State: Enabled    officeonline         Name: Office Online                  Version: 1.3.2      State: Enabled    order                Name: Orders management              Version: 2.5.3      State: Enabled    additionalalerts     Name: Others alerts                  Version: 2.2.0      State: Not activated  pdf                  Name: Print to pdf                   Version: 1.6.0      State: Enabled    printercounters      Name: Printer counters               Version: 1.6.0      State: Enabled    processmaker         Name: Process Maker                  Version: 3.6.5      State: Not activated  reports              Name: Reports                        Version: 1.13.1     State: Enabled    reservation          Name: Reservation                    Version: 2.2.0      State: Enabled    shellcommands        Name: Shell Commands                 Version: 2.3.0      State: Enabled    statecheck           Name: Statecheck Rules               Version: 2.1.0      State: Not activated  manufacturersimports Name: Suppliers imports              Version: 2.2.0      State: Not activated  tag                  Name: Tag Management                 Version: 2.6.0      State: Not activated  taskdrop             Name: TaskDrop                       Version: 1.1.0      State: Enabled    tasklists            Name: Tasks list                     Version: 1.5.1      State: Enabled    ticketcleaner        Name: Ticket Cleaner                 Version: 2.5.1      State: Not activated  timelineticket       Name: Timeline of tickets            Version: 9.4+1.0    State: Enabled    timezones            Name: Timezones                      Version: 2.5.2      State: Not activated  treeview             Name: Tree view                      Version: 1.8.1      State: Not activated  typology             Name: Typologies                     Version: 2.6.0      State: Not activated  useditemsexport      Name: Used items export              Version: 2.3.0      State: Enabled    webapplications      Name: Web applications               Version: 2.6.0      State: Enabled    yagp                 Name: yagp                           Version: 1.0.1      State: Enabled

Host: 127.0.0.1Connection: OkUse the OCSNG software dictionary: Yes
cedric-anne commented 4 years ago

Hi,

This list is filtered to only show users that are active and valids. Can you check, that hidden users are active and valid ? image

Regards

jcervantes-sipecom commented 4 years ago

Thank you very much, you were right, although the users were active, the "valid since" was with the date 2038, I don't know how that date was configured, but by changing it with a massive update to a more recent date, all users appeared in the dropdown list.