ITPub博客

首页 > IT基础架构 > 网络安全 > OPENLDAP 命令

OPENLDAP 命令

原创 网络安全 作者:oxoxooxx 时间:2012-04-18 00:20:56 0 删除 编辑

运行环境
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"=""

安装为 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博客 ” ,链接:https://blog.itpub.net/23937368/viewspace-1057939/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: openldap
请登录后发表评论 登录
全部评论
  • 博文量
    178
  • 访问量
    843645