Giter Site home page Giter Site logo

No Computer about ldapcomputers HOT 11 OPEN

pelachim avatar pelachim commented on August 10, 2024
No Computer

from ldapcomputers.

Comments (11)

akm77 avatar akm77 commented on August 10, 2024

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.

from ldapcomputers.

pelachim avatar pelachim commented on August 10, 2024

from ldapcomputers.

akm77 avatar akm77 commented on August 10, 2024

Please, give me info about your php version.

from ldapcomputers.

pelachim avatar pelachim commented on August 10, 2024

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

from ldapcomputers.

akm77 avatar akm77 commented on August 10, 2024

Please, try new release

from ldapcomputers.

pelachim avatar pelachim commented on August 10, 2024

I´ve already done.

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

from ldapcomputers.

akm77 avatar akm77 commented on August 10, 2024

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

from ldapcomputers.

EC2311 avatar EC2311 commented on August 10, 2024

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()

from ldapcomputers.

EC2311 avatar EC2311 commented on August 10, 2024

In fact :

  • after activating the LDAP server (in glpi), the filter is set to blank : we have to reset the filter
  • there is still an error (due to size of ldap )
    *** PHP Warning(2): ldap_search(): Partial search results returned: Sizelimit exceeded
    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()

from ldapcomputers.

akm77 avatar akm77 commented on August 10, 2024

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

from ldapcomputers.

EC2311 avatar EC2311 commented on August 10, 2024

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

from ldapcomputers.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.