Closed bud4 closed 4 years ago
Hi @bud4,
Could you try to install one of the latest nightly ? http://download.ocsinventory-ng.org/nightly/
Some changes has been made in order to simplify LDAP connection : http://wiki.ocsinventory-ng.org/04.Management-console-and-its-advanced-features/Synchronization-between-OCS-and-LDAP/#manage-authentification-with-ldap
Regards, Gilles Dubois.
Thanks @gillesdubois with this version ldap authentication work. but there are some warning in log: [11-Aug-2020 15:42:29 UTC] PHP Warning: require(require/fichierConf.class.php): failed to open stream: Permission denied in /usr/share/ocsinventory-reports/ocsreports/index.php on line 29 [11-Aug-2020 15:42:29 UTC] PHP Fatal error: require(): Failed opening required 'require/fichierConf.class.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/ocsinventory-reports/ocsreports/index.php on line 29 [11-Aug-2020 15:43:37 UTC] PHP Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67 [11-Aug-2020 15:43:37 UTC] PHP Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 104 [11-Aug-2020 15:43:37 UTC] PHP Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 38 [11-Aug-2020 15:46:27 UTC] PHP Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 67 [11-Aug-2020 15:46:27 UTC] PHP Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 104 [11-Aug-2020 15:46:27 UTC] PHP Warning: mysqli_fetch_object() expects parameter 1 to be mysqli_result, null given in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 38
Hi,
[11-Aug-2020 15:42:29 UTC] PHP Warning: require(require/fichierConf.class.php): failed to open stream: Permission denied in /usr/share/ocsinventory-reports/ocsreports/index.php on line 29
[11-Aug-2020 15:42:29 UTC] PHP Fatal error: require(): Failed opening required 'require/fichierConf.class.php'
It seem that you have a permission problem. Please check your OCS Reports permissions (Apache need to be able to read)
Regards, Gilles Dubois.
OCS Inventory version Version : 2.7
Describe the bug Profile not found when lognon with an ldap user . ldap config :+1: field and value are ok.
To Reproduce Logon with an ldap user .
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Warning: file_get_contents(/usr/share/ocsinventory-reports/ocsreports/config/profiles/.xml): failed to open stream: No such file or directory in /usr/share/ocsinventory-reports/ocsreports/require/header.php on line 384
NULL NULL bool(false) Warning: Invalid argument supplied for foreach() in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php on line 85
Warning: Invalid argument supplied for foreach() in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php on line 91
Warning: Invalid argument supplied for foreach() in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php on line 97
Warning: Invalid argument supplied for foreach() in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php on line 101 OCS Inventory
Warning: array_search() expects parameter 2 to be array, null given in /usr/share/ocsinventory-reports/ocsreports/require/html_header.php on line 236 NO RIGHTS LEVEL DEFINED TO YOUR PROFILE
ls -al /usr/share/ocsinventory-reports/ocsreports/config/profiles/ drwxrw-rw- 2 apache apache 125 6 ago 11.22 . drwxrw-rw- 4 apache apache 89 5 ago 16.56 .. -rwxrw-rw- 1 apache apache 2187 5 ago 16.56 admin.xml -rwxrw-rw- 1 apache apache 1234 5 ago 16.56 dde_teledeploy.xml -rw-r--r-- 1 apache apache 1265 6 ago 11.23 defuser.xml -rwxrw-rw- 1 apache apache 2062 5 ago 16.56 ladmin.xml -rwxrw-rw- 1 apache apache 2283 5 ago 16.56 read-only.xml -rwxrw-rw- 1 apache apache 3992 5 ago 16.56 sadmin.xml
Log file (optional) [06-Aug-2020 09:50:16 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php on line 85 [06-Aug-2020 09:50:16 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php on line 91 [06-Aug-2020 09:50:16 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php on line 97 [06-Aug-2020 09:50:16 UTC] PHP Warning: Invalid argument supplied for foreach() in /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php on line 101 [06-Aug-2020 09:50:16 UTC] PHP Warning: array_search() expects parameter 2 to be array, null given in /usr/share/ocsinventory-reports/ocsreports/require/html_header.php on line 236 [06-Aug-2020 09:56:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php:83) in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 351 [06-Aug-2020 09:56:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php:83) in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 352 [06-Aug-2020 09:56:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php:83) in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 353 [06-Aug-2020 09:56:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php:83) in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 354 [06-Aug-2020 09:56:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /usr/share/ocsinventory-reports/ocsreports/require/config/XMLProfileSerializer.php:83) in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 355