akm77 / ldapcomputers

LDAP computers - GLPI plugin
GNU General Public License v3.0
7 stars 6 forks source link

No Computer #3

Open pelachim opened 4 years ago

pelachim commented 4 years ago

When I try to Get Computer, no computer is showd. The LDAP is correct and work.

akm77 commented 4 years ago

Do you use Active Directory Controller? It was tested only on ADC. Please, double check youre Connection filter and BaseDN. The LDAP Admin (http://www.ldapadmin.org/index.html) may help you to find right both parameters.

pelachim commented 4 years ago

Hi, Yes, I use AD, and when I test connection, it passaed: Test successful: Main server AD The error: PHP Warning: ldap_search(): Search: Operations error in /var/www/html/glpi/plugins/ldapcomputers/inc/computer.class.php at line 687 The all configuration is defaul, acording to your plugin.   Can you help me please? Thanks Eder Pelachim Em Qui 13/02/20 00:24, Aleksey Kotryakhov notifications@github.com escreveu:

Do you use Active Directory Controller? It was tested only on ADC. Please, double check youre Connection filter and BaseDN. The LDAP Admin (http://www.ldapadmin.org/index.html) may help you to find right both parameters. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

akm77 commented 4 years ago

Please, give me info about your php version.

pelachim commented 4 years ago

PHP 7.3.7 (cli) (built: Jul 3 2019 11:30:22) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies with Zend OPcache v7.3.7, Copyright (c) 1999-2018, by Zend Technologies

Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 5890775 Server version: 10.1.40-MariaDB MariaDB Server

Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-957.el7.x86_64 Architecture: x86-64

akm77 commented 4 years ago

Please, try new release

pelachim commented 4 years ago

I´ve already done.

LDAP computers | ldapcomputers | 0.4 | AGPLv3+ | Habilitado | Aleksey Kotryakhov Still have the problem

akm77 commented 4 years ago

Try to use simplest filter like in this article for example (objectCategory=computer)

Ldapwiki: Active Directory Computer Related LDAP Query https://ldapwiki.com/wiki/Active%20Directory%20Computer%20Related%20LDAP%20Query

The LDAP Admin (http://www.ldapadmin.org/index.html) may help you to find right DN and filter

Сould you send an error log file php-errors.log located in /var/www/glpi/files/_log folder

I hope you succeed Regards

EC2311 commented 4 years ago

Hello

I confirm Plugin : 0.4 GLPI 9.4.3

The test of Ldap is ok. when trying to get computer (with the small rectangle and arrow) no computer

In log : [2020-02-26 14:51:41] glpiphplog.ERROR: Toolbox::userErrorHandlerNormal() in wwwroot\inc\toolbox.class.php line 659 *** PHP Warning(2): ldap_search(): Search: Can't contact LDAP server Backtrace : :
plugins\ldapcomputers\inc\computer.class.php:717 ldap_search() plugins\ldapcomputers\inc\computer.class.php:656 PluginLdapcomputersComputer::searchForComputers() plugins\ldapcomputers\inc\computer.class.php:475 PluginLdapcomputersComputer::getAllComputers() plugins\ldapcomputers\inc\computer.class.php:453 PluginLdapcomputersComputer::importLdapComputers() plugins\ldapcomputers\front\ldap.import.php:66 PluginLdapcomputersComputer::searchComputers()

EC2311 commented 4 years ago

In fact :

akm77 commented 4 years ago

Hm... Go to the LDAP computers config, open settings of your domain controller. Than go to Advanced information and change Use paged results from No to Yes

Try to use filter like in this article

Ldapwiki: Active Directory Computer Related LDAP Query

https://ldapwiki.com/wiki/Active%20Directory%20Computer%20Related%20LDAP%20Query

EC2311 commented 4 years ago

it's ok, and setting size page to 2000. Thanks