In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to install and configure LDAP under Linux". In daily operation, I believe that many people have doubts about how to install and configure LDAP under Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "how to install and configure LDAP under Linux". Next, please follow the editor to study!
LDAP is a quick way to get centralized, static data about people or resources. LDAP is a protocol used to publish directory information to many different resources. It is usually used as a centralized address, but it can be more powerful according to the needs of the organizer.
1. Mount the CD and install the ldap service.
I use my own virtual machine. Mount / dev/cdrom / mnt
Vi / etc/yum.repos.d/rhel-debuginfo.repo modified the configuration file (just to build a local yum source for installation through yum)
Yum-y install openldap* (rpm-ivh openldap* without yum)
two。 Check that the following openldap packages are installed on the system
The 3.DB_CONFIG file sets the number of caches for index, and the performance can be adjusted. The default example of this file can be obtained from / etc/openldap and copied to / var/lib/ldap.
4.openldap simply edit the slapd.conf configuration file in the / etc/openldap/slapd.conf configuration file and add entries required for the general LDAP installation. Database dbd sets the database used. Suffix "cn=mingluck,dc=com", set up directory administrator, cn=Manager,dc=mingluck,dc=com. The rootpw password is secret.
5. Change permissions (if you do not change permissions, the ldap service startup is not successful)
6. Edit ldap data. Vi base.ldif
Import the data into the ldap database. Run ldapadd-x-D "cn=Manager,dc=mingluck,dc=com"-w secret-f base.ldif
Edit ldap data. Vi group.ldif
Import the data into the ldap database. Run ldapadd-x-D "cn=Manager,dc=mingluck,dc=com"-w secret-f group.ldif
Vi pmo.ldif
Execute the command ladpadd-x-D "cn=Manager,dc=mingluck,dc=com"-w secret-f pmo.ldif
If 7.ldap does not have a log file by default, you should create the log file of ldap by yourself.
Vi / etc/syslog.conf
Join a line: local4.* / var/log/ldap.log
So far. Base.ldif, group.ldif,pmo.ldif . (the name can be chosen at will; for example, user.ldif) these three ldif files have been built. The ldap server is ready.
Let's see how the mail client contacts the query on the ldap server.
Ldap server (192.168.0.120) opens OE, tools → account → directory service
Find the user through the ldap server.
In addition:
1.OpenLDAP data storage location: / var/lib/ldap/ directory, if you want to reset LDAP server, stop executing ldap (service ldap stop), and then remove all files in the data directory (rm-Rf / var/lib/ldap/*)
Location of 2.OpenLDAP-related configuration files: / etc/openldap
At this point, the study on "how to install and configure LDAP under Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.