How To Install php-pear-Net-LDAP2 on Fedora 36
Introduction
In this tutorial we learn how to install php-pear-Net-LDAP2
on Fedora 36.
What is php-pear-Net-LDAP2
Net_LDAP2 is the successor of Net_LDAP (which is a clone of Perls Net object interface to directory servers. It does contain most of Net features but has some own too. With Net_LDAP2 you have * A simple object-oriented interface to connections, searches entries and filters. * Support for TLS and LDAP v3. * Simple modification, deletion and creation of LDAP entries. * Support for schema handling. Net_LDAP2 layers itself on top of PHP’s existing ldap extensions.
We can use yum
or dnf
to install php-pear-Net-LDAP2
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pear-Net-LDAP2.
Install php-pear-Net-LDAP2 on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install php-pear-Net-LDAP2
using dnf
by running the following command:
sudo dnf -y install php-pear-Net-LDAP2
Install php-pear-Net-LDAP2 on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install php-pear-Net-LDAP2
using yum
by running the following command:
sudo yum -y install php-pear-Net-LDAP2
How To Uninstall php-pear-Net-LDAP2 on Fedora 36
To uninstall only the php-pear-Net-LDAP2
package we can use the following command:
sudo dnf remove php-pear-Net-LDAP2
php-pear-Net-LDAP2 Package Contents on Fedora 36
/usr/share/doc/pear/Net_LDAP2
/usr/share/doc/pear/Net_LDAP2/doc
/usr/share/doc/pear/Net_LDAP2/doc/README.txt
/usr/share/doc/pear/Net_LDAP2/doc/RootDSE.txt
/usr/share/doc/pear/Net_LDAP2/doc/Schema.txt
/usr/share/doc/pear/Net_LDAP2/doc/examples
/usr/share/doc/pear/Net_LDAP2/doc/examples/add_entry.php
/usr/share/doc/pear/Net_LDAP2/doc/examples/connecting.php
/usr/share/doc/pear/Net_LDAP2/doc/examples/fetch_entry.php
/usr/share/doc/pear/Net_LDAP2/doc/examples/modify_entry.php
/usr/share/doc/pear/Net_LDAP2/doc/examples/modify_entry2.php
/usr/share/doc/pear/Net_LDAP2/doc/examples/schema_cache.php
/usr/share/doc/pear/Net_LDAP2/doc/examples/search_entries.php
/usr/share/doc/pear/Net_LDAP2/doc/manual.html
/usr/share/doc/pear/Net_LDAP2/doc/utf8.txt
/usr/share/pear/Net
/usr/share/pear/Net/LDAP2
/usr/share/pear/Net/LDAP2.php
/usr/share/pear/Net/LDAP2/Entry.php
/usr/share/pear/Net/LDAP2/Filter.php
/usr/share/pear/Net/LDAP2/LDIF.php
/usr/share/pear/Net/LDAP2/RootDSE.php
/usr/share/pear/Net/LDAP2/Schema.php
/usr/share/pear/Net/LDAP2/SchemaCache.interface.php
/usr/share/pear/Net/LDAP2/Search.php
/usr/share/pear/Net/LDAP2/SimpleFileSchemaCache.php
/usr/share/pear/Net/LDAP2/Util.php
/usr/share/tests/pear/Net_LDAP2
/usr/share/tests/pear/Net_LDAP2/tests
/usr/share/tests/pear/Net_LDAP2/tests/Net_LDAP2Test.php
/usr/share/tests/pear/Net_LDAP2/tests/Net_LDAP2_EntryTest.php
/usr/share/tests/pear/Net_LDAP2/tests/Net_LDAP2_FilterTest.php
/usr/share/tests/pear/Net_LDAP2/tests/Net_LDAP2_LDIFTest.php
/usr/share/tests/pear/Net_LDAP2/tests/Net_LDAP2_RootDSETest.php
/usr/share/tests/pear/Net_LDAP2/tests/Net_LDAP2_SearchTest.php
/usr/share/tests/pear/Net_LDAP2/tests/Net_LDAP2_TestBase.php
/usr/share/tests/pear/Net_LDAP2/tests/Net_LDAP2_UtilTest.php
/usr/share/tests/pear/Net_LDAP2/tests/ldapconfig.ini.dist
/usr/share/tests/pear/Net_LDAP2/tests/ldapldifconfig.ini.dist
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/base.ldif
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/changes.ldif
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/malformed_syntax.ldif
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/malformed_wrapping.ldif
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/slapd.conf
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/sorted_w40.ldif
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/sorted_w50.ldif
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/unsorted_w30.ldif
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/unsorted_w50.ldif
/usr/share/tests/pear/Net_LDAP2/tests/ldif_data/unsorted_w50_WIN.ldif
/usr/share/tests/pear/Net_LDAP2/tests/phpunit.xml
/var/lib/pear/pkgxml/php-pear-Net-LDAP2.xml
References
Summary
In this tutorial we learn how to install php-pear-Net-LDAP2
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).