You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2012-06-01 11:15:05

Rackham
Member
Registered: 2010-09-30
Posts: 22

Webservices test xmlrpc.php

Bonjour ,

Sur une install Centos 6.2 de GLPI  0.80.7+ Shinken 1.01 ... je n arrive pas a utilisé le webservices sur le Plugng monitoring .

Il s agit d un Pb avec le Webservices

Le test php Xmlrpc present dans le dossier scripts du plugins Webservices me donne ceci :
j ai refait un  chown -R apache glpi et redemarré apache .. IDEM...

[root@extranet scripts]# php examplexmlrpc.php
+ Calling glpi.doLogin on
xmlrpc error(1): Accès refusé
+ Calling glpi.createObjects
xmlrpc error(1): Accès refusé
+ Calling glpi.doLogout on
xmlrpc error(1): Accès refusé
+ Calling glpi.doLogin on
xmlrpc error(1): Accès refusé
+ Calling glpi.createObjects on
xmlrpc error(1): Accès refusé
+ Calling glpi.createObjects on "http://localhost//glpi/plugins/webservices/xmlrpc.php"
xmlrpc error(1): Accès refusé
+ Calling glpi.createObjects
xmlrpc error(1): Accès refusé
+ Calling glpi.createObjects
xmlrpc error(1): Accès refusé
+ Calling glpi.createObjects
xmlrpc error(1): Accès refusé
+ Calling glpi.doLogout
xmlrpc error(1): Accès refusé
+ Calling glpi.doLogin
xmlrpc error(1): Accès refusé
+ Calling glpi.getObject
xmlrpc error(1): Accès refusé
+ Calling glpi.doLogout
xmlrpc error(1): Accès refusé

Offline

#2 2012-06-01 11:34:43

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Webservices test xmlrpc.php

Check, in "Plugin / Webservices"  to see if your client (IP address) is allowed to connect


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2012-06-01 15:00:05

Rackham
Member
Registered: 2010-09-30
Posts: 22

Re: Webservices test xmlrpc.php

remi wrote:

Check, in "Plugin / Webservices"  to see if your client (IP address) is allowed to connect

????...

je ne comprend pas ? dans Glpi le plugins webservices n a pas de check?

En ssh ?

tout est installé sur le meme serveur ... j ai essayé de changé les adresse ip du pluging sur les parametrage du profil Shinken ,

127.0.0.1...La plage ip du lan... rien n y fait ...

Faut il crée un profil dans le plugins webservice pour se servir des test php ?
il en existe un par default ...

j ai ce message sur les parametrage de ces profils webservices ...???

Configuration globale : modifier le fichier .htaccess livré
Désactivation dynamique par client possible
Activation dynamique nécessite PHP > 5.3.0


Je na i pas de fichier .htaccess dans les dossier glpi...ni dans ceux des plugins...

Last edited by Rackham (2012-06-01 15:01:27)

Offline

#4 2012-06-01 15:03:52

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Webservices test xmlrpc.php

Dans la config du clietn, passer en mode "debug" + journaux en fichier
faire l'appel et regarder se qui passe dans le fichier webservices.log.


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#5 2012-06-01 15:58:03

Rackham
Member
Registered: 2010-09-30
Posts: 22

Re: Webservices test xmlrpc.php

Je suis en Mode Debug...+ journeaux en fichier

"Menu Configuration / Générale
Onglet Configuration Générale
Traceurs dans fichiers (SQL, mail, cron…) : Oui
Menu Préférences (en haut à droite de la page, à côté de Déconnexion)
Onglet Principal
Utiliser GLPI en Mode : Debug"

+ Niveau de journalisation 5 "TOUT"


ca veut dire quoi faire l appel ?...

Récupération des erreurs
Erreurs PHP dans le fichier glpi/files/_log/php_error.log
Erreurs SQL dans le fichier glpi/files/_log/sql_error.log

je n ai pas de dossier "files" dans GLPI ...???

et pas de Fichier *.log dans /usr/share ...


En relancant le test PHP je n ai plus qu une ligne :


php testxmlrpc.php
+ Calling 'glpi.test' on http://localhost//glpi/plugins/webservices/xmlrpc.php
xmlrpc error(1): Accès refusé

Last edited by Rackham (2012-06-01 16:02:12)

Offline

#6 2012-06-01 16:02:02

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Webservices test xmlrpc.php

Mode debug pour le client:
=> Plugins / WebServices
=> Local (ou autre, suivant le nom du client)
=> Tracer les connexions => Journaux
=> Debug : => Oui

Vous avez installé en RPM ?
Dans ce cas les journaux sont dans /var/log/glpi.... pour respecter ce qui se fait en standard sous Linux.


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#7 2012-06-01 16:13:33

Rackham
Member
Registered: 2010-09-30
Posts: 22

Re: Webservices test xmlrpc.php

Mode debug pour le client:
=> Plugins / WebServices
=> Local (ou autre, suivant le nom du client)
=> Tracer les connexions => Journaux
=> Debug : => Oui

c est Fait

Vous avez installé en RPM ?
Dans ce cas les journaux sont dans /var/log/glpi.... pour respecter ce qui se fait en standard sous Linux.

les xml soap php oui..sur vos depots ...
glpi en yum ...
les plugins en copiant les fichiers...

j ai ca dans les Logs :


2012-06-01 16:05 [@extranet]
Warning(2): include_once(): Failed opening '../../plugins/bestmanagement/inc/function.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php')
Backtrace :
/usr/share/glpi/plugins/bestmanagement-1.4/setup.php:7        userErrorHandlerNormal()
/usr/share/glpi/plugins/bestmanagement-1.4/setup.php:7        include_once()
/usr/share/glpi/inc/plugin.class.php:200        include_once()
/usr/share/glpi/inc/plugin.class.php:85        Plugin->checkStates()
/usr/share/glpi/inc/includes.php:168        Plugin->init()
/usr/share/glpi/plugins/webservices/xmlrpc.php:59        include()

J ai deja  des-instal bestmanagement...

dans Webservice.log :



2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogin, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogout, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogin, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogout, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogin, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.getObject, xml-rpc)
2012-06-01 11:01 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogout, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogin, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogout, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogin, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogout, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogin, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.getObject, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogout, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogin, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogout, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogin, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.createObjects, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogout, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogin, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.getObject, xml-rpc)
2012-06-01 11:12 [@extranet]
Accès refusé (anonymous, ::1, glpi.doLogout, xml-rpc)
2012-06-01 11:26 [@extranet]
Accès refusé (anonymous, ::1, glpi.test, soap)
2012-06-01 11:27 [@extranet]
Accès refusé (anonymous, ::1, glpi.test, xml-rpc)
2012-06-01 14:55 [@extranet]
Accès refusé (anonymous, ::1, glpi.test, xml-rpc)
2012-06-01 16:05 [@extranet]
Accès refusé (anonymous, ::1, glpi.test, xml-rpc)
2012-06-01 16:05 [@extranet]
Accès refusé (anonymous, ::1, glpi.test, xml-rpc)

Re-test  php en SSH:
2012-06-01 16:23 [@extranet]
Accès refusé (anonymous, ::1, glpi.test, xml-rpc)

Modif des login mdp sur le parametrage glpi-test : glpi/glpi
Ip :127.0.0.1-127.0.0.1


dans les errror_log httpd :

PHP Notice:  Undefined index: argc in /usr/share/glpi/plugins/webservices/scripts/testxmlrpc.php on line 44


Ligne 44 ...
// ----------------------------------------------------------------------
// Original Author of file: Remi Collet
// Purpose of file: Test the XML-RPC plugin from Command Line
// ----------------------------------------------------------------------

if (!extension_loaded("xmlrpc")) {
   die("Extension xmlrpc not loaded\n");
}
chdir(dirname($_SERVER["SCRIPT_FILENAME"]));
chdir("../../..");
$url = "/".basename(getcwd())."/plugins/webservices/xmlrpc.php";

$args=array();
-> if ($_SERVER['argc']>1) {   ???? ligne 44 ...
   for ($i=1 ; $i<count($_SERVER['argv']) ; $i++) {
      $it = explode("=",$argv[$i],2);
      $it[0] = preg_replace('/^--/','',$it[0]);
      $args[$it[0]] = (isset($it[1]) ? $it[1] : true);
   }


Sans rapport sans doute mais on sait jamais...

PHP User Notice: GLPI autoload : file ../plugins/monitoring/inc/networkport.class.php not founded trying to load class 'PluginMonitoringNetworkport' in /usr/share/glpi/inc/includes.php at line 98
en rouge sur L onglet monitoring d un Switch ...
???

Last edited by Rackham (2012-06-01 16:42:14)

Offline

#8 2012-06-01 16:45:59

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Webservices test xmlrpc.php

L'accès est réfusé pour l'adresse ::1 (loppback IPv6)

Les adresses IPv6 sont gérés par WebServices pour GLPI 0.83, pas avant.
Donc il faut forcé l'appel via l'adresse 127.0.0.1

Donc

cd /usr/share/glpi/plugins/webservices/scripts
php testxmlrpc.php --host=127.0.0.1

Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#9 2012-06-01 16:47:17

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Webservices test xmlrpc.php

dans les errror_log httpd :

PHP Notice:  Undefined index: argc in /usr/share/glpi/plugins/webservices/scripts/testxmlrpc.php on line 44

Le testxmlrpc.php n'est pas fait pour être utilisé en mode web, mais en ligne de commande.


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#10 2012-06-01 16:51:43

Rackham
Member
Registered: 2010-09-30
Posts: 22

Re: Webservices test xmlrpc.php

j ai essayé...

le testxlmrpc.php est lancé avec putty ... il n y a pas de parametre a passé  ?

tout ce que je comprend pour l instant dans les logs..; c est qu en mettan glpi glpi en Login/mdp , jhe n ai qu une ligne de log acces refusé .. en laissant vide .. j en ai plus...mais tjrs en acces refusé ?


j ai redemarré le serveur .. laissé les login mdp et ip vide sur le glpi-test du webservice ///


Execute method:glpi.doLogin, function:PluginWebservicesMethodSession::methodLogin (xml-rpc), duration:0.149, size:133
2012-06-01 16:58 [2@extranet]
Connexion: anonymous, ::1
Protocol: xml-rpc, Method: glpi.doLogin, Function: PluginWebservicesMethodSession::methodLogin
Params: Array
(
    [method] => glpi.doLogin
    [login_name] => glpi
    [login_password] => glpi
)
Compression: Server:/, Config:0, Agent:?
Duration: 0.149s
Response size: 133
Response content: Array
(
    [id] => 2
    [name] => glpi
    [realname] => 
    [firstname] => 
    [session] => 7l1e77coihtdg02nk54mvvi7d2
)
2012-06-01 16:58 [2@extranet]
Execute method:glpi.createObjects, function:PluginWebservicesMethodInventaire::methodCreateObjects (xml-rpc), duration:0.111, size:203
2012-06-01 16:58 [2@extranet]
Connexion: glpi, ::1
Protocol: xml-rpc, Method: glpi.createObjects, Function: PluginWebservicesMethodInventaire::methodCreateObjects
Params: Array
(
    [session] => 7l1e77coihtdg02nk54mvvi7d2
    [method] => glpi.createObjects
    [fields] => Array
        (
            [Entity] => Array
                (
                    [0] => Array
                        (
                            [name] => WSXML-RPC_Entity_01_TESTING
                            [entities_id] => 0
                            [completename] => Entity WEBSERVICES TEST
                            [comment] => TEST Entity for webservices.
                            [level] => 1
                        )

                )

        )

)
Compression: Server:/, Config:0, Agent:?
Duration: 0.111s
Response size: 203
Response content: Array
(
    [Entity] => Array
        (
            [0] => Array
                (
                    [completename] => WSXML-RPC_Entity_01_TESTING
                    [id] => 4
                    [name] => WSXML-RPC_Entity_01_TESTING
                    [comment] => TEST Entity for webservices.
                )

        )

)
2012-06-01 16:58 [@extranet]
Execute method:glpi.doLogout, function:PluginWebservicesMethodSession::methodLogout (xml-rpc), duration:0.087, size:31
2012-06-01 16:58 [@extranet]
Connexion: anonymous, ::1
Protocol: xml-rpc, Method: glpi.doLogout, Function: PluginWebservicesMethodSession::methodLogout
Params: Array
(
    [method] => glpi.doLogout
)
Compression: Server:/, Config:0, Agent:?
Duration: 0.087s
Response size: 31
Response content: Array
(
    [message] => Bye 
)
2012-06-01 16:58 [2@extranet]
Execute method:glpi.doLogin, function:PluginWebservicesMethodSession::methodLogin (xml-rpc), duration:0.144, size:133
2012-06-01 16:58 [2@extranet]
Connexion: anonymous, ::1
Protocol: xml-rpc, Method: glpi.doLogin, Function: PluginWebservicesMethodSession::methodLogin
Params: Array
(
    [method] => glpi.doLogin
    [login_name] => glpi
    [login_password] => glpi
)
Compression: Server:/, Config:0, Agent:?
Duration: 0.144s
Response size: 133
Response content: Array
(
    [id] => 2
    [name] => glpi
    [realname] => 
    [firstname] => 
    [session] => aieagip34kp9ed6bsf14vtnb43
)
2012-06-01 16:58 [2@extranet]
Execute method:glpi.createObjects, function:PluginWebservicesMethodInventaire::methodCreateObjects (xml-rpc), duration:0.116, size:530
2012-06-01 16:58 [2@extranet]
Connexion: glpi, ::1
Protocol: xml-rpc, Method: glpi.createObjects, Function: PluginWebservicesMethodInventaire::methodCreateObjects
Params: Array
(
    [session] => aieagip34kp9ed6bsf14vtnb43
    [method] => glpi.createObjects
    [fields] => Array
        (
            [Profile] => Array
                (
                    [0] => Array
                        (
                            [name] => WSXML-RPC_Profile_01_TESTING
                            [interface] => helpdesk
                            [faq] => r
                            [reservation_helpdesk] => 1
                            [create_ticket] => 1
                            [add_followups] => 1
                            [observe_ticket] => 1
                            [password_update] => 1
                            [helpdesk_hardware] => 1
                            [helpdesk_item_type] => Array
                                (
                                    [0] => Computer
                                    [1] => Monitor
                                )

                            [show_group_ticket] => 0
                            [show_group_hardware] => 0
                            [is_default] => 0
                        )

                )

        )

)
Compression: Server:/, Config:0, Agent:?
Duration: 0.116s
Response size: 530
Response content: Array
(
    [Profile] => Array
        (
            [0] => Array
                (
                    [name] => WSXML-RPC_Profile_01_TESTING
                    [date_mod] => 2012-06-01 16:58:03
                    [interface] => helpdesk
                    [is_default] => 0
                    [faq] => r
                    [reservation_helpdesk] => 1
                    [create_ticket] => 1
                    [add_followups] => 1
                    [observe_ticket] => 1
                    [helpdesk_hardware] => 1
                    [helpdesk_item_type] => ["Computer","Monitor"]
                    [show_group_ticket] => 0
                    [show_group_hardware] => 0
                    [password_update] => 1
                    [id] => 5
                )

        )

)
2012-06-01 16:58 [2@extranet]
Execute method:glpi.createObjects, function:PluginWebservicesMethodInventaire::methodCreateObjects (xml-rpc), duration:0.135, size:635
2012-06-01 16:58 [2@extranet]
Connexion: glpi, ::1
Protocol: xml-rpc, Method: glpi.createObjects, Function: PluginWebservicesMethodInventaire::methodCreateObjects
Params: Array
(
    [session] => aieagip34kp9ed6bsf14vtnb43
    [method] => glpi.createObjects
    [fields] => Array
        (
            [User] => Array
                (
                    [0] => Array
                        (
                            [name] => WSXML-RPC_User_01_TESTING
                            [password] => c4369310f7201c2d313262e0a1dbb5f6
                            [realname] => Xml-Rpc TEST
                            [firstname] => Xml-Rpc USER
                            [use_mode] => 0
                            [entities_id] => 4
                            [profiles_id] => 5
                        )

                )

            [Group] => Array
                (
                    [0] => Array
                        (
                            [name] => WSXML-RPC_Group_01_TESTING
                            [comment] => TEST Group for Webservices.
                            [entities_id] => 4
                            [is_recursive] => 1
                        )

                )

        )

)
Compression: Server:/, Config:0, Agent:?
Duration: 0.135s
Response size: 635
Response content: Array
(
    [User] => Array
        (
            [0] => Array
                (
                    [name] => WSXML-RPC_User_01_TESTING
                    [id] => 7
                    [realname] => Xml-Rpc TEST
                    [firstname] => Xml-Rpc USER
                    [locations_id] => 0
                    [is_active] => 1
                    [auths_id] => 0
                    [date_mod] => 2012-06-01 16:58:03
                    [profiles_id] => 5
                    [entities_id] => 4
                    [usertitles_id] => 0
                    [usercategories_id] => 0
                )

        )

    [Group] => Array
        (
            [0] => Array
                (
                    [name] => WSXML-RPC_Group_01_TESTING
                    [id] => 1
                    [comment] => TEST Group for Webservices.
                    [is_recursive] => 1
                    [date_mod] => 2012-06-01 16:58:03
                    [entities_id] => 4
                )

        )

)
2012-06-01 16:58 [2@extranet]
Execute method:glpi.createObjects, function:PluginWebservicesMethodInventaire::methodCreateObjects (xml-rpc), duration:0.133, size:304
2012-06-01 16:58 [2@extranet]
Connexion: glpi, ::1
Protocol: xml-rpc, Method: glpi.createObjects, Function: PluginWebservicesMethodInventaire::methodCreateObjects
Params: Array
(
    [session] => aieagip34kp9ed6bsf14vtnb43
    [method] => glpi.createObjects
    [fields] => Array
        (
            [Group_User] => Array
                (
                    [0] => Array
                        (
                            [users_id] => 7
                            [groups_id] => 1
                            [is_dynamic] => 0
                        )

                )

            [Profile_User] => Array
                (
                    [0] => Array
                        (
                            [users_id] => 7
                            [profiles_id] => 5
                            [entities_id] => 4
                            [is_recursive] => 1
                            [is_dynamic] => 0
                        )

                )

        )

)
Compression: Server:/, Config:0, Agent:?
Duration: 0.133s
Response size: 304
Response content: Array
(
    [Group_User] => Array
        (
            [0] => Array
                (
                    [faultCode] => 16
                    [faultString] => Command not allowed (Group_User)
                )

        )

    [Profile_User] => Array
        (
            [0] => Array
                (
                    [id] => 8
                    [is_dynamic] => 0
                    [profiles_id] => 5
                    [users_id] => 7
                    [entities_id] => 4
                    [is_recursive] => 1
                )

        )

)
2012-06-01 16:58 [2@extranet]
Execute method:glpi.createObjects, function:PluginWebservicesMethodInventaire::methodCreateObjects (xml-rpc), duration:0.132, size:1426
2012-06-01 16:58 [2@extranet]
Connexion: glpi, ::1
Protocol: xml-rpc, Method: glpi.createObjects, Function: PluginWebservicesMethodInventaire::methodCreateObjects
Params: Array
(
    [session] => aieagip34kp9ed6bsf14vtnb43
    [method] => glpi.createObjects
    [fields] => Array
        (
            [Computer] => Array
                (
                    [0] => Array
                        (
                            [name] => WSXML-RPC_Computer_01_TESTING
                            [serial] => I98GFD-FF98-F0ZFDF8-980
                            [otherserial] => 0000134
                            [entities_id] => 4
                            [users_id] => 7
                            [groups_id] => 1
                        )

                )

            [Monitor] => Array
                (
                    [0] => Array
                        (
                            [name] => WSXML-RPC_Monitor_01_TESTING
                            [serial] => I98GFD-8973987-DE98
                            [otherserial] => 0000190
                            [entities_id] => 4
                            [users_id] => 7
                            [groups_id] => 1
                        )

                )

        )

)
Compression: Server:/, Config:0, Agent:?
Duration: 0.132s
Response size: 1426
Response content: Array
(
    [Computer] => Array
        (
            [0] => Array
                (
                    [name] => WSXML-RPC_Computer_01_TESTING
                    [id] => 54
                    [locations_id] => 0
                    [computertypes_id] => 0
                    [computermodels_id] => 0
                    [states_id] => 0
                    [operatingsystems_id] => 0
                    [operatingsystemversions_id] => 0
                    [operatingsystemservicepacks_id] => 0
                    [autoupdatesystems_id] => 0
                    [serial] => I98GFD-FF98-F0ZFDF8-980
                    [otherserial] => 0000134
                    [users_id] => 7
                    [groups_id] => 1
                    [date_mod] => 2012-06-01 16:58:03
                    [networks_id] => 0
                    [domains_id] => 0
                    [manufacturers_id] => 0
                    [users_id_tech] => 0
                    [entities_id] => 4
                    [is_ocs_import] => 0
                )

        )

    [Monitor] => Array
        (
            [0] => Array
                (
                    [name] => WSXML-RPC_Monitor_01_TESTING
                    [id] => 44
                    [locations_id] => 0
                    [monitortypes_id] => 0
                    [monitormodels_id] => 0
                    [states_id] => 0
                    [serial] => I98GFD-8973987-DE98
                    [otherserial] => 0000190
                    [users_id] => 7
                    [groups_id] => 1
                    [date_mod] => 2012-06-01 16:58:03
                    [size] => 0
                    [have_micro] => 0
                    [have_speaker] => 0
                    [have_subd] => 0
                    [have_bnc] => 0
                    [have_dvi] => 0
                    [have_pivot] => 0
                    [have_hdmi] => 0
                    [have_displayport] => 0
                    [manufacturers_id] => 0
                    [users_id_tech] => 0
                    [entities_id] => 4
                    [is_global] => 0
                )

        )

)
2012-06-01 16:58 [2@extranet]
Execute method:glpi.createObjects, function:PluginWebservicesMethodInventaire::methodCreateObjects (xml-rpc), duration:0.089, size:126
2012-06-01 16:58 [2@extranet]
Connexion: glpi, ::1
Protocol: xml-rpc, Method: glpi.createObjects, Function: PluginWebservicesMethodInventaire::methodCreateObjects
Params: Array
(
    [session] => aieagip34kp9ed6bsf14vtnb43
    [method] => glpi.createObjects
    [fields] => Array
        (
            [Computer_Item] => Array
                (
                    [0] => Array
                        (
                            [items_id] => 44
                            [computers_id] => 54
                            [itemtype] => Monitor
                        )

                )

        )

)
Compression: Server:/, Config:0, Agent:?
Duration: 0.089s
Response size: 126
Response content: Array
(
    [Computer_Item] => Array
        (
            [0] => Array
                (
                    [faultCode] => 16
                    [faultString] => Command not allowed (Computer_Item)
                )

        )

)
2012-06-01 16:58 [@extranet]
Execute method:glpi.doLogout, function:PluginWebservicesMethodSession::methodLogout (xml-rpc), duration:0.084, size:31
2012-06-01 16:58 [@extranet]
Connexion: anonymous, ::1
Protocol: xml-rpc, Method: glpi.doLogout, Function: PluginWebservicesMethodSession::methodLogout
Params: Array
(
    [method] => glpi.doLogout
)
Compression: Server:/, Config:0, Agent:?
Duration: 0.085s
Response size: 31
Response content: Array
(
    [message] => Bye 
)
2012-06-01 16:58 [2@extranet]
Execute method:glpi.doLogin, function:PluginWebservicesMethodSession::methodLogin (xml-rpc), duration:0.144, size:133
2012-06-01 16:58 [2@extranet]
Connexion: anonymous, ::1
Protocol: xml-rpc, Method: glpi.doLogin, Function: PluginWebservicesMethodSession::methodLogin
Params: Array
(
    [method] => glpi.doLogin
    [login_name] => glpi
    [login_password] => glpi
)
Compression: Server:/, Config:0, Agent:?
Duration: 0.144s
Response size: 133
Response content: Array
(
    [id] => 2
    [name] => glpi
    [realname] => 
    [firstname] => 
    [session] => bv1dne72jf01dt9fhi66edrt03
)
2012-06-01 16:58 [2@extranet]
Execute method:glpi.getObject, function:PluginWebservicesMethodInventaire::methodGetObject (xml-rpc), duration:0.118, size:1396
2012-06-01 16:58 [2@extranet]
Connexion: glpi, ::1
Protocol: xml-rpc, Method: glpi.getObject, Function: PluginWebservicesMethodInventaire::methodGetObject
Params: Array
(
    [session] => bv1dne72jf01dt9fhi66edrt03
    [method] => glpi.getObject
    [fields] => Array
        (
            [Computer_Item] => Array
                (
                    [0] => Array
                        (
                            [items_id] => 44
                            [computers_id] => 54
                            [itemtype] => Monitor
                        )

                )

        )

    [itemtype] => Computer
    [id] => 54
    [with_monitor] => 1
)
Compression: Server:/, Config:0, Agent:?
Duration: 0.119s
Response size: 1396
Response content: Array
(
    [name] => WSXML-RPC_Computer_01_TESTING
    [id] => 54
    [locations_id] => 0
    [computertypes_id] => 0
    [computermodels_id] => 0
    [states_id] => 0
    [operatingsystems_id] => 0
    [operatingsystemversions_id] => 0
    [operatingsystemservicepacks_id] => 0
    [autoupdatesystems_id] => 0
    [serial] => I98GFD-FF98-F0ZFDF8-980
    [otherserial] => 0000134
    [users_id] => 7
    [groups_id] => 1
    [date_mod] => 2012-06-01 16:58:03
    [networks_id] => 0
    [domains_id] => 0
    [manufacturers_id] => 0
    [users_id_tech] => 0
    [entities_id] => 4
    [is_ocs_import] => 0
    [Monitor] => Array
        (
            [44] => Array
                (
                    [name] => WSXML-RPC_Monitor_01_TESTING
                    [id] => 44
                    [locations_id] => 0
                    [monitortypes_id] => 0
                    [monitormodels_id] => 0
                    [states_id] => 0
                    [serial] => I98GFD-8973987-DE98
                    [otherserial] => 0000190
                    [users_id] => 7
                    [groups_id] => 1
                    [date_mod] => 2012-06-01 16:58:03
                    [size] => 0
                    [have_micro] => 0
                    [have_speaker] => 0
                    [have_subd] => 0
                    [have_bnc] => 0
                    [have_dvi] => 0
                    [have_pivot] => 0
                    [have_hdmi] => 0
                    [have_displayport] => 0
                    [manufacturers_id] => 0
                    [users_id_tech] => 0
                    [entities_id] => 4
                    [is_global] => 0
                )

        )

)
2012-06-01 16:58 [@extranet]
Execute method:glpi.doLogout, function:PluginWebservicesMethodSession::methodLogout (xml-rpc), duration:0.084, size:31
2012-06-01 16:58 [@extranet]
Connexion: anonymous, ::1
Protocol: xml-rpc, Method: glpi.doLogout, Function: PluginWebservicesMethodSession::methodLogout
Params: Array
(
    [method] => glpi.doLogout
)
Compression: Server:/, Config:0, Agent:?
Duration: 0.084s
Response size: 31
Response content: Array
(
    [message] => Bye 
)

Last edited by Rackham (2012-06-01 16:56:04)

Offline

#11 2012-06-01 16:58:45

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Webservices test xmlrpc.php

Cf explication en comment #8

Dans les traces je ne vois plus d'erreur.


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#12 2012-06-01 17:15:44

Rackham
Member
Registered: 2010-09-30
Posts: 22

Re: Webservices test xmlrpc.php

remi wrote:

Cf explication en comment #8

Dans les traces je ne vois plus d'erreur.


J ai refait la manip...

sans login mdp dans le plugins il envoie glpi/glpi ? et pas de parametrage IP...???

Je fais le test avec shinken en modifiant les fichiers arbiter et autres...

L Ipv6 est desactivé ... ca a l air de causé mieux...

Merci beaucoup...

Last edited by Rackham (2012-06-01 17:23:49)

Offline

Board footer

Powered by FluxBB