目录
- 概述
- 测试环境
- 安装过程
- 配置启动
- 客户端介绍
- 多级DC的ldif文件的配置
[一]、概述
什么叫LDAP呢,概念的东西这里就不多讲了,网上搜索下有很多,本文的重点是介绍如何在windows平台上安装和配置openLDAP软件。
openLDAP官方网站:http://www.openldap.org/
openLDAP官网只提供了linux平台的相关安装文件,windows平台的安装包可以到以下一些网站下载:
- http://www.userbooster.de/download/openldap-for-windows.aspx(本文所用的版本)
- http://sourceforge.net/projects/openldapwindows/files/
- http://sourceforge.jp/projects/openldapwin32/releases/
[二]、测试环境
- window7 – 64位
- openLDAP 版本:2.4.30 (http://www.userbooster.de/download/openldap-for-windows.aspx )
[三]、安装过程
按照提示 一直 next ,直到安装完成:
安装完成后,在系统服务中,找到 OpenLDAP Service,先停止服务,再把启动类型修改成手动,便于自己的测试。
[四]、配置启动
安装目录:D:\Program Files (x86)\OpenLDAP
编辑文件:D:\Program Files (x86)\OpenLDAP\slapd.conf 找到如下内容:
1 2 |
suffix "dc=maxcrc,dc=com" rootdn "cn=Manager,dc=maxcrc,dc=com" |
修改成:
1 2 |
suffix "dc=micmiu,dc=com" rootdn "cn=Manager,dc=micmiu,dc=com" |
打开控制台,切换到openLDAP安装目录下,启动openLDAP,命令如下:
1 |
slapd -d 1 |
会在控制台看到类似如下的日志信息:
日志信息:slapd starting 表示服务已经启动好了。
新建一个文件:D:\Program Files (x86)\OpenLDAP\mydemo.ldif ,内容如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
dn: dc=micmiu,dc=com objectclass: domain objectclass: top o: Michael Blog dc: micmiu dn: ou=Developer,dc=micmiu,dc=com objectclass: organizationalUnit ou: Developer description: Container for developer entries dn: ou=Tester,dc=micmiu,dc=com objectclass: organizationalUnit ou: Tester description: Container for test entries dn: uid=Michael,ou=Developer,dc=micmiu,dc=com uid: Michael objectClass: inetOrgPerson mail: sjsky_007@gmail.com userPassword: 111111 labeledURI: http://www.micmiu.com sn: Sun cn: Michael Sun dn: uid=Miumiu,ou=Tester,dc=micmiu,dc=com uid: Miumiu objectClass: inetOrgPerson userPassword: 111111 labeledURI: http://www.micmiu.com sn: Wu cn: Miumiu Wu |
tips:格式要严格,每行的开头和末尾不能有空格
然后在控制台中切换到openLDAP安装目录下执行ldapadd命令:
1 |
ldapadd -x -D "cn=Manager,dc=micmiu,dc=com" -w secret -f ./mydemo.ldif |
参数说明:
- -x 使用简单验证方式
- -D 指定管理员DN(与slapd.conf中配置的一致)
- -W 大写W表示回车后根据提示输入密码,可以使用小写的-w password 直接输入密码
- -f 需要导入数据LDIF的文件名
- -h 目录服务器的IP地址
添加成功会显示如下信息:
!!!有网友说:按照我上面的命令,提示:’ldapadd’ 不是内部或外部命令,也不是可运行的程序或批处理文件。经过我的验证发现,该windows版本的openLDAP确实没有这个命令,我能执行成功是因为本机安装过oracle,而Oracle自带安装了LDAP client的一些常用命令。
如果没有”ldapadd“这个命令,还可以用它自带的命令“slapadd”代替导入数据文件。不过要注意的是:和ldapadd命令不同的是:执行slapadd命令前需要先停止之前启动的 slapd 服务(打开服务确定停止了该服务),然后在控制台中切换到openLDAP安装目录下执行命令:
1 |
slapadd -v -l ./mydemo.ldif |
运行结果如下:
ldapadd 和 slapadd 的差异:
- ldapadd 对本地和远程服务都可以操作,操作时LDAP服务是不能停止
- slapadd 只能对本地的LDAP服务进行操作,操作时本地LDAP服务必须先停止
验证添加的信息,在控制台中,切换到%OpenLDAP_HOME%/ClientTools 输入查询命令:
1 |
ldapsearch -x -b "dc=micmiu,dc=com" "(objectclass=*)" |
查询结果如下:
12345678910111213141516171819202122232425262728293031323334 D:\Program Files (x86)\OpenLDAP\ClientTools>ldapsearch -x -b "dc=micmiu,dc=com" "(objectclass=*)"dc=micmiu,dc=comobjectClass=domainobjectClass=topo=Michael Blogdc=micmiuou=Developer,dc=micmiu,dc=comobjectClass=organizationalUnitou=Developerdescription=Container for developer entriesou=Tester,dc=micmiu,dc=comobjectClass=organizationalUnitou=Testerdescription=Container for test entriesuid=Michael,ou=Developer,dc=micmiu,dc=comuid=MichaelobjectClass=inetOrgPersonmail=sjsky_007@gmail.comuserPassword=111111labeledURI=http://www.micmiu.comsn=Suncn=Michael Sunuid=Miumiu,ou=Tester,dc=micmiu,dc=comuid=MiumiuobjectClass=inetOrgPersonuserPassword=111111labeledURI=http://www.micmiu.comsn=Wucn=Miumiu Wu
验证成功。
[五]、客户端介绍
网上搜索到一个客户端:LdapBrowser282 附件提供相关下载:LdapBrowser282.zip
下载解压后直接双击:lbe.bat 文件即可运行。
点击上图中的 Fetch DNs 按钮会自动获取相关的DN信息的。
上面的输入的密码就是之前安装过程中的那个密码(如果自己没有修改过)
可以正确查询到之前添加的相关信息。
[六]、多级DC的ldif文件的配置
在实际应用中我们经常会碰到二级域名,类似:app1.micmiu.com、app2.micmiu.com,那么对应到LDAP中的DC就是多级,这时我们ldif文件又是如何配置呢?下面将给出个示例演示,新建一个文件:D:\Program Files (x86)\OpenLDAP\myappuser.ldif ,内容如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
dn: dc=app1,dc=micmiu,dc=com objectclass: domain o: Michael Demo dc: app1 dn: dc=app2,dc=micmiu,dc=com objectclass: domain o: Michael Demo dc: app2 dn: ou=Demo,dc=app1,dc=micmiu,dc=com objectclass: organizationalUnit ou: Developer description: Container for Demo entries dn: ou=Demo,dc=app2,dc=micmiu,dc=com objectclass: organizationalUnit ou: Developer description: Container for Demo entries dn: uid=michael,ou=Demo,dc=app1,dc=micmiu,dc=com uid: admin objectClass: inetOrgPerson mail: sjsky_007@gmail.com userPassword: 111111 labeledURI: http://www.micmiu.com sn: Sun cn: Michael Sun dn: uid=hazel,ou=Demo,dc=app1,dc=micmiu,dc=com uid: user objectClass: inetOrgPerson userPassword: 111111 labeledURI: http://www.micmiu.com sn: Wu cn: Hazel Wu dn: uid=michael,ou=Demo,dc=app2,dc=micmiu,dc=com uid: admin objectClass: inetOrgPerson mail: sjsky_007@gmail.com userPassword: 111111 labeledURI: http://www.micmiu.com sn: Sun cn: Michael Sun dn: uid=hazel,ou=Demo,dc=app2,dc=micmiu,dc=com uid: user objectClass: inetOrgPerson userPassword: 111111 labeledURI: http://www.micmiu.com sn: Wu cn: Hazel Wu |
tips:注意dc的对应关系,如下图:
然后在控制台窗口中执行ldapadd命令:
1 |
ldapadd -x -D "cn=Manager,dc=micmiu,dc=com" -w secret -f ./myappuser.ldif |
添加成功会显示如下信息:
如果 ldapadd 命令无法运行,先停止slapd 服务,然后在控制台中切换到openLDAP安装目录下执行命令:
1 |
slapadd -v -l ./myappuser.ldif |
客户端工具中可以查询到相关信息:
ok,本文到此已经基本介绍完了,以后再详细介绍如何用Java实现对LDAP的相关操作。
原创文章,转载请注明: 转载自micmiu – 软件开发+生活点滴[ http://www.micmiu.com/ ]
本文链接地址: http://www.micmiu.com/enterprise-app/sso/openldap-windows-config/
为什么slapadd之后提示5de9e30a D:\OpenLDAP\\slapd.conf: line 39: warning, destination attributeType ‘samaccountname’ is not defined in schema
5de9e30a PROXIED attributeDescription “SAMACCOUNTNAME” inserted
楼主,你好,我添加条目的时候提示:类型或值已经存在。。。。
😛 😛 成功了,
首先如果启动不了slap服务器,请带上更改的配置文件即可如下:
slapd.exe -d 1 -f ./slapd.conf
加上 -f 和你的配置文件路径。
如果使用slapadd -v -l ./myappuser.ldif命令,严格按照楼主所说:openLDAP service停止启动即可
C:\OpenLDAP>slapadd -v -l ./mydemo.ldif
59561e85 bdb_db_open: warning – no DB_CONFIG file found in directory ./data: (2)
.
Expect poor performance for suffix “dc=micmiu,dc=com”.
59561e85 bdb_monitor_db_open: monitoring disabled; configure monitor database to
enable
59561e85 str2entry: entry -1 has multiple DNs “dc=micmiu,dc=com” and “ou=Develop
er,dc=micmiu,dc=com”
slapadd: could not parse entry (line=1)
_#################### 100.00% eta none elapsed none fast!
Closing DB…
急急急!
C:\OpenLDAP>slapadd -v -l ./mydemo.ldif
59561e85 bdb_db_open: warning – no DB_CONFIG file found in directory ./data: (2)
.
Expect poor performance for suffix “dc=micmiu,dc=com”.
59561e85 bdb_monitor_db_open: monitoring disabled; configure monitor database to
enable
59561e85 str2entry: entry -1 has multiple DNs “dc=micmiu,dc=com” and “ou=Develop
er,dc=micmiu,dc=com”
slapadd: could not parse entry (line=1)
_#################### 100.00% eta none elapsed none fast!
Closing DB…
在windows上执行mydemo.ldif文件用的那个命令,最后的结果应该是失败的。ldap中并没有添加进去这些数据。用导入的方法只能正确添加到ou。到uid的时候就怎么也添加不进去了。
在吗 楼主
楼主在吗
slapadd -v -l ./*ldif,最后提示slapadd: database doesn’t support necessary operations.
这是啥情况有人遇到过么?
我也遇到了这个问题,你是怎么解决的?
请问楼主,如何实现ppolicy,只用在slapd.conf 里面加这个就好了吗 include ./schema/ppolicy.schema 多谢
楼主您好,有木有改和删的实例呢,网上的都是Linux,不适用于Windows
感谢楼主分享
我在server2008x64上面安装openldap-2.4.38,发现安装界面已经不同了,没有了“Additional Settings”页面
同样,slapd.conf的位置也变更到了“\OpenLDAP\etc\openldap”
在未改动slapd.conf的条件下执行“slapd -d 1”启动openLDAP也会出现如下错误信息:
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying .\ldap.conf
ldap_init: HOME env is NULL
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is ..\etc\openldap\ldap.conf
ldap_init: trying ..\etc\openldap\ldap.conf
ldap_init: using ..\etc\openldap\ldap.conf
ldap_init: LDAPRC env is ..\bin\ldaprc
ldap_init: HOME env is NULL
ldap_init: trying ..\bin\ldaprc
ldap_init: using ..\bin\ldaprc
563ab66f @(#) $OpenLDAP: slapd 2.4.38 (Dec 3 2013 01:42:10) $
@LONDON:/src/openldap-2.4.38/servers/slapd
563ab66f daemon_init: ldap://localhost/ ldaps://localhost/
563ab66f daemon_init: listen on ldap://localhost/
563ab66f daemon_init: listen on ldaps://localhost/
563ab66f daemon_init: 2 listeners to open…
ldap_url_parse_ext(ldap://localhost/)
563ab66f daemon: bind(2) failed errno=10013 (WSAEACCES)
563ab66f daemon: bind(3) failed errno=10013 (WSAEACCES)
563ab66f slap_open_listener: failed on ldap://localhost/
563ab66f slapd stopped.
563ab66f connections_destroy: nothing to destroy.
想问一下楼主:
新版本的OpenLDAP需要先配置slapd.conf文件才能正常启动吗?
expect poor performance for suffix “dc=maxcrc,dc=com”.
55ba5677 bdb_db_open: monitoring disabled; configure monitor database to enable
55ba5677 str2entry: entry -1 has mulitiple DNs “dc=maxcrc,dc=com” and “ou=developer,dc=maxcrc,dc=com”
slapadd: could not parse entry (line=1)
slapadd -v -l ./*ldif,最后提示slapadd: could not parse entry (line=1)
我调试了一周,都是这个问题,不知道你解决了没有,今天不行就打算放弃了。
这是因为你把ldif文件保存成了UNICODE,前面隐藏了3个字节你看不见,建议不要用ultra-edit
dn: dc=micmiu,dc=com
objectclass: domain
objectclass: top
o: Michael Blog
dc: micmiu
//这里的回车和换行有问题,自己删除,再回车(英文状态)
dn: ou=Developer,dc=micmiu,dc=com
D:\OpenLDAP>ldapsearch -x -b “dc=micmiu,dc=com” “(objectclass=*)”
Context Initialization Error
提交数据
unable to locate message file: ldap.msb
怎么解决啊
C:\OpenLDAP> ./slapd.exe -d 1 -f ./slapd.conf
ldap_url_parse_ext(ldap://localhost/)
ldap_init: trying %SYSCONFDIR%\ldap.conf
ldap_init: HOME env is NULL
ldap_init: trying ldaprc
ldap_init: LDAPCONF env is NULL
ldap_init: LDAPRC env is NULL
515a46fe OpenLDAP 2.4.39 Standalone LDAP Server (slapd)515a46fe daemon_init: listen on ldap:///
515a46fe daemon_init: 1 listeners to open…
ldap_url_parse_ext(ldap:///)
5458bda5 daemon: bind(2) failed error=10012 (WSAEACCES)
5458bda5 daemon: bind(3) failed error=10012 (WSAEACCES)
5458bda5 slap_open_listener: failed on ldap:///
5458bda5 slapd stopped.
5458bda5 connections_destroy: nothing to destroy.
C:\OpenLDAP> ./slapdtest.exe -f ./slapd.conf
5458c1b8 bdb_db_open:database “dc=test,dc=com”:db_open(./data/id2entry.bdb) failed: No such file or directory (2)
5458c1b8 backend_startup_one (type=bdb, suffix=”dc=test,dc=com”): bi_db_open failed!(2)
slap_startup_one failed !
这个错误是什么情况,跟上面报错都不一样,端口号3899没有冲突,环境是windows server 2008
楼主 你好,为什么配置完,解压282客户端,点击lbe批处理文件时候,只有一个命令行窗口一闪,然后什么也没打开呢?
在命令行下 启动 看看有什么错误信息
楼主你好,为什么用LdapBrowser282时候,点击lbe启动客户端时候,一直是命令行窗口一闪,然后什么也没打开呢?
碰上了以下的問題
C:\OpenLDAP>slapadd -v -l ./test.ldif
5344b503 bdb_db_open: warning – no DB_CONFIG file found in directory ./data: (2)
.
Expect poor performance for suffix “dc=galaxy,dc=com”.
5344b504 bdb_monitor_db_open: monitoring disabled; configure monitor database to
enable
_#################### 100.00% eta none elapsed none fast!
Closing DB…
ldif裡面有記錄,但是匯入的時候沒有資料。
请问,这个问题你解决了没?我也碰到了
我也遇到了这个问题,楼主请帮忙解决下哈,万分感谢
ldif文件只改内容,文件名称不要改,就可以导入信息了。
楼主,你好,我用ldapsearch -x -b “dc=micmiu,dc=com” “(objectclass=*)”
进行查询时,出来的结果不一样,求解ing……
结果如下:
# extended LDIF
#
# LDAPv3
# base with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#
# search result
search: 2
result: 32 No such object
# numResponses: 1
出来的结果和什么不一样?客户端工具的结果对比么?
我也是这个问题,在使用启动命令时,控制台显示starting,但是查看服务却依然没有启动。我也是win7,64环境。利用下班时间学习,都弄了一周了,再不成功就要放弃了。
写的不错,网上找了好多资料都是瞎copy的,不负责任.根本就不对的东西就网上贴,楼主费心了。
当初写blog就是因为遇到一样的情况,网上搜索很多结果都是互相copy,很多问题,后来就自己把完整的过程记录下来,方便日后查阅
根据教程成功配置了LDAP,感谢博主!
你一次成功了 不错不错,很多人都有各种问题出现
51d3dac3 config_build_entry: build “cn=config” failed: “”
51d3dac3 backend_startup_one (type=config, suffix=”cn=config”): bi_db_open failed! (-1)
我也出现此错误
http://bbs.csdn.net/topics/390412421
解决方法(一):
slapd.exe -d 1 -f ./slapd.conf
加上 -f 和你的配置文件路径
解决方法(二):
安装目录下面有个 run 目录, run 目录下面有个
run.cmd 直接双击运行;
这个版本的启动方式有些变动
good job
51cbea35 OpenLDAP 2.4.34 Standalone LDAP Server (slapd)51cbea35 daemon_init: listen on ldap:///
51cbea35 daemon_init: 1 listeners to open…
ldap_url_parse_ext(ldap:///)
51cbea35 daemon: listener initialized ldap:///
51cbea35 daemon_init: 1 listeners opened
ldap_create
51cbea35 slapd init: initiated server.
51cbea35 slap_sasl_init: initialized!
51cbea35 bdb_back_initialize: initialize BDB backend
51cbea35 bdb_back_initialize: Berkeley DB 5.3.21: (May 11, 2012)
51cbea35 ==>sql_back_initialize()
51cbea35 translucent_initialize
51cbea35 bdb_db_init: Initializing BDB database
51cbea35 >>> dnPrettyNormal:
51cbea35 <<< dnPrettyNormal: ,
51cbea35 >>> dnPrettyNormal:
51cbea35 <<< dnPrettyNormal: ,
51cbea35 >>> dnNormalize:
51cbea35 <<< dnNormalize:
51cbea35 matching_rule_use_init
51cbea35 1.2.840.113556.1.4.804 (integerBitOrMatch): 51cbea35 matchingRuleUse: ( 1.2.840.113556.1.4.804 NAME ‘integerBitOrMatch’ APPLIES ( supportedLDAPVersion $ entryTtl $ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcIndexIntLen $ olcListenerThreads $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $ olcToolThreads $ olcWriteTimeout $ olcDbCacheFree $ olcDbCacheSize $ olcDbDNcacheSize $ olcDbIDLcacheSize $ olcDbSearchStack $ olcDbShmKey $ olcDbProtocolVersion $ olcDbConnectionPoolMax $ olcChainMaxReferralDepth $ olcDbMaxReaders $ olcDbMaxSize $ olcSpSessionlog $ olcSssVlvMax $ olcSssVlvMaxKeys $ olcSssVlvMaxPerConn $ olcPcacheMaxQueries $ olcRetcodeSleep $ olcDDSmaxDynamicObjects $ mailPreferenceOption $ shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive $ shadowExpire $ shadowFlag $ ipServicePort $ ipProtocolNumber $ oncRpcNumber ) )
51cbea35 1.2.840.113556.1.4.803 (integerBitAndMatch): 51cbea35 matchingRuleUse: ( 1.2.840.113556.1.4.803 NAME ‘integerBitAndMatch’ APPLIES ( supportedLDAPVersion $ entryTtl $ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcIndexIntLen $ olcListenerThreads $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $ olcToolThreads $ olcWriteTimeout $ olcDbCacheFree $ olcDbCacheSize $ olcDbDNcacheSize $ olcDbIDLcacheSize $ olcDbSearchStack $ olcDbShmKey $ olcDbProtocolVersion $ olcDbConnectionPoolMax $ olcChainMaxReferralDepth $ olcDbMaxReaders $ olcDbMaxSize $ olcSpSessionlog $ olcSssVlvMax $ olcSssVlvMaxKeys $ olcSssVlvMaxPerConn $ olcPcacheMaxQueries $ olcRetcodeSleep $ olcDDSmaxDynamicObjects $ mailPreferenceOption $ shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive $ shadowExpire $ shadowFlag $ ipServicePort $ ipProtocolNumber $ oncRpcNumber ) )
51cbea35 1.3.6.1.4.1.1466.109.114.2 (caseIgnoreIA5Match): 51cbea35 matchingRuleUse: ( 1.3.6.1.4.1.1466.109.114.2 NAME ‘caseIgnoreIA5Match’ APPLIES ( altServer $ olcDbConfig $ c $ mail $ dc $ associatedDomain $ email $ aRecord $ mDRecord $ mXRecord $ nSRecord $ sOARecord $ cNAMERecord $ janetMailbox $ gecos $ homeDirectory $ loginShell $ memberUid $ memberNisNetgroup $ ipHostNumber $ ipNetworkNumber $ ipNetmaskNumber $ macAddress $ bootFile $ nisMapEntry ) )
51cbea35 1.3.6.1.4.1.1466.109.114.1 (caseExactIA5Match): 51cbea35 matchingRuleUse: ( 1.3.6.1.4.1.1466.109.114.1 NAME ‘caseExactIA5Match’ APPLIES ( altServer $ olcDbConfig $ c $ mail $ dc $ associatedDomain $ email $ aRecord $ mDRecord $ mXRecord $ nSRecord $ sOARecord $ cNAMERecord $ janetMailbox $ gecos $ homeDirectory $ loginShell $ memberUid $ memberNisNetgroup $ ipHostNumber $ ipNetworkNumber $ ipNetmaskNumber $ macAddress $ bootFile $ nisMapEntry ) )
51cbea35 2.5.13.39 (certificateListMatch): 51cbea35 2.5.13.38 (certificateListExactMatch): 51cbea35 matchingRuleUse: ( 2.5.13.38 NAME ‘certificateListExactMatch’ APPLIES ( authorityRevocationList $ certificateRevocationList $ deltaRevocationList ) )
51cbea35 2.5.13.35 (certificateMatch): 51cbea35 2.5.13.34 (certificateExactMatch): 51cbea35 matchingRuleUse: ( 2.5.13.34 NAME ‘certificateExactMatch’ APPLIES ( userCertificate $ cACertificate ) )
51cbea35 2.5.13.30 (objectIdentifierFirstComponentMatch): 51cbea35 matchingRuleUse: ( 2.5.13.30 NAME ‘objectIdentifierFirstComponentMatch’ APPLIES ( supportedControl $ supportedExtension $ supportedFeatures $ ldapSyntaxes $ supportedApplicationContext ) )
51cbea35 2.5.13.29 (integerFirstComponentMatch): 51cbea35 matchingRuleUse: ( 2.5.13.29 NAME ‘integerFirstComponentMatch’ APPLIES ( supportedLDAPVersion $ entryTtl $ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcIndexIntLen $ olcListenerThreads $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $ olcToolThreads $ olcWriteTimeout $ olcDbCacheFree $ olcDbCacheSize $ olcDbDNcacheSize $ olcDbIDLcacheSize $ olcDbSearchStack $ olcDbShmKey $ olcDbProtocolVersion $ olcDbConnectionPoolMax $ olcChainMaxReferralDepth $ olcDbMaxReaders $ olcDbMaxSize $ olcSpSessionlog $ olcSssVlvMax $ olcSssVlvMaxKeys $ olcSssVlvMaxPerConn $ olcPcacheMaxQueries $ olcRetcodeSleep $ olcDDSmaxDynamicObjects $ mailPreferenceOption $ shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive $ shadowExpire $ shadowFlag $ ipServicePort $ ipProtocolNumber $ oncRpcNumber ) )
51cbea35 2.5.13.28 (generalizedTimeOrderingMatch): 51cbea35 matchingRuleUse: ( 2.5.13.28 NAME ‘generalizedTimeOrderingMatch’ APPLIES ( createTimestamp $ modifyTimestamp $ pwdChangedTime $ pwdAccountLockedTime $ pwdFailureTime $ pwdGraceUseTime ) )
51cbea35 2.5.13.27 (generalizedTimeMatch): 51cbea35 matchingRuleUse: ( 2.5.13.27 NAME ‘generalizedTimeMatch’ APPLIES ( createTimestamp $ modifyTimestamp $ pwdChangedTime $ pwdAccountLockedTime $ pwdFailureTime $ pwdGraceUseTime ) )
51cbea35 2.5.13.24 (protocolInformationMatch): 51cbea35 matchingRuleUse: ( 2.5.13.24 NAME ‘protocolInformationMatch’ APPLIES protocolInformation )
51cbea35 2.5.13.23 (uniqueMemberMatch): 51cbea35 matchingRuleUse: ( 2.5.13.23 NAME ‘uniqueMemberMatch’ APPLIES uniqueMember )
51cbea35 2.5.13.22 (presentationAddressMatch): 51cbea35 matchingRuleUse: ( 2.5.13.22 NAME ‘presentationAddressMatch’ APPLIES presentationAddress )
51cbea35 2.5.13.20 (telephoneNumberMatch): 51cbea35 matchingRuleUse: ( 2.5.13.20 NAME ‘telephoneNumberMatch’ APPLIES ( telephoneNumber $ homePhone $ mobile $ pager ) )
51cbea35 2.5.13.18 (octetStringOrderingMatch): 51cbea35 matchingRuleUse: ( 2.5.13.18 NAME ‘octetStringOrderingMatch’ APPLIES ( userPassword $ olcDbCryptKey $ pwdHistory ) )
51cbea35 2.5.13.17 (octetStringMatch): 51cbea35 matchingRuleUse: ( 2.5.13.17 NAME ‘octetStringMatch’ APPLIES ( userPassword $ olcDbCryptKey $ pwdHistory ) )
51cbea35 2.5.13.16 (bitStringMatch): 51cbea35 matchingRuleUse: ( 2.5.13.16 NAME ‘bitStringMatch’ APPLIES x500UniqueIdentifier )
51cbea35 2.5.13.15 (integerOrderingMatch): 51cbea35 matchingRuleUse: ( 2.5.13.15 NAME ‘integerOrderingMatch’ APPLIES ( supportedLDAPVersion $ entryTtl $ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcIndexIntLen $ olcListenerThreads $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $ olcToolThreads $ olcWriteTimeout $ olcDbCacheFree $ olcDbCacheSize $ olcDbDNcacheSize $ olcDbIDLcacheSize $ olcDbSearchStack $ olcDbShmKey $ olcDbProtocolVersion $ olcDbConnectionPoolMax $ olcChainMaxReferralDepth $ olcDbMaxReaders $ olcDbMaxSize $ olcSpSessionlog $ olcSssVlvMax $ olcSssVlvMaxKeys $ olcSssVlvMaxPerConn $ olcPcacheMaxQueries $ olcRetcodeSleep $ olcDDSmaxDynamicObjects $ mailPreferenceOption $ shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive $ shadowExpire $ shadowFlag $ ipServicePort $ ipProtocolNumber $ oncRpcNumber ) )
51cbea35 2.5.13.14 (integerMatch): 51cbea35 matchingRuleUse: ( 2.5.13.14 NAME ‘integerMatch’ APPLIES ( supportedLDAPVersion $ entryTtl $ uidNumber $ gidNumber $ olcConcurrency $ olcConnMaxPending $ olcConnMaxPendingAuth $ olcIdleTimeout $ olcIndexSubstrIfMinLen $ olcIndexSubstrIfMaxLen $ olcIndexSubstrAnyLen $ olcIndexSubstrAnyStep $ olcIndexIntLen $ olcListenerThreads $ olcLocalSSF $ olcMaxDerefDepth $ olcReplicationInterval $ olcSockbufMaxIncoming $ olcSockbufMaxIncomingAuth $ olcThreads $ olcToolThreads $ olcWriteTimeout $ olcDbCacheFree $ olcDbCacheSize $ olcDbDNcacheSize $ olcDbIDLcacheSize $ olcDbSearchStack $ olcDbShmKey $ olcDbProtocolVersion $ olcDbConnectionPoolMax $ olcChainMaxReferralDepth $ olcDbMaxReaders $ olcDbMaxSize $ olcSpSessionlog $ olcSssVlvMax $ olcSssVlvMaxKeys $ olcSssVlvMaxPerConn $ olcPcacheMaxQueries $ olcRetcodeSleep $ olcDDSmaxDynamicObjects $ mailPreferenceOption $ shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive $ shadowExpire $ shadowFlag $ ipServicePort $ ipProtocolNumber $ oncRpcNumber ) )
51cbea35 2.5.13.13 (booleanMatch): 51cbea35 matchingRuleUse: ( 2.5.13.13 NAME ‘booleanMatch’ APPLIES ( hasSubordinates $ olcAddContentAcl $ olcGentleHUP $ olcHidden $ olcLastMod $ olcMirrorMode $ olcMonitoring $ olcReadOnly $ olcReverseLookup $ olcSyncUseSubentry $ olcDbChecksum $ olcDbNoSync $ olcDbDirtyRead $ olcDbLinearIndex $ olcDbRebindAsUser $ olcDbChaseReferrals $ olcDbProxyWhoAmI $ olcDbSingleConn $ olcDbUseTemporaryConn $ olcDbSessionTrackingRequest $ olcDbNoRefs $ olcDbNoUndefFilter $ olcChainCacheURI $ olcChainReturnError $ olcDbPseudoRootBindDefer $ olcSpNoPresent $ olcSpReloadHint $ olcRwmNormalizeMapped $ olcRwmDropUnrequested $ olcPcachePersist $ olcPcacheValidate $ olcPcacheOffline $ olcRetcodeInDir $ olcTranslucentStrict $ olcTranslucentNoGlue $ olcTranslucentBindLocal $ olcTranslucentPwModLocal $ olcMemberOfRefInt $ olcDDSstate $ olcAccessLogSuccess $ pwdReset $ olcPPolicyHashCleartext $ olcPPolicyForwardUpdates $ olcPPolicyUseLockout $ olcUniqueStrict ) )
51cbea35 2.5.13.11 (caseIgnoreListMatch): 51cbea35 matchingRuleUse: ( 2.5.13.11 NAME ‘caseIgnoreListMatch’ APPLIES ( postalAddress $ registeredAddress $ homePostalAddress ) )
51cbea35 2.5.13.9 (numericStringOrderingMatch): 51cbea35 matchingRuleUse: ( 2.5.13.9 NAME ‘numericStringOrderingMatch’ APPLIES ( x121Address $ internationaliSDNNumber ) )
51cbea35 2.5.13.8 (numericStringMatch): 51cbea35 matchingRuleUse: ( 2.5.13.8 NAME ‘numericStringMatch’ APPLIES ( x121Address $ internationaliSDNNumber ) )
51cbea35 2.5.13.7 (caseExactSubstringsMatch): 51cbea35 matchingRuleUse: ( 2.5.13.7 NAME ‘caseExactSubstringsMatch’ APPLIES ( serialNumber $ destinationIndicator $ dnQualifier ) )
51cbea35 2.5.13.6 (caseExactOrderingMatch): 51cbea35 matchingRuleUse: ( 2.5.13.6 NAME ‘caseExactOrderingMatch’ APPLIES ( supportedSASLMechanisms $ vendorName $ vendorVersion $ ref $ name $ cn $ uid $ labeledURI $ description $ olcConfigFile $ olcConfigDir $ olcAccess $ olcAllows $ olcArgsFile $ olcAttributeOptions $ olcAttributeTypes $ olcAuthIDRewrite $ olcAuthzPolicy $ olcAuthzRegexp $ olcBackend $ olcDatabase $ olcDisallows $ olcDitContentRules $ olcExtraAttrs $ olcInclude $ olcLdapSyntaxes $ olcLimits $ olcLogFile $ olcLogLevel $ olcModuleLoad $ olcModulePath $ olcObjectClasses $ olcObjectIdentifier $ olcOverlay $ olcPasswordCryptSaltFormat $ olcPasswordHash $ olcPidFile $ olcPlugin $ olcPluginLogFile $ olcReferral $ olcReplica $ olcReplicaArgsFile $ olcReplicaPidFile $ olcReplogFile $ olcRequires $ olcRestrict $ olcRootDSE $ olcRootPW $ olcSaslAuxprops $ olcSaslHost $ olcSaslRealm $ olcSaslSecProps $ olcSecurity $ olcServerID $ olcSizeLimit $ olcSortVals $ olcSubordinate $ olcSyncrepl $ olcTCPBuffer $ olcTimeLimit $ olcTLSCACertificateFile $ olcTLSCACertificatePath $ olcTLSCertificateFile $ olcTLSCertificateKeyFile $ olcTLSCipherSuite $ olcTLSCRLCheck $ olcTLSCRLFile $ olcTLSRandFile $ olcTLSVerifyClient $ olcTLSDHParamFile $ olcTLSProtocolMin $ olcUpdateRef $ olcDbDirectory $ olcDbCheckpoint $ olcDbCryptFile $ olcDbPageSize $ olcDbIndex $ olcDbLockDetect $ olcDbMode $ olcDbURI $ olcDbStartTLS $ olcDbACLPasswd $ olcDbACLBind $ olcDbIDAssertPasswd $ olcDbIDAssertBind $ olcDbIDAssertMode $ olcDbIDAssertAuthzFrom $ olcDbTFSupport $ olcDbTimeout $ olcDbIdleTimeout $ olcDbConnTtl $ olcDbNetworkTimeout $ olcDbCancel $ olcDbQuarantine $ olcDbOnErr $ olcDbIDAssertPassThru $ olcDbKeepalive $ olcChainingBehavior $ olcDbRewrite $ olcDbMap $ olcDbSubtreeExclude $ olcDbSubtreeInclude $ olcDbDefaultTarget $ olcDbDnCacheTtl $ olcDbBindTimeout $ olcDbNretries $ olcDbClientPr $ olcMetaSub $ olcDbEnvFlags $ olcSpCheckpoint $ olcRwmRewrite $ olcRwmTFSupport $ olcRwmMap $ olcPcache $ olcPcacheAttrset $ olcPcacheTemplate $ olcPcachePosition $ olcPcacheBind $ olcRetcodeItem $ olcTranslucentLocal $ olcTranslucentRemote $ olcMemberOfDangling $ olcMemberOfGroupOC $ olcMemberOfMemberAD $ olcMemberOfMemberOfAD $ olcMemberOfDanglingError $ olcDlAttrSet $ olcConstraintAttribute $ olcDDSmaxTtl $ olcDDSminTtl $ olcDDSdefaultTtl $ olcDDSinterval $ olcDDStolerance $ olcAccessLogOps $ olcAccessLogPurge $ olcAccessLogOld $ olcAccessLogOldAttr $ olcAccessLogBase $ olcAuditlogFile $ olcRefintAttribute $ olcUniqueIgnore $ olcUniqueAttribute $ olcUniqueURI $ olcValSortAttr $ knowledgeInformation $ sn $ serialNumber $ c $ l $ st $ street $ o $ ou $ title $ businessCategory $ postalCode $ postOfficeBox $ physicalDeliveryOfficeName $ destinationIndicator $ givenName $ initials $ generationQualifier $ dnQualifier $ houseIdentifier $ dmdName $ pseudonym $ textEncodedORAddress $ info $ drink $ roomNumber $ userClass $ host $ documentIdentifier $ documentTitle $ documentVersion $ documentLocation $ personalTitle $ co $ uniqueIdentifier $ organizationalStatus $ buildingName $ documentPublisher $ ipServiceProtocol $ nisMapName $ carLicense $ departmentNumber $ displayName $ employeeNumber $ employeeType $ preferredLanguage ) )
51cbea35 2.5.13.5 (caseExactMatch): 51cbea35 matchingRuleUse: ( 2.5.13.5 NAME ‘caseExactMatch’ APPLIES ( supportedSASLMechanisms $ vendorName $ vendorVersion $ ref $ name $ cn $ uid $ labeledURI $ description $ olcConfigFile $ olcConfigDir $ olcAccess $ olcAllows $ olcArgsFile $ olcAttributeOptions $ olcAttributeTypes $ olcAuthIDRewrite $ olcAuthzPolicy $ olcAuthzRegexp $ olcBackend $ olcDatabase $ olcDisallows $ olcDitContentRules $ olcExtraAttrs $ olcInclude $ olcLdapSyntaxes $ olcLimits $ olcLogFile $ olcLogLevel $ olcModuleLoad $ olcModulePath $ olcObjectClasses $ olcObjectIdentifier $ olcOverlay $ olcPasswordCryptSaltFormat $ olcPasswordHash $ olcPidFile $ olcPlugin $ olcPluginLogFile $ olcReferral $ olcReplica $ olcReplicaArgsFile $ olcReplicaPidFile $ olcReplogFile $ olcRequires $ olcRestrict $ olcRootDSE $ olcRootPW $ olcSaslAuxprops $ olcSaslHost $ olcSaslRealm $ olcSaslSecProps $ olcSecurity $ olcServerID $ olcSizeLimit $ olcSortVals $ olcSubordinate $ olcSyncrepl $ olcTCPBuffer $ olcTimeLimit $ olcTLSCACertificateFile $ olcTLSCACertificatePath $ olcTLSCertificateFile $ olcTLSCertificateKeyFile $ olcTLSCipherSuite $ olcTLSCRLCheck $ olcTLSCRLFile $ olcTLSRandFile $ olcTLSVerifyClient $ olcTLSDHParamFile $ olcTLSProtocolMin $ olcUpdateRef $ olcDbDirectory $ olcDbCheckpoint $ olcDbCryptFile $ olcDbPageSize $ olcDbIndex $ olcDbLockDetect $ olcDbMode $ olcDbURI $ olcDbStartTLS $ olcDbACLPasswd $ olcDbACLBind $ olcDbIDAssertPasswd $ olcDbIDAssertBind $ olcDbIDAssertMode $ olcDbIDAssertAuthzFrom $ olcDbTFSupport $ olcDbTimeout $ olcDbIdleTimeout $ olcDbConnTtl $ olcDbNetworkTimeout $ olcDbCancel $ olcDbQuarantine $ olcDbOnErr $ olcDbIDAssertPassThru $ olcDbKeepalive $ olcChainingBehavior $ olcDbRewrite $ olcDbMap $ olcDbSubtreeExclude $ olcDbSubtreeInclude $ olcDbDefaultTarget $ olcDbDnCacheTtl $ olcDbBindTimeout $ olcDbNretries $ olcDbClientPr $ olcMetaSub $ olcDbEnvFlags $ olcSpCheckpoint $ olcRwmRewrite $ olcRwmTFSupport $ olcRwmMap $ olcPcache $ olcPcacheAttrset $ olcPcacheTemplate $ olcPcachePosition $ olcPcacheBind $ olcRetcodeItem $ olcTranslucentLocal $ olcTranslucentRemote $ olcMemberOfDangling $ olcMemberOfGroupOC $ olcMemberOfMemberAD $ olcMemberOfMemberOfAD $ olcMemberOfDanglingError $ olcDlAttrSet $ olcConstraintAttribute $ olcDDSmaxTtl $ olcDDSminTtl $ olcDDSdefaultTtl $ olcDDSinterval $ olcDDStolerance $ olcAccessLogOps $ olcAccessLogPurge $ olcAccessLogOld $ olcAccessLogOldAttr $ olcAccessLogBase $ olcAuditlogFile $ olcRefintAttribute $ olcUniqueIgnore $ olcUniqueAttribute $ olcUniqueURI $ olcValSortAttr $ knowledgeInformation $ sn $ serialNumber $ c $ l $ st $ street $ o $ ou $ title $ businessCategory $ postalCode $ postOfficeBox $ physicalDeliveryOfficeName $ destinationIndicator $ givenName $ initials $ generationQualifier $ dnQualifier $ houseIdentifier $ dmdName $ pseudonym $ textEncodedORAddress $ info $ drink $ roomNumber $ userClass $ host $ documentIdentifier $ documentTitle $ documentVersion $ documentLocation $ personalTitle $ co $ uniqueIdentifier $ organizationalStatus $ buildingName $ documentPublisher $ ipServiceProtocol $ nisMapName $ carLicense $ departmentNumber $ displayName $ employeeNumber $ employeeType $ preferredLanguage ) )
51cbea35 2.5.13.4 (caseIgnoreSubstringsMatch): 51cbea35 matchingRuleUse: ( 2.5.13.4 NAME ‘caseIgnoreSubstringsMatch’ APPLIES ( serialNumber $ destinationIndicator $ dnQualifier ) )
51cbea35 2.5.13.3 (caseIgnoreOrderingMatch): 51cbea35 matchingRuleUse: ( 2.5.13.3 NAME ‘caseIgnoreOrderingMatch’ APPLIES ( supportedSASLMechanisms $ vendorName $ vendorVersion $ ref $ name $ cn $ uid $ labeledURI $ description $ olcConfigFile $ olcConfigDir $ olcAccess $ olcAllows $ olcArgsFile $ olcAttributeOptions $ olcAttributeTypes $ olcAuthIDRewrite $ olcAuthzPolicy $ olcAuthzRegexp $ olcBackend $ olcDatabase $ olcDisallows $ olcDitContentRules $ olcExtraAttrs $ olcInclude $ olcLdapSyntaxes $ olcLimits $ olcLogFile $ olcLogLevel $ olcModuleLoad $ olcModulePath $ olcObjectClasses $ olcObjectIdentifier $ olcOverlay $ olcPasswordCryptSaltFormat $ olcPasswordHash $ olcPidFile $ olcPlugin $ olcPluginLogFile $ olcReferral $ olcReplica $ olcReplicaArgsFile $ olcReplicaPidFile $ olcReplogFile $ olcRequires $ olcRestrict $ olcRootDSE $ olcRootPW $ olcSaslAuxprops $ olcSaslHost $ olcSaslRealm $ olcSaslSecProps $ olcSecurity $ olcServerID $ olcSizeLimit $ olcSortVals $ olcSubordinate $ olcSyncrepl $ olcTCPBuffer $ olcTimeLimit $ olcTLSCACertificateFile $ olcTLSCACertificatePath $ olcTLSCertificateFile $ olcTLSCertificateKeyFile $ olcTLSCipherSuite $ olcTLSCRLCheck $ olcTLSCRLFile $ olcTLSRandFile $ olcTLSVerifyClient $ olcTLSDHParamFile $ olcTLSProtocolMin $ olcUpdateRef $ olcDbDirectory $ olcDbCheckpoint $ olcDbCryptFile $ olcDbPageSize $ olcDbIndex $ olcDbLockDetect $ olcDbMode $ olcDbURI $ olcDbStartTLS $ olcDbACLPasswd $ olcDbACLBind $ olcDbIDAssertPasswd $ olcDbIDAssertBind $ olcDbIDAssertMode $ olcDbIDAssertAuthzFrom $ olcDbTFSupport $ olcDbTimeout $ olcDbIdleTimeout $ olcDbConnTtl $ olcDbNetworkTimeout $ olcDbCancel $ olcDbQuarantine $ olcDbOnErr $ olcDbIDAssertPassThru $ olcDbKeepalive $ olcChainingBehavior $ olcDbRewrite $ olcDbMap $ olcDbSubtreeExclude $ olcDbSubtreeInclude $ olcDbDefaultTarget $ olcDbDnCacheTtl $ olcDbBindTimeout $ olcDbNretries $ olcDbClientPr $ olcMetaSub $ olcDbEnvFlags $ olcSpCheckpoint $ olcRwmRewrite $ olcRwmTFSupport $ olcRwmMap $ olcPcache $ olcPcacheAttrset $ olcPcacheTemplate $ olcPcachePosition $ olcPcacheBind $ olcRetcodeItem $ olcTranslucentLocal $ olcTranslucentRemote $ olcMemberOfDangling $ olcMemberOfGroupOC $ olcMemberOfMemberAD $ olcMemberOfMemberOfAD $ olcMemberOfDanglingError $ olcDlAttrSet $ olcConstraintAttribute $ olcDDSmaxTtl $ olcDDSminTtl $ olcDDSdefaultTtl $ olcDDSinterval $ olcDDStolerance $ olcAccessLogOps $ olcAccessLogPurge $ olcAccessLogOld $ olcAccessLogOldAttr $ olcAccessLogBase $ olcAuditlogFile $ olcRefintAttribute $ olcUniqueIgnore $ olcUniqueAttribute $ olcUniqueURI $ olcValSortAttr $ knowledgeInformation $ sn $ serialNumber $ c $ l $ st $ street $ o $ ou $ title $ businessCategory $ postalCode $ postOfficeBox $ physicalDeliveryOfficeName $ destinationIndicator $ givenName $ initials $ generationQualifier $ dnQualifier $ houseIdentifier $ dmdName $ pseudonym $ textEncodedORAddress $ info $ drink $ roomNumber $ userClass $ host $ documentIdentifier $ documentTitle $ documentVersion $ documentLocation $ personalTitle $ co $ uniqueIdentifier $ organizationalStatus $ buildingName $ documentPublisher $ ipServiceProtocol $ nisMapName $ carLicense $ departmentNumber $ displayName $ employeeNumber $ employeeType $ preferredLanguage ) )
51cbea35 2.5.13.2 (caseIgnoreMatch): 51cbea35 matchingRuleUse: ( 2.5.13.2 NAME ‘caseIgnoreMatch’ APPLIES ( supportedSASLMechanisms $ vendorName $ vendorVersion $ ref $ name $ cn $ uid $ labeledURI $ description $ olcConfigFile $ olcConfigDir $ olcAccess $ olcAllows $ olcArgsFile $ olcAttributeOptions $ olcAttributeTypes $ olcAuthIDRewrite $ olcAuthzPolicy $ olcAuthzRegexp $ olcBackend $ olcDatabase $ olcDisallows $ olcDitContentRules $ olcExtraAttrs $ olcInclude $ olcLdapSyntaxes $ olcLimits $ olcLogFile $ olcLogLevel $ olcModuleLoad $ olcModulePath $ olcObjectClasses $ olcObjectIdentifier $ olcOverlay $ olcPasswordCryptSaltFormat $ olcPasswordHash $ olcPidFile $ olcPlugin $ olcPluginLogFile $ olcReferral $ olcReplica $ olcReplicaArgsFile $ olcReplicaPidFile $ olcReplogFile $ olcRequires $ olcRestrict $ olcRootDSE $ olcRootPW $ olcSaslAuxprops $ olcSaslHost $ olcSaslRealm $ olcSaslSecProps $ olcSecurity $ olcServerID $ olcSizeLimit $ olcSortVals $ olcSubordinate $ olcSyncrepl $ olcTCPBuffer $ olcTimeLimit $ olcTLSCACertificateFile $ olcTLSCACertificatePath $ olcTLSCertificateFile $ olcTLSCertificateKeyFile $ olcTLSCipherSuite $ olcTLSCRLCheck $ olcTLSCRLFile $ olcTLSRandFile $ olcTLSVerifyClient $ olcTLSDHParamFile $ olcTLSProtocolMin $ olcUpdateRef $ olcDbDirectory $ olcDbCheckpoint $ olcDbCryptFile $ olcDbPageSize $ olcDbIndex $ olcDbLockDetect $ olcDbMode $ olcDbURI $ olcDbStartTLS $ olcDbACLPasswd $ olcDbACLBind $ olcDbIDAssertPasswd $ olcDbIDAssertBind $ olcDbIDAssertMode $ olcDbIDAssertAuthzFrom $ olcDbTFSupport $ olcDbTimeout $ olcDbIdleTimeout $ olcDbConnTtl $ olcDbNetworkTimeout $ olcDbCancel $ olcDbQuarantine $ olcDbOnErr $ olcDbIDAssertPassThru $ olcDbKeepalive $ olcChainingBehavior $ olcDbRewrite $ olcDbMap $ olcDbSubtreeExclude $ olcDbSubtreeInclude $ olcDbDefaultTarget $ olcDbDnCacheTtl $ olcDbBindTimeout $ olcDbNretries $ olcDbClientPr $ olcMetaSub $ olcDbEnvFlags $ olcSpCheckpoint $ olcRwmRewrite $ olcRwmTFSupport $ olcRwmMap $ olcPcache $ olcPcacheAttrset $ olcPcacheTemplate $ olcPcachePosition $ olcPcacheBind $ olcRetcodeItem $ olcTranslucentLocal $ olcTranslucentRemote $ olcMemberOfDangling $ olcMemberOfGroupOC $ olcMemberOfMemberAD $ olcMemberOfMemberOfAD $ olcMemberOfDanglingError $ olcDlAttrSet $ olcConstraintAttribute $ olcDDSmaxTtl $ olcDDSminTtl $ olcDDSdefaultTtl $ olcDDSinterval $ olcDDStolerance $ olcAccessLogOps $ olcAccessLogPurge $ olcAccessLogOld $ olcAccessLogOldAttr $ olcAccessLogBase $ olcAuditlogFile $ olcRefintAttribute $ olcUniqueIgnore $ olcUniqueAttribute $ olcUniqueURI $ olcValSortAttr $ knowledgeInformation $ sn $ serialNumber $ c $ l $ st $ street $ o $ ou $ title $ businessCategory $ postalCode $ postOfficeBox $ physicalDeliveryOfficeName $ destinationIndicator $ givenName $ initials $ generationQualifier $ dnQualifier $ houseIdentifier $ dmdName $ pseudonym $ textEncodedORAddress $ info $ drink $ roomNumber $ userClass $ host $ documentIdentifier $ documentTitle $ documentVersion $ documentLocation $ personalTitle $ co $ uniqueIdentifier $ organizationalStatus $ buildingName $ documentPublisher $ ipServiceProtocol $ nisMapName $ carLicense $ departmentNumber $ displayName $ employeeNumber $ employeeType $ preferredLanguage ) )
51cbea35 1.2.36.79672281.1.13.3 (rdnMatch): 51cbea35 2.5.13.1 (distinguishedNameMatch): 51cbea35 matchingRuleUse: ( 2.5.13.1 NAME ‘distinguishedNameMatch’ APPLIES ( creatorsName $ modifiersName $ subschemaSubentry $ entryDN $ namingContexts $ aliasedObjectName $ dynamicSubtrees $ distinguishedName $ seeAlso $ olcDefaultSearchBase $ olcRootDN $ olcSchemaDN $ olcSuffix $ olcUpdateDN $ olcRelay $ olcDbACLAuthcDn $ olcDbIDAssertAuthcDn $ olcRetcodeParent $ memberOf $ olcMemberOfDN $ olcAccessLogDB $ pwdPolicySubentry $ olcPPolicyDefault $ olcRefintNothing $ olcRefintModifiersName $ olcUniqueBase $ member $ owner $ roleOccupant $ manager $ documentAuthor $ secretary $ associatedName $ dITRedirect ) )
51cbea35 2.5.13.0 (objectIdentifierMatch): 51cbea35 matchingRuleUse: ( 2.5.13.0 NAME ‘objectIdentifierMatch’ APPLIES ( supportedControl $ supportedExtension $ supportedFeatures $ supportedApplicationContext ) )
51cbea35 slapd startup: initiated.
51cbea35 backend_startup_one: starting “cn=config”
51cbea35 config_back_db_open
51cbea35 config_build_entry: “cn=config”
51cbea35 config_build_attrs: error 21 on olcConfigFile value #0
51cbea35 config_build_entry: build “cn=config” failed: “”
51cbea35 backend_startup_one (type=config, suffix=”cn=config”): bi_db_open failed! (-1)
51cbea35 slapd shutdown: initiated
51cbea35 ====> bdb_cache_release_all
51cbea35 slapd destroy: freeing system resources.
51cbea35 slapd stopped.
启动时候报以上错误,好像是数据库错误,能否分析一下。
–xp版本
–OpenLDAP是 2.4.34
我也碰到了这个问题,你解决了吗?
同上一样的错误 什么情况
按照上面那位仁兄的操作
安装目录下面有个 run 目录, run 目录下面有个
run.cmd 直接双击运行;
启动成功
请问博主,你这个版本的可以include自定义的schema吗?我在slapd.conf里面将我的schema文件include以后启动openldap看到并没有引入我的schema
你好,请问你问题解决了吗,我也导入不了自定义的schema
解决了,用一个可以导入的schema来改,所以我估计是自定义的schema有问题,但是具体是什么问题不清楚
大多数是因为格式不正确
另外,楼主,我想问一下,就是本地启动的项目,如:localhost:8080/testProject这样的访问路径应该如何配置suffix和rootdn?
这个应该是类似多级DC的配置 ,具体我没有研究过的 没办法给你更好的建议
依然感谢!呵呵
嗯 这个可以多多交流的
楼主好,按照配置说明,我在win2008上面安装的,但是在执行slapd -d 1的时候,提示如下错误,麻烦帮忙看看呗,在网上查了好久也没有找到
516e6056 slapd startup: initiated.
516e6056 backend_startup_one: starting “cn=config”
516e6056 config_back_db_open
516e6056 config_build_entry: “cn=config”
516e6056 config_build_attrs: error 21 on olcConfigFile value #0
516e6056 config_build_entry: build “cn=config” failed: “”
516e6056 backend_startup_one (type=config, suffix=”cn=config”): bi_db_open failed! (-1)
516e6056 slapd shutdown: initiated
516e6056 ====> bdb_cache_release_all
516e6056 slapd destroy: freeing system resources.
516e6056 slapd stopped.
估计是你的conf 配置文件有问题
conf我只改动了suffix、rootdn、rootpw三个地方,其他都是安装时默认的设置,文件内容如下:
# BDB Backend configuration file
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
ucdata-path ./ucdata
include ./schema/core.schema
include ./schema/cosine.schema
include ./schema/nis.schema
include ./schema/inetorgperson.schema
include ./schema/openldap.schema
include ./schema/dyngroup.schema
pidfile ./run/slapd.pid
argsfile ./run/slapd.args
# Enable TLS if port is defined for ldaps
TLSVerifyClient never
TLSCipherSuite HIGH:MEDIUM:-SSLv2
TLSCertificateFile ./secure/certs/server.pem
TLSCertificateKeyFile ./secure/certs/server.pem
TLSCACertificateFile ./secure/certs/server.pem
#######################################################################
# bdb database definitions
#######################################################################
database bdb
suffix “dc=micmiu,dc=com”
rootdn “cn=Manager,dc=micmiu,dc=com”
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw {MD5}xMpCOKC5I4INzFCab3WEmw==
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory ./data
dirtyread
searchstack 20
# Indices to maintain
index mail pres,eq
index objectclass pres
index default eq,sub
index sn eq,sub,subinitial
index telephonenumber
index cn
不改动的情况下 看看是否能启动?
报的错误是一样的,配置服务的机器暂时没有连接internet,只在局域网内,这个有关系吗?
非常感谢楼主的支持,我换了个win7系统,配置了一下环境变量,服务可以正常启动了,非常感谢!!!
我也是Win7 環境下一樣錯誤,請問要怎解決阿?
配置環境變數?可以具體說明嗎?謝謝 ❓
同样的问题,求接单
使用 slapd -d 1 -f demo.conf . 运行,应该就可以了
请问是怎么解决的?我换了个win7,还是同样的错误。需要配置什么环境变量吗?
我从以下网址找到了这样一句话:http://www.zytrax.com/books/ldap/ch6/slapd-config.html#convert
You can configure OLC (cn=config) to an unusable state. We changed the rootdn of cn=config via an LDAP browser from cn=config to cn=admin (an invalid change since all config elements must end with a root of cn=config). The change was however accepted. The connection was immediately broken (correctly) but we could not bind under any value – old or new. We stopped and tried to start slapd which also failed because it refused to load under our newly modified rootdn (cn=admin). The only solution was to edit slapd.d/cn=config/olcDatabase={0}config.ldif and restore the olcRootDn attribute to cn=config. We then loaded slapd, changed the olcRootDn attribute via an LDAP browser to cn=admin,cn=config and everything worked perfectly.
但是我们这个版本貌似没有slapd.d这样东西
不知道你安装的版本是不是我文中提到的,不同版本有区别的?如果是一样的 贴出详细的错误信息
是那个地址下载的,但是版本更新了。报错信息和crabhole同学是一样的:
5178a3a1 slapd startup: initiated.
5178a3a1 backend_startup_one: starting “cn=config”
5178a3a1 config_back_db_open
5178a3a1 config_build_entry: “cn=config”
5178a3a1 config_build_attrs: error 21 on olcConfigFile value #0
5178a3a1 config_build_entry: build “cn=config” failed: “”
5178a3a1 backend_startup_one (type=config, suffix=”cn=config”): bi_db_open failed! (-1)
5178a3a1 slapd shutdown: initiated
5178a3a1 ====> bdb_cache_release_all
5178a3a1 slapd destroy: freeing system resources.
5178a3a1 slapd stopped.
应该是配置文件有问题,你是安装后直接启动报错?还是你修改了配置文件之后启动报错?
是按照文章中说的把maxcrc修改之后报的。刚刚又改回去试了下,还是报错
😛 感谢楼主支持,换了个包弄好了
换了个安装包么?
換了哪個包啊?我用2.4.34版本跑一樣的錯誤
❓ 一样的问题,请问换了什么包?
我也不知道他换的是哪个安装包,具体直接回复上面那个兄弟
安装好之后服务起不来。 错误代码1053. windows xp环境。
网上找了半天没找到答案。 求楼主解释。
安装过程有错误么?
现在可以了。 电脑重启就就可以了- -。 坑爹。
日志信息:slapd starting 表示服务已经启动好了??
我在cmd中看到的信息和你的是类似的。但是,实际服务还是没有启动。这个是什么问题啊?
你在服务中停止 然后再重新启动试试
楼主你好:
关于windowsAD 与openLdap同步怎么做啊?有没有一些资料或链接让我参考一下啊?最近急用
sorry 这个方面没有接触过
有没有人和我一样。。。把l 当成 一的。。。。
估计八成是有的
slapd -d 1中的1是“一”还是“I”?我怎么启动不了,我安装了之后没有改动文件!请赐教!!
是数字 1 不是字母 l,注意下面的命令中的参数是表示字母 ,最简单的是直接copy 命令
大神。。。。我也在学习lDAP 按照你的说的测试到创建mydemo的时候有问题。。。command里面说illegal option什么的。。。是为什么呢??还有就是如何停止slapd啊??我用的windows的没有orcle 所以一直用slapadd这个
在window系统的 服务里 停止它
您好,我执行slapadd -v -l ./example.ldif卡哪不动手什么原因?
找到原因了,自动启动的服务没关
嗯 严格按照我的提示 应该没有问题的我都详细测试过了,
自带的命令需要停止服务的才能执行成功,
第三方的一些ldap的命令,比如oracle自带的一些 ldapadd类似的命令是不需要停止ldap服务的
怎么停止服务,通过任务管理器停止服务可以吗,停止过之后还是提示slapadd:database doesn’t support necessary operations,是什么原因,求解答。。。
如果要備份的話是COPY整個資料夾就可以了嗎?
如果是备份数据 可以把你的数据导出 以后再导入,如果只是copy 存储数据文件夹理论上是可以的,但是 这个我没有试过
加个QQ吧 我的是47517680
那真有才能让ldapadd好用呢,总不至于安个oracle吧!
不需要安装oracle的 它有自带的命令代替ldapadd 就可以了
非常感谢你的文章。请问一下:slapadd -v -l ./mydemo.ldif
命令是提示Available database(s) do not allow slapadd是什么原因?slapd 服务是关掉的
这个问题我没有碰到,确保ldap的服务停止和ldif文件的格式,可以先安装我的配置做一遍 然后再试着修改
是服务的问题,谢谢你的回复
不客气 以后可以多交流的
楼主非常正确,虽然在弄的过程中走了点弯路,但是最后还是弄好了,谢谢分享。不知道能不能详解一下编译命令-d -v -l等和 sn o cn 等属性是什么意思不胜感谢!!! 😛
命令+ /? 可获取命令的详细说明
至于 sn cn 等可以到维基百科 或者搜索下 很多说明的
楼主您好!
当我用命令“slapadd”代替导入数据文件时候 出现slapadd:illegal option–1 这是为什么?
提醒很明显,非法参数啊
slapadd -v -l ./mydemo.ldif
命令中-l是字母jkl的l,不是数字 1
楼主 还是不行 !NO DB_CONFIG file found in directory ./data 是不是 数据库的问题啊?
那个是warning级别的告警信息吧 已经成功了其实
按此步骤能够顺利的跑起来,我的是win7 32位的,之前在百度没搜到这篇文章,折腾了好久,还是朋友告诉我的,谢谢!
如果有什么问题可以多多交流的 ^_^
楼主还有问题,不知道是环境的影响。
C:\Pargram Files (x86)\OpenLDAP\slapadd -v -l ./mydemo.ldif
cound not stat config file %SYSCONFDIR%\slapd.conf”: No such file or directroy (2)
slapadd: bad configuration file
你这个是 配置文件没有找到的 你看看 %SYSCONFDIR%实际是哪个目录 把slapd.conf 拷贝一份就可以了
我的环境和文章里一样,运行到ldapadd时就报错。
进过我的验证,确实存在这个问题,由于我安装其他软件(oracle)自带了ldapadd 等命令,已经修正好
你没有看错,安装完确实缺少ldapadd。我安装完也缺少
这个问题 我做过修正说明了
楼主好,按照你的执行下来,试了几次,一直报下面错误: ‘ldapadd’ 不是内部或外部命令,也不是可运行的程序或批处理文件。为什么?
不会啊 我的是可以直接运行的 我验证下的
你可以在环境变量里面配一下OpenLDAP的路径