Re: [CentOS] PHP-LDAP RPM installed but not usable

2023-03-21 Thread Steve Meier

Hello,

it looks like you may be crossing the streams here.

Remi has two flavours of PHP RPMs. One made to be installed standalone
and one which supports multiple versions in parallel.

From the output below it seems that you have a mixed setup, where such
issues would not surprise me. You should either have php* packages or
php80-php* packages, not both.

Kind regards,
  Steve

Am 20.03.2023 16:47, schrieb Gary Stainburn:

I've also tried adding the pgsql and mysql RPM's and they're not
available either.

On 20/03/2023 12:58, Gary Stainburn wrote:

Apologies.  This is the correct screen grab.

The extra errors in the OP were because I had been experimenting, to
try to fix the issue.

[root@testsvr ~]# ./ldapAuth.php gary.stainburn fake-password
PHP Fatal error:  Uncaught Error: Call to undefined function
ldap_connect() in /root/ldapAuth.php:12

I suspect that the extension is not being loaded, and one post
suggested having to add an

extension=

line to php.ini, but I cannot find the library it's supposed to load.



On 20/03/2023 12:52, Gary Stainburn wrote:

Hi folks.

I've installed PHP 8.0 on my server, and just installed php-ldap. All
looks to have worked fine.

php-common-8.0.28-1.el7.remi.x86_64
php-8.0.28-1.el7.remi.x86_64
php80-php-common-8.0.28-1.el7.remi.x86_64
php80-php-ldap-8.0.28-1.el7.remi.x86_64
php-cli-8.0.28-1.el7.remi.x86_64
php-sodium-8.0.28-1.el7.remi.x86_64
php80-runtime-1.0-3.el7.remi.x86_64

However, when I try to  use LDAP in a script, it says the
ldap_connect function is not available:

[root@testsvr ~]# ./ldapAuth.php gary.stainburn fake-password
PHP Warning:  PHP Startup: Unable to load dynamic library 'ldap'
(tried: /usr/lib64/php/modules/ldap (/usr/lib64/php/modules/ldap:
cannot open shared object file: No such file or directory),
/usr/lib64/php/modules/ldap.so (/usr/lib64/php/modules/ldap.so:
cannot open shared object file: No such file or directory)) in
Unknown on line 0
PHP Fatal error:  Uncaught Error: Call to undefined function
ldap_connect() in /root/ldapAuth.php:12


Can anyone see what I've missed?
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--

Kind regards

Gary Stainburn

*Group I.T. Manager - D.M.Keith Ford/Kia After-Sales*

*Switchboard* 0113 2634 222

*Address:* D.M.Keith Ford/Kia Aftersales | Hales Road | Leeds | LS12 
4TG



/*Branches throughout Yorkshire and North Lincolnshire.*/

*Ford Leeds *0113 263 4222 | *Transit Centre Leeds* 0113 2634222 |
*Skoda Leeds* 0113 2771777 | *KiaLeeds* 0113426 8111 | *Kia Doncaster*
01302 384350 | *Skoda Bradford* 01274 741200 | *Skoda Wakefield* 01924
246900 | *Skoda Huddersfield*01484 435499 | *Skoda York* 01904 692921|
*SEAT York* 01904 692921 | *Cupra York* 01904 692921 | *Skoda Hull*
01482 802000 | *Skoda Grimsby* 01472 803 545 | *SEAT Grimsby* 01472
348 348 | *Honda Grimsby* 01472 358 625 | *SEAT MO* 01472 348 348 |
*Trade Car Outlet Ossett* 01924 255476 | *Ringways Hire & Leasing Ltd*
0344 4146789.

/This email message is confidential and may contain legally privileged
information. It may be monitored (whether you are the sender or
recipient) and recorded and retained by D.M.Keith Ltd, Ringways
Garages (Leeds) Ltd, Ringways Garages (Doncaster) Ltd, Ringways Hire &
Leasing Limited and or its other Group Companies. Under the “Lawful
Business Practices Interception of Communication Regulations 2000”
email and telephone monitoring and or recording software may be used,
and email or telephone call content may be reviewed at any time. If
you are not the intended recipient you should not read, copy,
distribute, disclose or otherwise use the information in this e-mail.
Please also contact D.M.Keith Ltd by emailing _privacy@dmkeith.com_ or
fax us on 0113 2703641, immediately and delete the message from your
system. Copyright in this email belongs to D.M.Keith Ltd., ALL RIGHTS
RESERVED. Whilst every effort has been made to check for viruses,
D.M.Keith Ltd and its Group Companies does not warrant that it is free
of viruses. E-mail may be susceptible to data corruption, interception
and unauthorised amendment, and we do not accept liability for any
such corruption, interception or amendment or the consequences
thereof. D.M. Keith Ltd is registered under the Data Protection Act
1998 registration No. Z7389610, Ringways Garages (Leeds) Ltd is
registered under the Data Protection Act 1998 registration No.
Z5414640 , Ringways Garages (Doncaster) Ltd is registered under the
Data Protection Act 1998 registration No. Z5414654. D.M.Keith Limited
and its other Group companies are an appointed representative of ITC
Compliance Limited which is authorised and regulated by the Financial
Conduct Authority (their registration number is 313486). Permitted
activities include advising on and arranging general insurance
contracts and acting as a credit broker not a lender. We can introduce
you to a limited number of finance providers. We do not charge fees

Re: [CentOS] PHP-LDAP RPM installed but not usable

2023-03-20 Thread Gary Stainburn
I've also tried adding the pgsql and mysql RPM's and they're not 
available either.


On 20/03/2023 12:58, Gary Stainburn wrote:

Apologies.  This is the correct screen grab.

The extra errors in the OP were because I had been experimenting, to 
try to fix the issue.


[root@testsvr ~]# ./ldapAuth.php gary.stainburn fake-password
PHP Fatal error:  Uncaught Error: Call to undefined function 
ldap_connect() in /root/ldapAuth.php:12


I suspect that the extension is not being loaded, and one post 
suggested having to add an


extension=

line to php.ini, but I cannot find the library it's supposed to load.



On 20/03/2023 12:52, Gary Stainburn wrote:

Hi folks.

I've installed PHP 8.0 on my server, and just installed php-ldap. All 
looks to have worked fine.


php-common-8.0.28-1.el7.remi.x86_64
php-8.0.28-1.el7.remi.x86_64
php80-php-common-8.0.28-1.el7.remi.x86_64
php80-php-ldap-8.0.28-1.el7.remi.x86_64
php-cli-8.0.28-1.el7.remi.x86_64
php-sodium-8.0.28-1.el7.remi.x86_64
php80-runtime-1.0-3.el7.remi.x86_64

However, when I try to  use LDAP in a script, it says the 
ldap_connect function is not available:


[root@testsvr ~]# ./ldapAuth.php gary.stainburn fake-password
PHP Warning:  PHP Startup: Unable to load dynamic library 'ldap' 
(tried: /usr/lib64/php/modules/ldap (/usr/lib64/php/modules/ldap: 
cannot open shared object file: No such file or directory), 
/usr/lib64/php/modules/ldap.so (/usr/lib64/php/modules/ldap.so: 
cannot open shared object file: No such file or directory)) in 
Unknown on line 0
PHP Fatal error:  Uncaught Error: Call to undefined function 
ldap_connect() in /root/ldapAuth.php:12



Can anyone see what I've missed?
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


--

Kind regards

Gary Stainburn

*Group I.T. Manager - D.M.Keith Ford/Kia After-Sales*

*Switchboard* 0113 2634 222

*Address:* D.M.Keith Ford/Kia Aftersales | Hales Road | Leeds | LS12 4TG


/*Branches throughout Yorkshire and North Lincolnshire.*/

*Ford Leeds *0113 263 4222 | *Transit Centre Leeds* 0113 2634222 | 
*Skoda Leeds* 0113 2771777 | *KiaLeeds* 0113426 8111 | *Kia Doncaster* 
01302 384350 | *Skoda Bradford* 01274 741200 | *Skoda Wakefield* 01924 
246900 | *Skoda Huddersfield*01484 435499 | *Skoda York* 01904 692921| 
*SEAT York* 01904 692921 | *Cupra York* 01904 692921 | *Skoda Hull* 
01482 802000 | *Skoda Grimsby* 01472 803 545 | *SEAT Grimsby* 01472 
348 348 | *Honda Grimsby* 01472 358 625 | *SEAT MO* 01472 348 348 | 
*Trade Car Outlet Ossett* 01924 255476 | *Ringways Hire & Leasing Ltd* 
0344 4146789.


/This email message is confidential and may contain legally privileged 
information. It may be monitored (whether you are the sender or 
recipient) and recorded and retained by D.M.Keith Ltd, Ringways 
Garages (Leeds) Ltd, Ringways Garages (Doncaster) Ltd, Ringways Hire & 
Leasing Limited and or its other Group Companies. Under the “Lawful 
Business Practices Interception of Communication Regulations 2000” 
email and telephone monitoring and or recording software may be used, 
and email or telephone call content may be reviewed at any time. If 
you are not the intended recipient you should not read, copy, 
distribute, disclose or otherwise use the information in this e-mail. 
Please also contact D.M.Keith Ltd by emailing _privacy@dmkeith.com_ or 
fax us on 0113 2703641, immediately and delete the message from your 
system. Copyright in this email belongs to D.M.Keith Ltd., ALL RIGHTS 
RESERVED. Whilst every effort has been made to check for viruses, 
D.M.Keith Ltd and its Group Companies does not warrant that it is free 
of viruses. E-mail may be susceptible to data corruption, interception 
and unauthorised amendment, and we do not accept liability for any 
such corruption, interception or amendment or the consequences 
thereof. D.M. Keith Ltd is registered under the Data Protection Act 
1998 registration No. Z7389610, Ringways Garages (Leeds) Ltd is 
registered under the Data Protection Act 1998 registration No. 
Z5414640 , Ringways Garages (Doncaster) Ltd is registered under the 
Data Protection Act 1998 registration No. Z5414654. D.M.Keith Limited 
and its other Group companies are an appointed representative of ITC 
Compliance Limited which is authorised and regulated by the Financial 
Conduct Authority (their registration number is 313486). Permitted 
activities include advising on and arranging general insurance 
contracts and acting as a credit broker not a lender. We can introduce 
you to a limited number of finance providers. We do not charge fees 
for our Consumer Credit services. We may receive a payment(s) or other 
benefits from finance providers should you decide to enter into an 
agreement with them, typically either a fixed fee or a fixed 
percentage of the amount you borrow. The payment we receive may vary 
between finance providers and product types. The payment received does 
not impact the finance rate of

[CentOS] PHP-LDAP RPM installed but not usable

2023-03-20 Thread Gary Stainburn

Hi folks.

I've installed PHP 8.0 on my server, and just installed php-ldap. All 
looks to have worked fine.


php-common-8.0.28-1.el7.remi.x86_64
php-8.0.28-1.el7.remi.x86_64
php80-php-common-8.0.28-1.el7.remi.x86_64
php80-php-ldap-8.0.28-1.el7.remi.x86_64
php-cli-8.0.28-1.el7.remi.x86_64
php-sodium-8.0.28-1.el7.remi.x86_64
php80-runtime-1.0-3.el7.remi.x86_64

However, when I try to  use LDAP in a script, it says the ldap_connect 
function is not available:


[root@testsvr ~]# ./ldapAuth.php gary.stainburn fake-password
PHP Warning:  PHP Startup: Unable to load dynamic library 'ldap' (tried: 
/usr/lib64/php/modules/ldap (/usr/lib64/php/modules/ldap: cannot open 
shared object file: No such file or directory), 
/usr/lib64/php/modules/ldap.so (/usr/lib64/php/modules/ldap.so: cannot 
open shared object file: No such file or directory)) in Unknown on line 0
PHP Fatal error:  Uncaught Error: Call to undefined function 
ldap_connect() in /root/ldapAuth.php:12



Can anyone see what I've missed?
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos