LibreBooking / app

Repository for the last open source version of Booked Scheduler. The "develop" branch contains the most current working code of the project and should be considered beta. The "master" branch is the most current stable release of BookedScheduler. Please read doc/README.md for further details.
GNU General Public License v3.0
386 stars 232 forks source link

Try ldap configuration #318

Open mkulawin opened 6 months ago

mkulawin commented 6 months ago

When I activate LDAP for authentication I got deprecated messages:

Deprecated: Return type of Net_LDAP2_Search::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/librebooking/plugins/Authentication/Ldap/LDAP2/Search.php on line 563

Deprecated: Return type of Net_LDAP2_Search::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/librebooking/plugins/Authentication/Ldap/LDAP2/Search.php on line 594

Deprecated: Return type of Net_LDAP2_Search::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/librebooking/plugins/Authentication/Ldap/LDAP2/Search.php on line 579

Deprecated: Return type of Net_LDAP2_Search::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/librebooking/plugins/Authentication/Ldap/LDAP2/Search.php on line 617

Deprecated: Return type of Net_LDAP2_Search::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/librebooking/plugins/Authentication/Ldap/LDAP2/Search.php on line 630

Warning: Cannot modify header information - headers already sent by (output started at /var/www/librebooking/plugins/Authentication/Ldap/LDAP2/Search.php:34) in /var/www/librebooking/lib/Server/Server.php on line 13

Warning: Cannot modify header information - headers already sent by (output started at /var/www/librebooking/plugins/Authentication/Ldap/LDAP2/Search.php:34) in /var/www/librebooking/Pages/Page.php on line 149

Used PHP Version

root@wdec066787:/var/www/librebooking# php -v
PHP 8.3.4RC1 (cli) (built: Mar 12 2024 03:19:41) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.4RC1, Copyright (c) Zend Technologies

LDAP is enabled:

php > print_r(get_loaded_extensions());
Array
(
    [0] => Core
    [1] => date
    [2] => libxml
    [3] => openssl
    [4] => pcre
    [5] => sqlite3
    [6] => zlib
    [7] => ctype
    [8] => curl
    [9] => dom
    [10] => fileinfo
    [11] => filter
    [12] => hash
    [13] => iconv
    [14] => json
    [15] => mbstring
    [16] => SPL
    [17] => session
    [18] => PDO
    [19] => pdo_sqlite
    [20] => standard
    [21] => posix
    [22] => random
    [23] => readline
    [24] => Reflection
    [25] => Phar
    [26] => SimpleXML
    [27] => tokenizer
    [28] => xml
    [29] => xmlreader
    [30] => xmlwriter
    [31] => mysqlnd
    [32] => ldap                 <------
    [33] => mysqli
    [34] => sodium
)
treborin commented 6 months ago

HI, @mkulawin ,

Do you get the same issue using PHP 8.1 instead of 8.3?

mkulawin commented 6 months ago

Yes I have the same issue with PHP 8.1.

php -v
PHP 8.1.27 (cli) (built: Mar 12 2024 05:15:08) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.27, Copyright (c) Zend Technologies
treborin commented 6 months ago

@mkulawin , pls check this: https://github.com/LibreBooking/app/pull/235