Install Ldapsearch Centos
Posted : admin On 20.01.2020Coming from Trusty, I was used to but I don't have it installed on my new Xerus install:The program 'ldapsearch' is currently not installed. You can install it by typing: sudo apt install ldap-utilsBut unfortunately this results in an apt conflict that I don't know how to resolve. Reading package lists.
DoneBuilding dependency treeReading state information. DoneSome packages could not be installed. This may mean that you haverequested an impossible situation or if you are using the unstabledistribution that some required packages have not yet been createdor been moved out of Incoming.The following information may help to resolve the situation:The following packages have unmet dependencies:ldap-utils: Depends: libldap-2.4-2 (= 2.4.42+dfsg-2ubuntu3) but 2.4.42+dfsg-2ubuntu3.1 is to be installedE: Unable to correct problems, you have held broken packages.What should I do to install? After digging around for a while under System Settings Software & Updates I remembered once upon a time that I disabled the install updates from the following sources because I got a little annoyed with the frequent interrupting pop-ups to upgrade.

Install Ldapsearch Rhel
I prefer to manage my upgrades manually from apt on the terminal and I didn't want it to automatically upgrade me from 16.04 to 16.10 or some other release. What I didn't realize is that these checkboxes stripped the deb package sources from /etc/apt/sources.list so it would never fetch the package updates and always report my system was up-to-date. After checking those boxes and then running apt update and upgrade I was able to successfully install ldap-utils.
Systemctl restart rsyslog LDAP client configuration to use LDAP ServerInstall the necessary LDAP client packages on the client machine. Yum install -y openldap-clients nss-pam-ldapdExecute the below command to add the client machine to LDAP server for single sign-on. Replace “192.168.1.10” with your LDAP server’s IP address or hostname. Authconfig -enableldap -enableldapauth -ldapserver= 192.168.1.10 -ldapbasedn='dc=itzgeek,dc=local' -enablemkhomedir -updateRestart the LDAP client service. Systemctl restart nslcd Verify LDAP LoginUse the getent command to get the LDAP entries from the LDAP server. Getent passwd rajOutput: raj:x:9999:100:Raj Admin (at) ITzGeek:/home/raj:/bin/bashScreenshot: OpenLDAP Server Configuration on CentOS 7 – Verify LDAP LoginTo verify the LDAP, log in using the LDAP user “ raj” on the client machine.
OpenLDAP Server Configuration on CentOS 7 – LDAP User login on the Client machineThat’s All.