In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces the example analysis of database configuration in openldap, which is very detailed and has certain reference value. Friends who are interested must finish it!
[root@ldap-server ldap] # cp / usr/share/openldap-servers/DB_CONFIG.example / var/lib/ldap/DB_ config [root @ ldap-server ldap] # chown-R ldap:ldap / etc/openldap/ [root@ldap-server ldap] # chown-R ldap:ldap / var/lib/ldap/ [root@ldap-server ldap] # chmod 700 / var/lib/ldap/ [root@ldap-server ldap] # [root@ldap-server ldap] # ls / var/lib/ Ldap/DB_ config [root @ ldap-server ldap] # slaptest-uconfig file testing succeeded [root@ldap-server ldap] # final configuration file [root@ldap-server ldap] # egrep-v'^ # | ^. * #'/ etc/openldap/slapd.confinclude/etc/openldap/schema/corba.schemainclude/etc/openldap/schema/core.schemainclude/etc/openldap/schema/cosine.schemainclude/etc/openldap/schema/duaconf.schemainclude/etc/openldap/schema/dyngroup.schemainclude/etc/openldap / schema/inetorgperson.schemainclude/etc/openldap/schema/java.schemainclude/etc/openldap/schema/misc.schemainclude/etc/openldap/schema/nis.schemainclude/etc/openldap/schema/openldap.schemainclude/etc/openldap/schema/ppolicy.schemainclude/etc/openldap/schema/collective.schemaallow bind_v2pidfile/var/run/openldap/slapd.pidargsfile/var/run/openldap/slapd.argsTLSCACertificatePath / etc/openldap/certsTLSCertificateFile "\" OpenLDAP Server\ "" TLSCertificateKeyFile / etc/openldap/certs/passwordaccess to * # need to be modified here The original part deletes by self writeby anonymous authby * readdatabasebdbsuffix "dc=etiantian,dc=org" checkpoint2048 10rootdn "cn=admin,dc=etiantian,dc=org" loglevel296cachesize1000directory/var/lib/ldapindex objectClass eq,presindex ou,cn,mail,surname,givenname eq,pres,subindex uidNumber,gidNumber,loginShell eq,presindex uid,memberUid eq,pres,subindex nisMapName,nisMapEntry eq,pres Subrootpw {SSHA} + OjqniWD7vyzN9D9vRbYRE6KvI3Hjrw1 start LDAP [root @ ldap-server ldap] # / etc/init.d/slapd restart stop slapd: [failed] starting slapd: [OK] [root@ldap-server ldap] # [root@ldap-server ldap] # chkconfig slapd on [root@ldap-server ldap] # chkconfig-- list slapdslapd 0: off 1: close 2: enable 3: enable 4: enable 5: enable 6: turn off [root@ldap-server ldap] # [root@ldap-server ldap] # lsof-i:389COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEslapd 1470 ldap 7u IPv4 11434 0t0 TCP *: ldap (LISTEN) slapd 1470 ldap 8u IPv6 11435 0t0 TCP *: ldap (LISTEN) [root@ldap-server ldap] # [root@ Ldap-server ldap] # ps-ef | grep ldapldap 1470 10 10:53? 00:00:00 / usr/sbin/slapd-h ldap:/// ldapi:///-u ldaproot 1481 1287 0 10:55 pts/0 00:00:00 grep ldap [root@ldap-server ldap] # [root@ldap-server ldap] # tail-f / var/log/ldap.logMar 25 10:59:51 ldap-server slapd [1603]: @ (#) $OpenLDAP: slapd 2.4.40 (May 10 2016 23:30:49) $# 012#011mockbuild@worker1.bsys.centos.org:/builddir/build/BUILD/openldap-2.4.40/openldap-2.4.40/build-servers/servers/slapd startup check is correct: [root@ldap-server ldap] # ldapsearch-LLL-W-H ldap://etiantian.org-D "cn=admin Dc=etiantian,dc=org "- b" dc=etiantian Dc=org "Enter LDAP Password:ldap_bind: Invalid credentials (49) [root@ldap-server ldap] # solution: root@ldap-server ldap] # rm-rf / etc/openldap/slapd.d/* [root@ldap-server ldap] # slaptest-f / etc/openldap/slapd.conf-F / etc/openldap/slapd.d [root@ldap-server ldap] # chown-R ldap:ldap / etc/openldap/ [root@ldap-server ldap] # / etc/init. D/slapd restart stop slapd: [OK] starting slapd: [OK] [root@ldap-server ldap] # [root@ldap-server ldap] # ldapsearch-LLL-W-H ldap://etiantian.org-D "cn=admin Dc=etiantian,dc=org "- b" dc=etiantian,dc=org "Enter LDAP Password:No such object (32) # indicates correct [root@ldap-server ldap] # above is all the content of the article" sample Analysis of Database configuration in openldap " Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.