Run OpenLDAP

xiaoxiao2021-03-06  36

1, install OpenLDAP

For example is installed in D: / OpenLDAP

2, learn about ldap http://www.linuxaid.com.cn/ENGINEER/brimmer/html/ldap.htm

3, modify SLAP.CONF

Suppose the domain name: Netone.com

Probably 56

######################################################################################################################################################################################################################################################################################################## #####################

# BDB Database Definitions can be changed as long as you change the following two places, pay attention to the same DC of SUFFIX and ROOTDN

######################################################################################################################################################################################################################################################################################################## #####################

Database bdb

# New value

SUFFIX "DC = Netone, DC = COM"

# 原 原 值

#suffix "DC = My-Domain, DC = COM"

# New value

Rootdn "CN = Manager, DC = Netone, DC = COM"

# 原 原 值

#rootdn "cn = manager, dc = my-domain, dc = COM"

4, write domain.ldif

DN: DC = Netone, DC = COM

ObjectClass: DCOBJECT

ObjectClass: Organization

o: CompanyInfo

DC: Netone

Save in the installed directory, ie D: / OpenLDAP

5, run

Command line to D: / OpenLDAP

Then enter the command (add configuration): SLAPADD -F SLAPD.CONF -L DOMAIN.LDIF

Then enter the command (start the LDAP service): SLAPD -D 1

If the last few lines have Starting, it will explain the success of the run.

6, view

You can view the directory structure via JXPLORER (download address: http://pegacat.com/jxplorer/).

Run JXPLORER, click on the (similar connection) icon in the upper left corner, configure the connection parameters of the LDAP

The first line can not be changed.

Base DN: Enter our domain name: DC = Netone.com

Level is anonymous

Button OK, if it is successful, congratulations.

You can also view LDAP Browser / Editor (download L),

After decompression: lbe.bat

Then connect the LDAP server (there is QuickConnect, or File-> Connect)

Fill in the parameters: Host: Localhost

Port: 386

Version: 3

Basedn: DC = Netone, DC = COM

Finally press the button. success!

This article is referring to:

http://www.cjsdn.net/post/view?bid=11&Id=90353&sty=3&age=0&tpg=1&pg=1#90353

http://www.cjsdn.net/post/view?bid=11&Id=90367&sty=3&age=0&tpg=1&pg=1#90367

http://www.ldapchina.com

转载请注明原文地址:https://www.9cbs.com/read-74869.html

New Post(0)