Comments (1)
After few researches
I found the way to do it !
Update the request in inc/Computer.class.php
Old request :
/* $select = "SELECT DISTINCT
glpi_plugin_ldapcomputers_computers
.id
,
objectGUID
,
plugin_ldapcomputers_states_id
,
plugin_ldapcomputers_configs_id
,
is_in_glpi_computers
,
IF ( ISNULL(glpi_computers
.name
) ,0 ,1 ) AS inglpi
FROM
glpi_plugin_ldapcomputers_computers
LEFT JOIN
glpi_computers
ON
glpi_plugin_ldapcomputers_computers
.name
= glpi_computers
.name
"; */
New Request
$select = "SELECT DISTINCT
glpi_plugin_ldapcomputers_computers
.id
,
objectGUID
,
plugin_ldapcomputers_states_id
,
plugin_ldapcomputers_configs_id
,
is_in_glpi_computers
,
IF ( (ISNULL(glpi_computers
.name
) and isnull(glpi_clusters
.name
)) , 0 ,1 ) AS inglpi
FROM
glpi_plugin_ldapcomputers_computers
LEFT JOIN
glpi_computers
ON
glpi_plugin_ldapcomputers_computers
.name
= glpi_computers
.name
LEFT JOIN
glpi_clusters
ON
glpi_plugin_ldapcomputers_computers
.name
= glpi_clusters
.name
and it works.
";
from ldapcomputers.
Related Issues (15)
- Your plugin submission HOT 2
- Getting the computer attributes
- compatibility with GLPI 9.5.0 HOT 4
- Compatibilité HOT 1
- FQDN seems to be user to match with GLPI names HOT 1
- Match between GLPI name and plugin is done by FQDN HOT 2
- GLPI 9.5.5 incompatible HOT 1
- No directory associated to entity: impossible search HOT 1
- No Computer HOT 11
- How to help HOT 1
- Insertion into Computer HOT 10
- Status of Computer in AD HOT 3
- Conflict when two computers have the same name in different domains HOT 3
- Translation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldapcomputers.