OPENLDAP 命令

运行环境
slapd.conf
配置文件 slapd.conf 中使用了相对路径,这在大多数情况下是正确的, 你也可以使用绝对路径。

注册表中的参数
注意:

你只需要让注册表中的参数 ConfigFile 指定配置文件 slapd.conf 的位置即可。
注册表中的参数会覆盖配置文件中的参数!
说明:

一般无需配置参数 DebugLevel (它覆盖配置文件 slapd.conf 的参数 loglevel)。
如果不需要修改端口,或者想只监听限定的 IP 地址,那么也不必配置参数 Urls。
参数 ConfigFile 指定了配置文件 slapd.conf 的位置,下面的例子用的是相对于 slapd.exe 的路径,你也可以使用绝对路径。
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREOpenLDAPParameters]
"DebugLevel"=dword:00004120
"ConfigFile"="./slapd.conf"
"Urls"="ldap://:389/"

安装为 Windows 服务
注意: 你必须先在注册表中增加参数 ConfigFile,指定配置文件 slapd.conf 的位置。

安装服务
C:usropenldap-2.4libexec>slapd install OpenLDAP-slapd "OpenLDAP Directory Service" auto
The install path is C:usropenldap-2.4libexecslapd.exe.
service has been installed ...

启动服务
C:usropenldap-2.4libexec>net start OpenLDAP-slapd
OpenLDAP Directory Service 服务正在启动 .
OpenLDAP Directory Service 服务已经启动成功。

停止服务
C:usropenldap-2.4libexec>net stop OpenLDAP-slapd
OpenLDAP Directory Service 服务正在停止.
OpenLDAP Directory Service 服务已成功停止。

删除服务
C:usropenldap-2.4libexec>slapd remove OpenLDAP-slapd
The installed path is C:usropenldap-2.4libexecslapd.exe.
service has been removed ...

LDAP概念、体系结构和设计

http://wenku.baidu.com/view/8e8c4b1fb7360b4c2e3f647f.html[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23937368/viewspace-1057939/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23937368/viewspace-1057939/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值