联想手机出现“please add or correctconda add channellservice in An

您好,手机一直出现Please add or correct Umeng Message Intent Receiver Service in Androi_百度知道
您好,手机一直出现Please add or correct Umeng Message Intent Receiver Service in Androi
您好,手机一直出现Please add or correct Umeng Message Intent Receiver Service in Android Manifest! 是什么意思?该怎么取消
我有更好的答案
翻译过来是
请在 android 清单中添加或更正 Umeng 消息意图接收器服务不知道是不是你要的资料
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。您好,手机一直出现Please add or correct Umeng Message Intent Receiver Service in Androi_百度知道
您好,手机一直出现Please add or correct Umeng Message Intent Receiver Service in Androi
您好,手机一直出现Please add or correct Umeng Message Intent Receiver Service in Android Manifest! 该怎么取消?
我有更好的答案
请添加或纠正Umeng消息Intent接收器服务在Androi可能是你使用的软件要求的系统调用和本系统的调用不兼容。建议你去找找这软件的针对安卓相应版本的吧。
采纳率:75%
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。酷勤网 C 程序员的那点事!
浏览次数:次
现在入门的人更多用的是OpenLDAP,如果你的OpenLDAP正常安装,并经过make&test没有问题,而启动的时候遇到了问题。那么请这样做/usr/local/libexec/slapd&-d&256然后把出错信息贴出来,我尽量给大家解决。
&朽木可雕 回复于: 21:29:55
谢谢,请问在哪儿找出错信息啊。我的系统是SOLARIS8,我看了/var/log/syslog和/var/adm/messages都没什么出错信息。
&andrewleading_h 回复于: 07:26:21
对于py&&的热情,我们都表示万分的感谢,也希望有跟多的人参加到ldap交流的队伍中来...
&py 回复于: 08:53:35
引用:原帖由&"朽木可雕"]谢谢,请问在哪儿找出错信息啊。我的系统是SOLARIS8,我看了/var/log/syslog和/var/adm/messages都没什么出错信息。&发表:启动的时候就可以看到,这样启动openldap,/usr/local/libexec/slapd&-d&256
&朽木可雕 回复于: 11:12:14
还是不行啊。我的系统是SOLARIS8bash-2.05#&/usr/local/libexec/slapd&-d&256Killedbash-2.05#&tail&/var/log/syslogJul&29&00:05:57&ms1.darren.com&sendmail[3544]:&[ID&801593&mail.info]&i6SG5vMR003544:&from=&&;,&size=539,&class=0,&nrcpts=1,&msgid=&.i6SG5vMR003544@ms1.darren.com&;,&proto=ESMTP,&daemon=MSA,&relay=[10.1.2.19]Jul&29&00:06:08&ms1.darren.com&sendmail[3546]:&[ID&801593&mail.info]&i6SG5vMR003544:&to=&&;,&ctladdr=&&;&(1000/1),&delay=00:00:11,&xdelay=00:00:05,&mailer=esmtp,&pri=120539,&relay=ms1.test.com.&[10.1.2.52],&dsn=2.0.0,&stat=Sent&(i6SG63S0001503&Message&accepted&for&delivery)Jul&29&00:09:10&ms1.darren.com&sendmail[3548]:&[ID&702911&mail.info]&AUTH=server,&relay=[10.1.2.19],&authid=mail1,&mech=LOGIN,&bits=0Jul&29&00:09:10&ms1.darren.com&sendmail[3548]:&[ID&801593&mail.info]&i6SG9AYe003548:&from=&&;,&size=567,&class=0,&nrcpts=1,&msgid=&.i6SG9AYe003548@ms1.darren.com&;,&proto=ESMTP,&daemon=MSA,&relay=[10.1.2.19]Jul&29&00:09:14&ms1.darren.com&sendmail[3550]:&[ID&801593&mail.info]&i6SG9AYe003548:&to=&&;,&ctladdr=&&;&(2001/1),&delay=00:00:04,&xdelay=00:00:04,&mailer=esmtp,&pri=120567,&relay=ms1.test.com.&[10.1.2.52],&dsn=2.0.0,&stat=Sent&(i6SG9Ae1001515&Message&accepted&for&delivery)Jul&29&20:25:08&ms1.darren.com&sendmail[3623]:&[ID&801593&mail.info]&i6TCOqcU003623:&localhost&[127.0.0.1]&did&not&issue&MAIL/EXPN/VRFY/ETRN&during&connection&to&MSAJul&30&02:30:37&ms1.darren.com&sendmail[4234]:&[ID&702911&mail.info]&AUTH=server,&relay=[10.1.2.19],&authid=wjz,&mech=LOGIN,&bits=0Jul&30&02:30:54&ms1.darren.com&sendmail[4234]:&[ID&801593&mail.info]&i6TIUb:&from=&&;,&size=2446917,&class=0,&nrcpts=1,&msgid=&.i6TIUb@ms1.darren.com&;,&proto=ESMTP,&daemon=MSA,&relay=[10.1.2.19]Jul&30&02:31:17&ms1.darren.com&sendmail[4236]:&[ID&801593&mail.info]&i6TIUb:&to=&&;,&ctladdr=&&;&(1000/1),&delay=00:00:40,&xdelay=00:00:23,&mailer=esmtp,&pri=2566917,&relay=ms1.test.com.&[10.1.2.52],&dsn=2.0.0,&stat=Sent&(i6TIV1G9001495&Message&accepted&for&delivery)Jul&31&00:51:57&ms1.darren.com&sendmail[4350]:&[ID&801593&mail.info]&i6UGpmH8004350:&localhost&[127.0.0.1]&did&not&issue&MAIL/EXPN/VRFY/ETRN&during&connection&to&MSAbash-2.05#&tail&/var/adm/messagesAug&15&05:58:17&ms1.darren.com&fdc:&[ID&114370&kern.info]&fd0&at&fdc0Aug&15&05:58:17&ms1.darren.com&genunix:&[ID&936769&kern.info]&fd0&is&/isa/fdc@1,3f0/fd@0,0Aug&15&05:58:36&ms1.darren.com&pcplusmp:&[ID&637496&kern.info]&pcplusmp:&asy&(asy)&instance&0&vector&0x4&ioapic&0x1&intin&0x4&is&bound&to&cpu&0Aug&15&05:58:36&ms1.darren.com&last&message&repeated&1&timeAug&15&05:58:36&ms1.darren.com&isa:&[ID&202937&kern.info]&ISA-device:&asy0Aug&15&05:58:36&ms1.darren.com&genunix:&[ID&936769&kern.info]&asy0&is&/isa/asy@1,3f8Aug&15&05:58:36&ms1.darren.com&pcplusmp:&[ID&398438&kern.info]&pcplusmp:&asy&(asy)&instance&#1&vector&0x3&ioapic&0x1&intin&0x3&is&bound&to&cpu&0Aug&15&05:58:36&ms1.darren.com&last&message&repeated&1&timeAug&15&05:58:36&ms1.darren.com&isa:&[ID&202937&kern.info]&ISA-device:&asy1Aug&15&05:58:36&ms1.darren.com&genunix:&[ID&936769&kern.info]&asy1&is&/isa/asy@1,2f8bash-2.05#&
&py 回复于: 12:22:29
我的系统是solaris9,你的openldap是编译安装的吗?make&test都通过了吗?openldap启动的时候如果指定了log&level,应该是可以看到报错的,你这样试试/usr/local/libexec/slapd&-d&-1
&朽木可雕 回复于: 10:57:58
是编译安装的啊,编译的时候没报什么错啊。我的配置文件有错吗?下面是我的配置文件,大家帮帮我吧。bash-2.05#&more&slapd.conf#&$OpenLDAP:&pkg/ldap/servers/slapd/slapd.conf,v&1.23.2.8&&23:19:14&kurt&Exp&$##&See&slapd.conf(5)&for&details&on&configuration&options.#&This&file&should&NOT&be&world&readable.#include&&&&&&&&&/usr/local/etc/openldap/schema/core.schema#&Define&global&ACLs&to&disable&default&read&access.#&Do&not&enable&referrals&until&AFTER&you&have&a&working&directory#&service&AND&an&understanding&of&referrals.#referral&&&&&&&ldap://root.openldap.orgpidfile&&&&&&&&&/usr/local/var/slapd.pidargsfile&&&&&&&&/usr/local/var/slapd.argsloglevel&-1replogfile&/var/log/ldap.log&#&Load&dynamic&backend&modules:#&modulepath&&&&/usr/local/libexec/openldap#&moduleload&&&&back_bdb.la#&moduleload&&&&back_ldap.la#&moduleload&&&&back_ldbm.la#&moduleload&&&&back_passwd.la#&moduleload&&&&back_shell.la#&Sample&security&restrictions#&&&&&&&Require&integrity&protection&(prevent&hijacking)#&&&&&&&Require&112-bit&(3DES&or&better)&encryption&for&updates#&&&&&&&Require&63-bit&encryption&for&simple&bind#&security&ssf=1&update_ssf=112&simple_bind=64#&Sample&access&control&policy:#&&&&&&&Root&DSE:&allow&anyone&to&read&it#&&&&&&&Subschema&(sub)entry&DSE:&allow&anyone&to&read&it#&&&&&&&Other&DSEs:#&&&&&&&&&&&&&&&Allow&self&write&access#&&&&&&&&&&&&&&&Allow&authenticated&users&read&access#&&&&&&&&&&&&&&&Allow&anonymous&users&to&authenticate#&&&&&&&Directives&needed&to&implement&policy:#&access&to&dn.base=""&by&*&read#&access&to&dn.base="cn=Subschema"&by&*&read#&access&to&*#&&&&&&&by&self&write#&&&&&&&by&users&read#&&&&&&&by&anonymous&auth##&if&no&access&controls&are&present,&the&default&policy&is:#&&&&&&&Allow&read&by&all##&rootdn&can&always&write!########################################################################&ldbm&database&definitions#######################################################################database&&&&&&&&bdbsuffix&&&&&&&&&&"dc=darren,dc=com"rootdn&&&&&&&&&&"cn=root,dc=darren,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&&&&&&&&&&1234#&The&database&directory&MUST&exist&prior&to&running&slapd&AND&#&should&only&be&accessible&by&the&slapd&and&slap&tools.#&Mode&700&recommended.directory&&&&&&&/usr/local/var/openldap-data#&Indices&to&maintainindex&&&objectClass&&&&&eqdefaultaccess&none&access&to&dn=".*,dc=darren,dc=com"&by&self&read&by&dn="cn=root,dc=darren,dc=com"&write&by&*&none&access&to&*&by&self&read&by&dn="cn=root,dc=darren,dc=com"&write&by&*&none&bash-2.05#&
&py 回复于: 12:55:47
1。access&to&dn=".*,dc=darren,dc=com"不要再用这样的acl格式,openldap2.1.x已经不再支持2。把其余的schema也include进来3。把ACL部分先写成这样:access&to&*&&&&&&&&by&self&write&&&&&&&&by&*&read然后重新启动/usr/local/libexec/slapd&-d&-1,看看会有什么错误
&朽木可雕 回复于: 15:27:02
试了,还是不行,日志也没任何显示。请问为什么啊?我都快急死了。
&py 回复于: 16:02:35
装了这么多次openldap,还没这样过,呵呵,再想想办法吧,你是装的openldap的新版本吗?
&朽木可雕 回复于: 22:15:42
openldap-2.1.29
&py 回复于: 22:33:35
现在的配置文件是什么?贴出来,你把loglevel&-1&replogfile&/var/log/ldap.log也注释掉吧
&朽木可雕 回复于: 10:06:44
操作系统:SunOS&ms1.darren.com&5.8&Generic_&i86pc&i386&i86pc。OPENLDAP版本:2.1.29。bash-2.05#&more&slapd.conf#&$OpenLDAP:&pkg/ldap/servers/slapd/slapd.conf,v&1.23.2.8&&23:19:14&kurt&Exp&$##&See&slapd.conf(5)&for&details&on&configuration&options.#&This&file&should&NOT&be&world&readable.#include&&&&&&&&&/usr/local/etc/openldap/schema/core.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/corba.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/cosine.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/inetorgperson.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/misc.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/openldap.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/nis.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/samba.schema#&Define&global&ACLs&to&disable&default&read&access.#&Do&not&enable&referrals&until&AFTER&you&have&a&working&directory#&service&AND&an&understanding&of&referrals.#referral&&&&&&&ldap://root.openldap.orgpidfile&&&&&&&&&/usr/local/var/slapd.pidargsfile&&&&&&&&/usr/local/var/slapd.args#loglevel&-1#replogfile&/var/log/ldap.log&#&Load&dynamic&backend&modules:#&modulepath&&&&/usr/local/libexec/openldap#&moduleload&&&&back_bdb.la#&moduleload&&&&back_ldap.la#&moduleload&&&&back_ldbm.la#&moduleload&&&&back_passwd.la#&moduleload&&&&back_shell.la#&Sample&security&restrictions#&&&&&&&Require&integrity&protection&(prevent&hijacking)#&&&&&&&Require&112-bit&(3DES&or&better)&encryption&for&updates#&&&&&&&Require&63-bit&encryption&for&simple&bind#&security&ssf=1&update_ssf=112&simple_bind=64#&Sample&access&control&policy:#&&&&&&&Root&DSE:&allow&anyone&to&read&it#&&&&&&&Subschema&(sub)entry&DSE:&allow&anyone&to&read&it#&&&&&&&Other&DSEs:#&&&&&&&&&&&&&&&Allow&self&write&access#&&&&&&&&&&&&&&&Allow&authenticated&users&read&access#&&&&&&&&&&&&&&&Allow&anonymous&users&to&authenticate#&&&&&&&Directives&needed&to&implement&policy:#&access&to&dn.base=""&by&*&read#&access&to&dn.base="cn=Subschema"&by&*&read#&access&to&*#&&&&&&&by&self&write#&&&&&&&by&users&read#&&&&&&&by&anonymous&auth##&if&no&access&controls&are&present,&the&default&policy&is:#&&&&&&&Allow&read&by&all##&rootdn&can&always&write!########################################################################&ldbm&database&definitions#######################################################################database&&&&&&&&bdbsuffix&&&&&&&&&&"dc=darren,dc=com"rootdn&&&&&&&&&&"cn=root,dc=darren,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&&&&&&&&&&1234#&The&database&directory&MUST&exist&prior&to&running&slapd&AND&#&should&only&be&accessible&by&the&slapd&and&slap&tools.#&Mode&700&recommended.directory&&&&&&&/usr/local/var/openldap-data#&Indices&to&maintainindex&&&objectClass&&&&&eqaccess&to&*&by&self&write&by&*&read&bash-2.05#&more&ldap.conf#&$OpenLDAP:&pkg/ldap/libraries/libldap/ldap.conf,v&1.9&&19:57:01&kurt&Exp&$##&LDAP&Defaults##&See&ldap.conf(5)&for&details#&This&file&should&be&world&readable&but&not&world&writable.#BASE&&&dc=example,&dc=com#URI&&&&ldap://ldap.example.com&ldap://ldap-master.example.com:666#SIZELIMIT&&&&&&12#TIMELIMIT&&&&&&15#DEREF&&&&&&&&&&neverbash-2.05#&/usr/local/libexec/slapd&-d&-1Killedbash-2.05#&tail&/var/log/syslogJul&29&00:05:57&ms1.darren.com&sendmail[3544]:&[ID&801593&mail.info]&i6SG5vMR003544:&from=&&;,&size=539,&class=0,&nrcpts=1,&msgid=&.i6SG5vMR003544@ms1.darren.com&;,&proto=ESMTP,&daemon=MSA,&relay=[10.1.2.19]Jul&29&00:06:08&ms1.darren.com&sendmail[3546]:&[ID&801593&mail.info]&i6SG5vMR003544:&to=&&;,&ctladdr=&&;&(1000/1),&delay=00:00:11,&xdelay=00:00:05,&mailer=esmtp,&pri=120539,&relay=ms1.test.com.&[10.1.2.52],&dsn=2.0.0,&stat=Sent&(i6SG63S0001503&Message&accepted&for&delivery)Jul&29&00:09:10&ms1.darren.com&sendmail[3548]:&[ID&702911&mail.info]&AUTH=server,&relay=[10.1.2.19],&authid=mail1,&mech=LOGIN,&bits=0Jul&29&00:09:10&ms1.darren.com&sendmail[3548]:&[ID&801593&mail.info]&i6SG9AYe003548:&from=&&;,&size=567,&class=0,&nrcpts=1,&msgid=&.i6SG9AYe003548@ms1.darren.com&;,&proto=ESMTP,&daemon=MSA,&relay=[10.1.2.19]Jul&29&00:09:14&ms1.darren.com&sendmail[3550]:&[ID&801593&mail.info]&i6SG9AYe003548:&to=&&;,&ctladdr=&&;&(2001/1),&delay=00:00:04,&xdelay=00:00:04,&mailer=esmtp,&pri=120567,&relay=ms1.test.com.&[10.1.2.52],&dsn=2.0.0,&stat=Sent&(i6SG9Ae1001515&Message&accepted&for&delivery)Jul&29&20:25:08&ms1.darren.com&sendmail[3623]:&[ID&801593&mail.info]&i6TCOqcU003623:&localhost&[127.0.0.1]&did&not&issue&MAIL/EXPN/VRFY/ETRN&during&connection&to&MSAJul&30&02:30:37&ms1.darren.com&sendmail[4234]:&[ID&702911&mail.info]&AUTH=server,&relay=[10.1.2.19],&authid=wjz,&mech=LOGIN,&bits=0Jul&30&02:30:54&ms1.darren.com&sendmail[4234]:&[ID&801593&mail.info]&i6TIUb:&from=&&;,&size=2446917,&class=0,&nrcpts=1,&msgid=&.i6TIUb@ms1.darren.com&;,&proto=ESMTP,&daemon=MSA,&relay=[10.1.2.19]Jul&30&02:31:17&ms1.darren.com&sendmail[4236]:&[ID&801593&mail.info]&i6TIUb:&to=&&;,&ctladdr=&&;&(1000/1),&delay=00:00:40,&xdelay=00:00:23,&mailer=esmtp,&pri=2566917,&relay=ms1.test.com.&[10.1.2.52],&dsn=2.0.0,&stat=Sent&(i6TIV1G9001495&Message&accepted&for&delivery)Jul&31&00:51:57&ms1.darren.com&sendmail[4350]:&[ID&801593&mail.info]&i6UGpmH8004350:&localhost&[127.0.0.1]&did&not&issue&MAIL/EXPN/VRFY/ETRN&during&connection&to&MSAbash-2.05#&tail&/var/adm/messagesAug&17&20:42:34&ms1.darren.com&fdc:&[ID&114370&kern.info]&fd0&at&fdc0Aug&17&20:42:34&ms1.darren.com&genunix:&[ID&936769&kern.info]&fd0&is&/isa/fdc@1,3f0/fd@0,0Aug&17&20:42:40&ms1.darren.com&pcplusmp:&[ID&637496&kern.info]&pcplusmp:&asy&(asy)&instance&0&vector&0x4&ioapic&0x1&intin&0x4&is&bound&to&cpu&0Aug&17&20:42:40&ms1.darren.com&last&message&repeated&1&timeAug&17&20:42:40&ms1.darren.com&isa:&[ID&202937&kern.info]&ISA-device:&asy0Aug&17&20:42:40&ms1.darren.com&genunix:&[ID&936769&kern.info]&asy0&is&/isa/asy@1,3f8Aug&17&20:42:40&ms1.darren.com&pcplusmp:&[ID&398438&kern.info]&pcplusmp:&asy&(asy)&instance&#1&vector&0x3&ioapic&0x1&intin&0x3&is&bound&to&cpu&0Aug&17&20:42:40&ms1.darren.com&last&message&repeated&1&timeAug&17&20:42:40&ms1.darren.com&isa:&[ID&202937&kern.info]&ISA-device:&asy1Aug&17&20:42:40&ms1.darren.com&genunix:&[ID&936769&kern.info]&asy1&is&/isa/asy@1,2f8bash-2.05#&uname&-aSunOS&ms1.darren.com&5.8&Generic_&i86pc&i386&i86pcbash-2.05#&
&朽木可雕 回复于: 10:58:45
请看http://chinaunix.net/jh/49/308791.html中的这一段:也是按linux源码安装的三步曲完成,没有什么好说的了。该软件默认是安装在/usr/local/BerkeleyDB.4.2目录下。安装完成后,要把/usr/local/BerkeleyDB.4.2/lib的库路径加到/etc/ld.so.conf文件内,添加完成后执行一次ldconfig,使用配置文件生效。这样编译openldap时才能找到相应的库文件。这样资料库就安装完成了,接下来可以安装openldap了。&ld.so.conf是什么东西?它就是系统动态链接库的配置文件。此文件内,存放着可被LINUX共享的动态链接库所在目录的名字(系统目录/lib,/usr/lib除外),各个目录名间以空白字符(空格,换行等)或冒号或逗号分隔。一般的LINUX发行版中,此文件均含一个共享目录/usr/X11R6/lib,为X&window窗口系统的动态链接库所在的目录。&ldconfig是它的管理命令,具体操作方法可查询man手册,这里就不细讲了。我的系统是SOLARIS,这一步我应该如何做啊?
&littletiger 回复于: 10:43:54
Solaris下没有linux象ldconfig这样得命令,编辑/var/ld/ld.conf这个文件&假设我的应用名字是appname,用你自己替换这个名字就行了&/usr/lib/usr/local/lib/var/appname/libcrle得命令大概用法如下&具体可以参见mancrle&-l&/usr/lib&-l&/usr/local/lib&-l&/var/appname/lib&&-i&/usr/lib&-i&/usr/local/lib&-i&/var/appname/lib
&DreamJiang 回复于: 10:54:45
如果是SuSE&Linux系y,你在slapd.conf文件中含有“Loglevel&1”@lZ句r,那Nеslapd服者M程所有的信息到syslog&LOCAL4,同有枰&/etc/syslog.conf文件⑦@些信息定向到一为的文件硪苑奖阏{,SuSE Linux系y碚f,ldap的e`日志就是文件/var/log/localmessage
&shenmue71 回复于: 13:19:34
rh9自带的openldap是不是有问题?,我的操作应该没问题,可总是提示ldap_bind:&Invalid&credentials&(49)&同样配置,在debian自己编译的就使用正常
&py 回复于: 15:37:41
自带的?你说的是rpm的?试试把slapd.conf中的密码改成明文
&缘随风 回复于: 20:59:17
我是初学者,有一个问题,请大侠们帮忙我按照EJBCA中的How&to&ldap说明的配置openldap&for&win32:include&进必要的schema,&修改了cn&&o&&c,&&密码采用密文方式(明文也试了)然后用ldapadd导入LDIF&file&(org.ldif如下)dn:&o=AnaTom,c=SEobjectclass:&dcObjectobjectclass:&organizationo:&AnaTomdc:&AnaTomdn:&cn=Admin,o=AnaTom,c=SEobjectclass:&organizationalRolecn:&Admin显示导入成功&add&new&entry&&&&&&o=AnaTom,c=SE&&&&&&&&&&&&&add&new&entry&&&&&&cn=Admin,o=AnaTom,c=SE但是我用这个管理员Admin添加其他成员时:ldap_add:&Server&is&unwilling&to&perform&(53)&&&&&&&&additional&info:&no&global&superior&knowledge加入access&的相关内容后还是这个错误跪谢
&kampoo 回复于: 16:38:20
bdb_dn2entry("o=system")=&;&bdb_dn2id(&"o=system"&)&=&bdb_dn2id:&get&failed:&DB_NOTFOUND:&No&matching&key/data&pair&found&(-30989)send_ldap_result:&conn=0&op=1&p=3send_ldap_result:&err=10&matched=""&text=""send_ldap_response:&msgid=2&tag=101&err=32ber_flush:&14&bytes&to&sd&28&&0000:&&30&0c&02&01&02&65&07&0a&&01&20&04&00&04&00&&&&&&&&&0....e...&....ldap_write:&want=14,&written=14&&0000:&&30&0c&02&01&02&65&07&0a&&01&20&04&00&04&00&&&&&&&&&0....e...&....daemon:&activity&on&1&descriptorsdaemon:&activity&on:&28rdaemon:&read&activity&on&28connection_get(28)connection_get(28):&got&connid=0connection_read(28):&checking&for&input&on&id=0ber_get_nextldap_read:&want=8,&got=8&&0000:&&30&2d&02&01&03&63&28&04&&&&&&&&&&&&&&&&&&&&&&&&&&&&0-...c(.ldap_read:&want=39,&got=39&&0000:&&08&6f&3d&73&79&73&74&65&&6d&0a&01&00&0a&01&03&02&&&.o=system.......&&0010:&&01&00&02&01&00&01&01&00&&87&0b&6f&62&6a&65&63&74&&&..........object&&0020:&&43&6c&61&73&73&30&00&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&Class0.ber_get_next:&tag&0x30&len&45&contents:ber_dump:&buf=0x0102eb78&ptr=0x0102eb78&end=0x0102eba5&len=45&&0000:&&02&01&03&63&28&04&08&6f&&3d&73&79&73&74&65&6d&0a&&&...c(..o=system.&&0010:&&01&00&0a&01&03&02&01&00&&02&01&00&01&01&00&87&0b&&&................&&0020:&&6f&62&6a&65&63&74&43&6c&&61&73&73&30&00&&&&&&&&&&&&objectClass0.ber_get_nextldap_read:&want=8&error=unknown&errorber_get_next&on&fd&28&failed&errno=10035&(WSAEWOULDBLOCK)do_searchber_scanf&fmt&({miiiib)&ber:ber_dump:&buf=0x0102eb78&ptr=0x0102eb7b&end=0x0102eba5&len=42&&0000:&&63&28&04&08&6f&3d&73&79&&73&74&65&6d&0a&01&00&0a&&&c(..o=system....&&0010:&&01&03&02&01&00&02&01&00&&01&01&00&87&0b&6f&62&6a&&&.............obj&&0020:&&65&63&74&43&6c&61&73&73&&30&00&&&&&&&&&&&&&&&&&&&&&ectClass0.&;&;&;&dnPrettyNormal:&&o=system&;=&;&ldap_bv2dn(o=system,0)ldap_err2string&=&ldap_bv2dn(o=system)=0&Success=&;&ldap_dn2bv(272)ldap_err2string&=&ldap_dn2bv(o=system)=0&Success=&;&ldap_dn2bv(272)ldap_err2string&=&ldap_dn2bv(o=system)=0&Success&&&&dnPrettyNormal:&&o=system&;,&&o=system&;SRCH&"o=system"&0&3&&&&0&0&0begin&get_filterPRESENTber_scanf&fmt&(m)&ber:ber_dump:&buf=0x0102eb78&ptr=0x0102eb96&end=0x0102eba5&len=15&&0000:&&87&0b&6f&62&6a&65&63&74&&43&6c&61&73&73&30&00&&&&&&..objectClass0.end&get_filter&0&&&&filter:&(objectClass=*)ber_scanf&fmt&({M}})&ber:ber_dump:&buf=0x0102eb78&ptr=0x0102eba3&end=0x0102eba5&len=2&&0000:&&00&00&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&..daemon:&select:&listen=716&active_threads=0&tvp=NULL&&&&attrs:=&;&bdb_searchbdb_dn2entry("o=system")=&;&bdb_dn2id(&"o=system"&)&=&bdb_dn2id:&get&failed:&DB_NOTFOUND:&No&matching&key/data&pair&found&(-30989)
&py 回复于: 17:01:37
看样子是bdb初错了,是在启动slapd的时候吗?slapd&-d&256?你的系统环境?以前启动是不是好的?.....
&gary_tay88 回复于: 23:55:26
See&related&post:http://bbs.chinaunix.net/forum/viewtopic.php?t=551510Gary
&freepower 回复于: 11:58:54
刚接触ldap,&请多指教freebsd5.4&release&OpenLDAP&2.2.26run:/usr/local/libexec/slapd&-d&256&&提示错误:Undefined&symbol&"ldap_pvt_sasl_mutex_new"不知道是什么问题
&py 回复于: 13:46:05
我没在freebsd上编译过openldap,我想可能是你没有装sasl,或是sasl的版本incompatible你可以手工编译openldap看看问题是不是仍然存在
&zhaowx 回复于: 11:31:51
我用的是windows下的&openldap,起初使用正常,使用时,有时连接达到最大数量后就不能使用,重新启动后就可以使用,这样使用一段时间后,重新启动时到下面这一步就不能往下运行了:bdb_db_open:&dbenv_open(c:/openldap/var/openldap-data)无论使用什么参数启动,都卡在这里,启动不了,要丢失数据,着急呀,请高手帮忙。
&gary_tay88 回复于: 12:02:07
Assuming&you&are&using&BDB&4.2.52&+&2&patches.I&am&not&sure&about&OpenLDAP&windows&version,&for&UNIX/Linux&versions&to&properly&operate,&you&need&a&DB_CONFIG&in&LDAP&data&directory.#&cat&/var/lib/ldap/DB_CONFIGset_cachesize&0&set_lg_regionmax&&&&&&&&131072set_lg_bsize&&&&&&&&&&&&2097152(This&is&for&a&RHEL/AS3&server&with&2GB&RAM,&4-CPU)Search&Google&for&"DB_CONFIG"&to&understand&more.Also&you&should&put&some&basic&performance&tunning&parameters&in&slapd.conf,&the&following&is&an&example:#&Performance&tuning&directivessizelimit&5000threads&8idletimeout&14400cachesize&10000checkpoint&256&15Gary
&gary_tay88 回复于: 12:08:41
You&may&run&"db_recover",&then&"db_verify",&then&start&slapd
&zhaowx 回复于: 17:35:32
我用的是windows下的&openldap,起初使用正常,使用时,有时连接达到最大数量后就不能使用,重新启动后就可以使用,这样使用一段时间后,重新启动时到下面这一步就不能往下运行了:&bdb_db_open:&dbenv_open(c:/openldap/var/openldap-data)&无论使用什么参数启动,都卡在这里,启动不了,要丢失数据,着急呀,请高手帮忙。
&zhaowx 回复于: 09:26:18
openldap&中没有&"db_recover"&和&"db_verify"&程序呀.
&zhaowx 回复于: 09:28:49
在&slapd.conf&文件中添加了如下语句:sizelimit&5000threads&8idletimeout&14400cachesize&10000checkpoint&256&15可还是老问题,到这里就卡住了:slapd&startup:&initiated.bdb_db_open:&dbenv_open(e:/openldap/var/openldap-data)
&zhaowx 回复于: 09:34:03
#&$OpenLDAP:&pkg/ldap/servers/slapd/slapd.conf,v&1.23.2.8&&23:19:14&kurt&Exp&$##&See&slapd.conf(5)&for&details&on&configuration&options.#&This&file&should&NOT&be&world&readable.#ucdata-path e:/openldap/ucdata#include
e:/openldap/etc/schema/corba.schemainclude
e:/openldap/etc/schema/core.schemainclude
e:/openldap/etc/schema/myschema.schema#include
e:/openldap/etc/schema/cosine.schema#include
e:/openldap/etc/schema/inetorgperson.schema#include
e:/openldap/etc/schema/java.schema#include
e:/openldap/etc/schema/misc.schema#include
e:/openldap/etc/schema/nis.schema#include
e:/openldap/etc/schema/openldap.schema#&Define&global&ACLs&to&disable&default&read&access.#&Do&not&enable&referrals&until&AFTER&you&have&a&working&directory#&service&AND&an&understanding&of&referrals.#referral ldap://root.openldap.orgsizelimit&5000threads&8idletimeout&14400cachesize&10000checkpoint&256&15pidfile
e:/openldap/var/slapd.pidargsfile e:/openldap/var/slapd.args#&Load&dynamic&backend&modules:#&modulepath e:/openldap/libexec/openldap#&moduleload back_bdb.la#&moduleload back_ldap.la#&moduleload back_ldbm.la#&moduleload back_passwd.la#&moduleload back_shell.la#&Sample&security&restrictions# Require&integrity&protection&(prevent&hijacking)# Require&112-bit&(3DES&or&better)&encryption&for&updates# Require&63-bit&encryption&for&simple&bind#&security&ssf=1&update_ssf=112&simple_bind=64#&Sample&access&control&policy:# Root&DSE:&allow&anyone&to&read&it# Subschema&(sub)entry&DSE:&allow&anyone&to&read&it# Other&DSEs:#
Allow&self&write&access#
Allow&authenticated&users&read&access#
Allow&anonymous&users&to&authenticate# Directives&needed&to&implement&policy:#&access&to&dn.base=""&by&*&readaccess&to&dn.base="cn=manager,o=dtedu.org"&by&self&write#&access&to&* by&self&write# by&users&read by&anonymous&auth##&if&no&access&controls&are&present,&the&default&policy&is:# Allow&read&by&all##&rootdn&can&always&write!loglevel&-1&replogfile&/var/log/ldap.log########################################################################&ldbm&database&definitions#######################################################################database bdbsuffix
"o=dtedu.org"#&Cleartext&passwords,&especially&for&the&rootdn,&should#&be&avoid.&&See&slappasswd(8)&and&slapd.conf(5)&for&details.#&Use&of&strong&authentication&encouraged.rootdn
"cn=manager,o=dtedu.org"rootpw
{SSHA}Gpuj9VmNOhzd1c5U84Hcdo1KR5/XPcnK#&The&database&directory&MUST&exist&prior&to&running&slapd&AND&#&should&only&be&accessible&by&the&slapd&and&slap&tools.#&Mode&700&recommended.directory e:/openldap/var/openldap-data#&Indices&to&maintainindex objectClass eq
&zhaowx 回复于: 09:34:55
&py 回复于: 10:37:30
引用:原帖由&"zhaowx"]openldap&中没有&"db_recover"&和&"db_verify"&程序呀.&发表:这些应该是linux下bdb的命令吧,感觉很多参数对windows下的openldap都不起作用如果是在windows下重新编译openldap可以调整这些优化的参数
&gary_tay88 回复于: 12:56:35
Where&is&your&ldap&data?&do&you&have&a&"directory&..."&directive&in&slapd.conf?e:/openldap/var/openldap-dataORc:/openldap/var/openldap-data
&gary_tay88 回复于: 00:01:27
If&you&use&"database&bdb",&that&means&your&database&backend&used&is&Berkeley&DB&(http://www.sleepycat.com),&"db_recover"&and&"db_verify"&are&from&the&BDB&package.The&LAST&time&I&used&Windows&version&of&OpenLDAP&2.1.XX&was&2&years&ago,&I&used&CYGWIN,&that&came&with&BDB&version&3.X&I&think,&and&I&compiled&OpenLDAP&2.1.XX&from&source&codes.&Since&them,&I&never&used&Windows&based&OpenLDAP&anymore.I&would&encourage&you&to&give&up&Windows&version&of&OpenLDAP,&backup&the&LDAP&data&(slapcat),&install&Linux&(RedHat&Fedora&Core&3&for&example)&and&install/compile&OpenLDAP&2.2.6&from&source&codes,&then&restore&back&the&LDAP&data&(slapadd).Gary
&zhaowx 回复于: 17:45:41
可是,LINUX下的LDAP存储中文有问题呀。
&gary_tay88 回复于: 20:16:27
I&am&not&an&expert.&If&I&am&really&correct&(IIRC),&OpenLDAP&has&language&tags&(RFC&2596)&support&since&2.0.X.http://www.faqs.org/rfcs/rfc2596.htmlhttp://www.openldap.org/software/roadmap.htmlGoogle&this&text&pattern&for&related&posts&in&OpenLDAP&mail&list&archives:"language&site:www.openldap.org"Gary
&zhaowx 回复于: 11:31:52
谢谢&gary_tay88&。
&anstan 回复于: 22:40:37
我用/usr/local/openldap/libexec/slapd&-d&256可以启动但是用/usr/local/openldap/bin/ldappasswd时出错:ldap_sasl_interactive_bind_s:&Internal&(implementation&specific)&error&(80)&&&&&&&&additional&info:&SASL(-13):&user&not&found:&no&secret&in&databasewhy?
&py 回复于: 10:41:40
ldapadd,ldapsearch的时候有没有同样的问题?另外你用ldappasswd改密码的用户是不是当前用户?不是的话用-u&指定一下。你的这个问题在google上出现的很多,可以看看这个:http://www.openldap.org/lists/openldap-software/200308/msg00149.html
&anstan 回复于: 20:45:12
引用:原帖由&"py"&发表:ldapadd,ldapsearch的时候有没有同样的问题?另外你用ldappasswd改密码的用户是不是当前用户?不是的话用-u&指定一下。你的这个问题在google上出现的很多,可以看看这个:http://www.openldap.org/lists/open..........我的slapd.conf中有:rootdn&&&&&&&&"cn=Manager,dc=test,dc=com"rootpw&&&&&&&&{SSHA}ra0sD47QP32ASAlaAhF8kgi+8Aflbgr7我现在想改这个密码,应该怎么做呢?
&gary_tay88 回复于: 10:46:50
Use&"slappasswd"&to&find&out&the&encypted&format&of&your&new&password,&see&"man&slappasswd"&for&more&details.#&slappasswdNew&password:&secretRe-enter&new&password:&secret{SSHA}/BoxeE3UI+Bwtpve7Ku3rGX3Mk0JpTasCopy&the&output&and&paste&into&slapd.conf's&"rootpw"&directive,&after&slapd&is&restarted,&new&"rootpw"&will&be&the&password&for&"cn=Manager,dc=test,dc=com"."ldappasswd"&is&used&to&change&individual&user&password,&use&the&"-W"&to&prompt&for&old&password&entry&and&"-S"&to&prompt&for&new&password&entry,&below&is&an&example.$&ldappasswd&-x&-D&"uid=testuser,ou=People,dc=test,dc=com"&-W&-SNew&password:Re-enter&new&password:Enter&LDAP&Password:Result:&Success&(0)Note&that&NEW&password&is&entered&first,&then&the&existing&OLD&password&which&is&also&the&bindpw&of&binddn&(-D&...).If&you&use&"passwd",&usually&the&order&is&to&enter&existing&OLD&password&first&then&NEW&password.Gary
&leave 回复于: 22:09:45
引用:原帖由&"zhaowx"]可是,LINUX下的LDAP存储中文有问题呀。&发表:难道有区别吗?我用起来都是一样的可以存。
&leave 回复于: 22:15:36
引用:原帖由&"anstan"&发表:我的slapd.conf中有:rootdn&&&&&&&&"cn=Manager,dc=test,dc=com"rootpw&&&&&&&&{SSHA}ra0sD47QP32ASAlaAhF8kgi+8Aflbgr7我现在想改这个密码,应该怎么做呢?不知道直接修改行不行。把这一段字符串{SSHA}ra0sD47QP32ASAlaAhF8kgi+8Aflbgr7替换成明文密码例如secret
&ouwind 回复于: 16:10:55
@(#)&$OpenLDAP:&slapd&2.2.26&(Jul&&9&:33)&$&&&&&&&&test@localhost.localdomain:/home/test/openldap-2.2.26/servers/slapddaemon:&IPv6&socket()&failed&errno=97&(Address&family&not&supported&by&protocol)daemon:&bind(6)&failed&errno=98&(Address&already&in&use)slapd&stopped.connections_destroy:&nothing&to&destroy.这个是什么问题,我用ldap&browser访问的时候,root帐号登陆会出来invalid&dn&(error&34)或者匿名登陆会出来no&such&object&(error&32)
&ouwind 回复于: 17:45:50
我的slapd.con配置##&See&slapd.conf(5)&for&details&on&configuration&options.#&This&file&should&NOT&be&world&readable.#include&&&&&&&&&/urs/local/openldap/etc/openldap/schema/core.schemainclude&&&&&&&&&/urs/local/openldap/etc/openldap/schema/corba.schemainclude&&&&&&&&&/urs/local/openldap/etc/openldap/schema/cosine.schemainclude&&&&&&&&&/urs/local/openldap/etc/openldap/schema/inetorgperson.schemainclude&&&&&&&&&/urs/local/openldap/etc/openldap/schema/misc.schemainclude&&&&&&&&&/urs/local/openldap/etc/openldap/schema/openldap.schemainclude&&&&&&&&&/urs/local/openldap/etc/openldap/schema/nis.schema#&Define&global&ACLs&to&disable&default&read&access.#&Do&not&enable&referrals&until&AFTER&you&have&a&working&directory#&service&AND&an&understanding&of&referrals.#referral&&&&&&&ldap://root.openldap.orgpidfile&&&&&&&&&/urs/local/openldap/var/run/slapd.pidargsfile&&&&&&&&/urs/local/openldap/var/run/slapd.args#&Load&dynamic&backend&modules:#&modulepath&&&&/urs/local/openldap/libexec/openldap#&moduleload&&&&back_bdb.la#&moduleload&&&&back_ldap.la#&moduleload&&&&back_ldbm.la#&moduleload&&&&back_passwd.la#&moduleload&&&&back_shell.la#&Sample&security&restrictions#&&&&&&&Require&integrity&protection&(prevent&hijacking)#&&&&&&&Require&112-bit&(3DES&or&better)&encryption&for&updates#&&&&&&&Require&63-bit&encryption&for&simple&bind#&security&ssf=1&update_ssf=112&simple_bind=64#&Sample&access&control&policy:#&&&&&&&Root&DSE:&allow&anyone&to&read&it#&&&&&&&Subschema&(sub)entry&DSE:&allow&anyone&to&read&it#&&&&&&&Other&DSEs:#&&&&&&&&&&&&&&&Allow&self&write&access#&&&&&&&&&&&&&&&Allow&authenticated&users&read&access#&&&&&&&&&&&&&&&Allow&anonymous&users&to&authenticate#&&&&&&&Directives&needed&to&implement&policy:#&access&to&dn.base=""&by&*&read#&access&to&dn.base="cn=Subschema"&by&*&read#&access&to&*#&&&&&&&by&self&write#&&&&&&&by&users&read#&&&&&&&by&anonymous&auth##&if&no&access&controls&are&present,&the&default&policy#&allows&anyone&and&everyone&to&read&anything&but&restricts#&updates&to&rootdn.&&(e.g.,&"access&to&*&by&*&read")##&rootdn&can&always&read&and&write&EVERYTHING!########################################################################&BDB&database&definitions#######################################################################database&&&&&&&&bdbsuffix&&&&&&&&&&"dc=it,dc=com"rootdn&&&&&&&&&&"cn=root,dc=it,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&&&&&&&&&&aaa#&The&database&directory&MUST&exist&prior&to&running&slapd&AND#&should&only&be&accessible&by&the&slapd&and&slap&tools.#&Mode&700&recommended.directory&&&&&&&/urs/local/openldap/var/openldap-data#&Indices&to&maintainindex&&&objectClass&&&&&eq#ACL&configure#access&to&attr=userPassword#by&self&write#by&anonymous&auth#access&to&attr=mail#by&dn="cn=root,dc=it,dc=tigerhead"#by&self&writeby&anonymous&auth#access&to&dn="cn=*,dc=it,dc=tigerhead"access&to&*by&self&writeby&*&read
&leave 回复于: 16:53:43
引用:原帖由&"ouwind"&发表:@(#)&$OpenLDAP:&slapd&2.2.26&(Jul&&9&:33)&$&&&&&&&&test@localhost.localdomain:/home/test/openldap-2.2.26/servers/slapd&daemon:&IPv6&socket()&failed&errno=97&(Address&family&not&supported&by&protocol)&daemon:&bind(6)&failed&errno=98&(Address&already&in&use)&slapd&stopped.&connections_destroy:&nothing&to&destroy.&这个是什么问题,我用ldap&browser访问的时候,root帐号登陆会出来invalid&dn&(error&34)或者匿名登陆会出来no&such&object&(error&32)slapd没有启动怎么还能用ldap&browser登录?daemon:&IPv6&socket()&failed&errno=97&(Address&family&not&supported&by&protocol)&daemon:&bind(6)&failed&errno=98&(Address&already&in&use)&slapd&stopped.&从这两句找原因。你配置了什么东西吗?我没见过这样的信息。
&ouwind 回复于: 18:00:40
但是从ps&-aux可以看到./slapd是在的(这个是查看线程的?),而且netstat&-a也可以看到ldap端口已经打开.是不是因为我已经启动了,所以再打开./slapd是这个回应.另外我编写了一个root.ldifldapadd&-x&-D&"cn=root,dc=it,dc=com"&-W&-f&root.ldif然后提示add&success.然后ldapsearch&-x&-b&'dc=it,dc=com'&'(objectclass=*)'系统提示:version:&2##&filter:&(objectclass=*)#&requesting:&ALL##&search&resultsearch:&2result:&0&Success#&numResponses:&1这是为什么,我已经贴加了,为什么result&0&success
&leave 回复于: 20:10:52
你看我的,我的LDAP的所有配置都在http://bbs.chinaunix.net/forum/viewtopic.php?t=572951&show_type=这个帖子里面下午我刚添加的一条数据。然后我用下面的搜索:C:\openldap&;ldapsearch&-x&-b&c=cn#&extended&LDIF##&LDAPv3#&base&&c=cn&;&with&scope&sub#&filter:&(objectclass=*)#&requesting:&ALL##&cndn:&c=cnobjectClass:&countryobjectClass:&topc:&cn#&qq,&cndn:&uid=qq,c=cnobjectClass:&personobjectClass:&organizationalPersonobjectClass:&inetOrgPersonuid:&qqcn:&qqsn:&qqtelephoneNumber:&description:&openldap&testtelexNumber:&tex-8888888street:&my&streetpostOfficeBox:&postofficeboxdisplayName:&qqdisplayhomePhone:&home1111111mobile:&mobile99999mail:&#&search&resultsearch:&2[color=green]result:&0&Success[/color]#&numResponses:&3#&numEntries:&2C:\openldap&;ldapsearch&-x&-b&'c=cn'&"objectClass=*"#&extended&LDIF##&LDAPv3#&base&&'c=cn'&;&with&scope&sub#&filter:&objectClass=*#&requesting:&ALL##&search&resultsearch:&2result:&34&Invalid&DN&syntaxtext:&invalid&DN#&numResponses:&1C:\openldap&;
&leave 回复于: 20:27:55
把上面的c=cn的引号去掉再搜索:C:\openldap&;[color=red]ldapsearch&-x&-b&c=cn&"objectClass=*"[/color]#&extended&LDIF##&LDAPv3#&base&&c=cn&;&with&scope&sub#&filter:&objectClass=*#&requesting:&ALL##&cndn:&c=cnobjectClass:&countryobjectClass:&topc:&cn#&qq,&cndn:&uid=qq,c=cnobjectClass:&personobjectClass:&organizationalPersonobjectClass:&inetOrgPersonuid:&qqcn:&qqsn:&qqtelephoneNumber:&description:&openldap&testtelexNumber:&tex-8888888street:&my&streetpostOfficeBox:&postofficeboxdisplayName:&qqdisplayhomePhone:&home1111111mobile:&mobile99999mail:&#&search&resultsearch:&2[color=blue]result:&0&Success#&numResponses:&3#&numEntries:&2[/color]C:\openldap&;[color=red]ldapsearch&-x&-b&c=cn&"objectClass=person"[/color]#&extended&LDIF##&LDAPv3#&base&&c=cn&;&with&scope&sub#&filter:&objectClass=person#&requesting:&ALL##&qq,&cndn:&uid=qq,c=cnobjectClass:&personobjectClass:&organizationalPersonobjectClass:&inetOrgPersonuid:&qqcn:&qqsn:&qqtelephoneNumber:&description:&openldap&testtelexNumber:&tex-8888888street:&my&streetpostOfficeBox:&postofficeboxdisplayName:&qqdisplayhomePhone:&home1111111mobile:&mobile99999mail:&#&search&resultsearch:&2[color=blue]result:&0&Success#&numResponses:&2#&numEntries:&1[/color]C:\openldap&;
&ouwind 回复于: 09:44:56
为什么success=0啊
&金西 回复于: 14:19:29
@(#)&$OpenLDAP:&slapd&2.1.29&(Jul&17&:41)&$&&&&&&&&root@LinuxWeb:/tmp/openldap/servers/slapddaemon_init:&listen&on&ldap:///daemon_init:&1&listeners&to&open...ldap_url_parse_ext(ldap:///)daemon:&socket()&failed&errno=97&(Address&family&not&supported&by&protocol)daemon:&bind(6)&failed&errno=98&(Address&already&in&use)slap_open_listener:&failed&on&ldap:///slapd&stopped.connections_destroy:&nothing&to&destroy.
&lazy_bug 回复于: 15:28:34
[root@mailhost&libexec]#&./slapd&-d&256@(#)&$OpenLDAP:&slapd&2.3.17&(Jan&19&:51)&$&&&&&&&&root@mailhost:/usr/local/src/openldap-2.3.17/servers/slapddaemon:&IPv6&socket()&failed&errno=97&(Address&family&not&supported&by&protocol)bdb_db_open:&Warning&-&No&DB_CONFIG&file&found&in&directory&/usr/local/openldap/var/openldap-data:&(2)Expect&poor&performance&for&suffix&dc=test,dc=com.slapd&starting有抱错哦,请问是什么意思?/请斑竹帮助看看&,请问&var下面的文件都是干什么用的??请赐教
&py 回复于: 17:35:24
/usr/local/openldap/var/openldap-data目录下的是存放后端数据的,例如,bdb的数据文件.DB_CONFIG文件记录着bdb数据库的一些配置,一个样本配置文件已经存在于/usr/local/etc/openldap/中(DB_CONFIG.example)如果不给bdb设置一些参数,bdb的效率和稳定性会受到很大影响更详细的信息可以参见www.openldap.org网站上的相关文档
&windychan 回复于: 14:21:01
1,用&&./slapd&-d&256启动时可以看到如下信息(但sladp是运行成功的),应如何解决这个问题?daemon:&IPv6&socket()&failed&errno=97&(Address&family&not&supported&by&protocol),2,为什么我的&/usr/local/openldap/etc/openldap/schema/中没有samba.schema这个文件??所在在slapd.conf就不能配置这个,从文名上看该应该与samba应用有关,是吗?应该如何取得该文件.是以前的安装出了问题吗?
&py 回复于: 21:06:09
引用:原帖由&windychan&于&&14:21&发表1,用&&./slapd&-d&256启动时可以看到如下信息(但sladp是运行成功的),应如何解决这个问题?daemon:&IPv6&socket()&failed&errno=97&(Address&family&not&supported&by&protocol),2,为什么我的&/usr/local&...&编译openldap的时候把ipv6&disable掉可以解决问题1,这个问题不影响openldap的正常工作samba.schema不是openldap&release的一部分,所以不会出现在上述目录中.可以在samba的原代码包中找到,find一下即可.
&windychan 回复于: 16:34:24
slapd.conf的配置如下(注:slapd启动成功,&389/tcp&open&&ldap),......................database&bdbsuffix&"dc=wxldapt,dc=com"rootdn&"cn=root,dc=wxldapt,dc=com"rootpw&secretdirectory&&&&&&&/usr/local/openldap/var/openldap-dataindex&&&objectClass&&&&&eq用ldapsearch查看时,dn无数据.#ldapsearch&&-x&-b&''&-s&base&'(objectclass=*)'如果出下,#&extended&LDIF##&LDAPv3#&base&&&&with&scope&baseObject#&filter:&(objectclass=*)#&requesting:&ALL##dn:objectClass:&topobjectClass:&OpenLDAProotDSE#&search&resultsearch:&2result:&0&Success#&numResponses:&2#&numEntries:&1为什么???请支持!
&py 回复于: 20:26:30
要仔细看www.openldap.org的管理手册和具体命令的man&pageldapsearch&-x&-D&"cn=manager,dc=*,dc=*"&-W&'(objectclass=*)'其中*是看你的具体情况另外,当你LDAP中没有数据的时候也search不到东西的
&zhangxy2000 回复于: 11:01:52
&windychan 回复于: 11:46:17
smb-host:/etc/openldap/ldif&#&slapadd&-vl&base.ldif&&提示出下slapadd:&could&not&parse&entry&(line=33)可我的base.ldif文件只用32行啊.
&py 回复于: 15:36:02
ldif文件的写法请参照www.openldap.org上的文档,注意空格和空行的使用建议自习阅读官方文档,包括客户端以及服务器端工具的使用参数
&windychan 回复于: 09:13:53
明白老大,谢谢你一直的关注,但我真的把每一个行末的空格和空行都删除了的啊????????????
&zrover 回复于: 05:40:44
#&/usr/local/libexec/slapd&-d&256&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@(#)&$OpenLDAP:&slapd&2.2.27&(Sep&&2&:47)&$&&&&&&&&@i386.ports.openbsd.org:/usr/obj/i386/openldap-2.2.27/build-i386/servers/slapd/etc/openldap/slapd.conf:&line&63:&suffix&line&must&appear&inside&a&database&definitionslapd&stopped.connections_destroy:&nothing&to&destroy.
&zrover 回复于: 05:46:06
#&/usr/local/libexec/slapd&-d&256&&@(#)&$OpenLDAP:&slapd&2.2.27&(Sep&&2&:47)&$&&&&&&&&@i386.ports.openbsd.org:/usr/obj/i386/openldap-2.2.27/build-i386/servers/slapdUnrecognized&database&type&(bdb)database&bdb&initialization&failed.slapd&stopped.connections_destroy:&nothing&to&destroy.
&windychan 回复于: 11:37:49
贴出sladp.conf全部,估计你的数据库设定出错!
&py 回复于: 23:31:05
看样子像是没有把bdb编译进去.PS.现在为什么还要用这么老的openldap版本,2.2.X在不久的将来就不再维护了
&roy1984 回复于: 15:58:10
显示信息是'net'&不是外部或者内部命令&也不是可运行的程序&或批处理文件&啊?是不是系统的问题啊?&我把openldap重装了几遍都一样&但是在服务管理里面可以正常启动&而且ldap&browser能正常连接
&YuLimin 回复于: 18:53:11
出现Berkeley&DB&library&configured&to&support&only&DB_PRIVATE&environments:(
&hoige 回复于: 13:46:06
我安装了openldap,是和Linux&AS4一起安装的,2.2.x但安装好了就不能启动,不知道为什么???[root@dbbak&log]#&cd&/etc/init.d[root@dbbak&init.d]#&./ldap&startChecking&configuration&files&for&:&config&file&testing&succeededStarting&slapd:&[FAILED]看一下log&/var/log/messagesMar&29&08:40:46&dbbak&su(pam_unix)[3901]:&session&opened&for&user&root&by&test(uid=500)Mar&29&08:42:19&dbbak&slaptest:&sql_select&option&missingMar&29&08:42:19&dbbak&slaptest:&auxpropfunc&error&no&mechanism&available&Mar&29&08:42:19&dbbak&ldap:&&succeededMar&29&08:42:19&dbbak&slapd[3951]:&sql_select&option&missingMar&29&08:42:19&dbbak&slapd[3951]:&auxpropfunc&error&no&mechanism&available&Mar&29&08:42:19&dbbak&ldap:&slapd&startup&failed找了网上一些资料,说是/etc/openldap中权限问题,发现不是这样的[root@dbbak&init.d]#&cd&/etc/openldap[root@dbbak&openldap]#&ls&-ltotal&28-rwxrwxrwx&&1&ldap&ldap&&320&Mar&28&13:14&ldap.confdrwxrwxrwx&&3&ldap&ldap&4096&Mar&28&13:12&schema-rwxrwxrwx&&1&ldap&ldap&3320&Mar&28&14:04&slapd.conf-rwxrwxrwx&&1&ldap&ldap&3437&Mar&28&14:08&slapd.conf.1-rwxr-xr-x&&1&ldap&ldap&3320&Mar&28&14:49&slapd.conf.old//etc/ldap.conf[root@dbbak&etc]#&ls&-l&ldap.conf-rwxr-xr-x&&1&ldap&ldap&8685&Mar&28&13:14&ldap.conf/var/lib/ldap目录:[root@dbbak&lib]#&ls&-ltotal&180drwxr-xr-x&&&2&root&&&&&&root&&&&4096&Mar&28&13:11&alternativesdrwxr-xr-x&&&2&root&&&&&&root&&&&4096&Dec&&1&&2004&csdrwx------&&&2&apache&&&&apache&&4096&Aug&31&&2005&davdrwxr-xr-x&&&2&root&&&&&&root&&&&4096&Nov&18&&2004&dhcpdrwxr-x---&&&2&root&&&&&&root&&&&4096&Oct&19&&2004&dhcpv6drwxr-xr-x&&&2&root&&&&&&root&&&&4096&Aug&13&&2004&gamesdrwxrwxrwx&&&2&ldap&&&&&&ldap&&&&4096&Apr&21&&2005&ldap统统没有问题/etc/openldap/slapd.confdatabase&&&&&&&&bdbsuffix&&&&&&&&&&"dc=my-domain,dc=com"rootdn&&&&&&&&&&"cn=Manager,dc=my-domain,dc=com"#&Cleartext&passwords,&especially&for&the&rootdn,&should#&be&avoided.&&See&slappasswd(&and&slapd.conf(5)&for&details.#&Use&of&strong&authentication&encouraged.#&rootpw&&&&&&&&&&&&&&&&secret#&rootpw&&&&&&&&&&&&&&&&{crypt}ijFYNcSNctBYg#&The&database&directory&MUST&exist&prior&to&running&slapd&AND&#&should&only&be&accessible&by&the&slapd&and&slap&tools.#&Mode&700&recommended.directory&&&&&&&/var/lib/ldap即是安装的时候默认,没有改不知道为什么起不来谢谢root@dbbak&sbin]#&./slapd&-d&256&(路径:/usr/sbin)@(#)&$OpenLDAP:&slapd&2.2.13&(Apr&20&:13)&$&&&&&&&&[email]root@decompose.build.redhat.com[/email]:/usr/src/build/6/BUILD/openldap-2.2.13/openldap-2.2.13/build-servers/servers/slapdbdb_initialize:&Sleepycat&Software:&Berkeley&DB&4.2.52:&(December&&3,&2003)bdb_initialize:&Sleepycat&Software:&Berkeley&DB&4.2.52:&(December&&3,&2003)bdb_db_init:&Initializing&BDB&databaseTLS:&could&not&load&client&CA&list&(file:`',dir:`/etc/openldap/cacerts').TLS:&error::system&librarypendir:No&such&file&or&directory&ssl_cert.c:750TLS:&error:140D7002:SSL&routines:SSL_add_dir_cert_subjects_to_stack:system&lib&ssl_cert.c:752main:&TLS&init&def&ctx&failed:&-1slapd&stopped.connections_destroy:&nothing&to&destroy.谢谢,这个cacerts是必须的吗???谢谢
&py 回复于: 17:56:21
首先,一定要说明,RHEL-AS-4上带的openldap比较垃圾第二,无论是不是能用,尽量不要再用2.2.X了,现在已经out&of&maintenance提示不是说TLS:&could&not&load&client&CA&list&(file:`',dir:`/etc/openldap/cacerts').吗在slapd.conf文件中把TLS的选项关掉就可以了AS4里的编译参数也不知道,自从redhat决定出自己的LDAP,就开始不再升级openldap了,这受到了国外论坛的极大批评
&hoige 回复于: 17:11:55
谢谢试着自己安装
&ebin9099 回复于: 17:27:42
楼主,我出现的是这个问题daemon:&socket()&failed&errno=97&(Address&family&not&supported&by&protocol)could&not&open&config&file&"/etc/openldap/schema/nadf.schema"&-&absolute&path?/etc/openldap/schema/nadf.schema:&No&such&file&or&directoryslapd&stopped.connections_destroy:&nothing&to&destroy请楼主帮忙看看,小弟不甚感激!
&py 回复于: 18:33:32
could&not&open&config&file&"/etc/openldap/schema/nadf.schema"&-&absolute&path?/etc/openldap/schema/nadf.schema:&No&such&file&or&directory看看配置文件中写的schema文件位置是不是对
&ebin9099 回复于: 10:28:44
我查了,文件路经是对的,但奇怪的是schema文件目录中没有nadf.schema这个文件,这又会是什么问题呢?测试的时间比较长,我没始终盯着看。但在测试结束的时候我没有看到报错。安装的时候也是。楼主你认为这会是什么原因造成的呢?
&hoige 回复于: 09:00:40
感谢前面的指教,现在启动是启动起来了,但是报密码错误啊不知道怎么办好我安装了openldap,是和Linux&AS4一起安装的,2.2.x但安装好了,采用默认配置/******************database&&&&&&&&bdbsuffix&&&&&&&&&&"dc=my-domain,dc=com"rootdn&&&&&&&&&&"cn=root"#&Cleartext&passwords,&especially&for&the&rootdn,&should#&be&avoided.&&See&slappasswd(8)&and&slapd.conf(5)&for&details.#&Use&of&strong&authentication&encouraged.&rootpw&test#&rootpw&&&&&&&{MD5}CY9rzUYh03PK3k6DJie09g==#&The&database&directory&MUST&exist&prior&to&running&slapd&AND#&should&only&be&accessible&by&the&slapd&and&slap&tools.#&Mode&700&recommended.directory&&&&&&&/var/lib/ldap/*********************************************************这个配置没问题吧,密码没有加密root@dbbak&openldap]#&ldapadd&-x&-D&'cn=root,dc=my-domain,dc=com'&-WEnter&LDAP&Password:&(输入test这个密码)ldap_bind:&Invalid&credentials&(49)看一下ldap.log&这个我设置了/*************************Apr&&4&08:39:23&dbbak&slapd[10962]:&do_bind&Apr&&4&08:39:23&dbbak&slapd[10962]:&&&&&dnPrettyNormal:&&cn=root,dc=my-domain,dc=com&&Apr&&4&08:39:23&dbbak&slapd[10962]:&&&&&dnPrettyNormal:&&cn=root,dc=my-domain,dc=com&,&&cn=root,dc=my-domain,dc=com&&Apr&&4&08:39:23&dbbak&slapd[10962]:&do_bind:&version=3&dn="cn=root,dc=my-domain,dc=com"&method=128&Apr&&4&08:39:23&dbbak&slapd[10962]:&bdb_dn2entry("cn=root,dc=my-domain,dc=com")&Apr&&4&08:39:23&dbbak&slapd[10962]:&=&&bdb_dn2id(&"dc=my-domain,dc=com"&)&Apr&&4&08:39:23&dbbak&slapd[10962]:&&=&bdb_dn2id:&get&failed:&DB_NOTFOUND:&No&matching&key/data&pair&found&(-30990)&Apr&&4&08:39:23&dbbak&slapd[10962]:&send_ldap_result:&conn=2&op=0&p=3&Apr&&4&08:39:23&dbbak&slapd[10962]:&send_ldap_response:&msgid=1&tag=97&err=49&Apr&&4&08:39:23&dbbak&slapd[10962]:&connection_get(10):&got&connid=2&Apr&&4&08:39:23&dbbak&slapd[10962]:&connection_read(10):&checking&for&input&on&id=2&Apr&&4&08:39:23&dbbak&slapd[10962]:&ber_get_next&on&fd&10&failed&errno=0&(Success)&Apr&&4&08:39:23&dbbak&slapd[10962]:&connection_read(10):&input&error=-2&id=2,&closing.&Apr&&4&08:39:23&dbbak&slapd[10962]:&connection_closing:&readying&conn=2&sd=10&for&close&Apr&&4&08:39:23&dbbak&slapd[10962]:&connection_close:&conn=2&sd=10&/**********************************这个大家遇到过吗????还是什么地方要改一下配置??????谢谢
&py 回复于: 17:34:48
引用:原帖由&ebin9099&于&&10:28&发表我查了,文件路经是对的,但奇怪的是schema文件目录中没有nadf.schema这个文件,这又会是什么问题呢?测试的时间比较长,我没始终盯着看。但在测试结束的时候我没有看到报错。安装的时候也是。楼主你认为这会是什&...&测试?什么测试?nadf.schema不是标准的schema,测试不包括检测某一个确定的schema是否存在.多看一下openldap的相关介绍吧,去www.openldap.org或中文的一些文章.
&py 回复于: 17:36:56
引用:原帖由&hoige&于&&09:00&发表感谢前面的指教,现在启动是启动起来了,但是报密码错误啊不知道怎么办好我安装了openldap,是和Linux&AS4一起安装的,2.2.x但安装好了,采用默认配置/******************database&&&&&&&&bdbsuffix&&&&...&slapd.conf文件中rootdn要写DN,明白?你写成RDN了
&hoige 回复于: 10:42:03
引用:原帖由&py&于&&17:36&发表slapd.conf文件中rootdn要写DN,明白?你写成RDN了&我一开始是写成DN的啊,还是一样的错误/***********************database&&&&&&&&bdbsuffix&&&&&&&&&&"dc=my-domain,dc=com"rootdn&&&&&&&&&&"cn=root,dc=my-domain,dc=com"#&Cleartext&passwords,&especially&for&the&rootdn,&should#&be&avoided.&&See&slappasswd(8)&and&slapd.conf(5)&for&details.#&Use&of&strong&authentication&encouraged.&rootpw&test#&rootpw&&&&&&&{MD5}CY9rzUYh03PK3k6DJie09g==#&The&database&directory&MUST&exist&prior&to&running&slapd&AND#&should&only&be&accessible&by&the&slapd&and&slap&tools.#&Mode&700&recommended.directory&&&&&&&/var/lib/ldap/*****************************本来打算安装新版本的,但下了一个,看需要安装那么多想关联的模块,我知道对我不现实谢谢
&luna2000 回复于: 10:34:55
rootpw&test&前面不能有空格,rootpw&与test之间用[Tab]键隔开,不要用空格。
&py 回复于: 08:44:36
rootpw和后面的密码用TAB或空格分开都是是一样的
&tommyfool 回复于: 10:42:49
[root@localhost&libexec]#&slapd&-d&256@(#)&$OpenLDAP:&slapd&2.2.23&(May&19&:54)&$&&&&&&&&[email]root@porky.build.redhat.com[/email]:/usr/src/build/6/BUILD/openldap-2.2.23/openldap-2.2.23/build-servers/servers/slapddaemon:&bind(6)&failed&errno=98&(Address&already&in&use)daemon:&bind(6)&failed&errno=98&(Address&already&in&use)slapd&stopped.connections_destroy:&nothing&to&destroy.fc4&麻烦了另:&我输入:ldapsearch&-x&-D&"cn=Manager,dc=example,dc=com"&-W&-b&"dc=example,dc=com"&-s&base&"(objectclass=*)"后提示输入&ldap&密码。一直出错。。请问密码是哪个?[&本帖最后由&tommyfool&于&&11:08&编辑&]
&py 回复于: 10:55:41
这是你的openldap已经启动了,再次启动的时候就会出现这样的问题
&tommyfool 回复于: 11:15:27
但我连接的时候总是连不上。这个是什么问题呢?另&那个密码是在哪个文件里设置?谢谢哦
&py 回复于: 22:05:37
仔细看看ldapsearch的man&page密码在slapd.conf文件中
&tommyfool 回复于: 18:01:38
请问:在add的时候输入ldap&passwd后出现这个提示:ldap_bind:&Invalid&credentials是什么原因?谢谢^_^[&本帖最后由&tommyfool&于&&18:06&编辑&]
&py 回复于: 21:00:21
就是字面的意思,“密码错误”原因很多,例如ACL权限的问题看看LDAP服务器端的具体报错,修改相应的ACL即可
&xhc800325 回复于: 11:12:56
请问现在最新的OPENLDAP版本是什么?
&py 回复于: 12:11:12
引用:原帖由&xhc800325&于&&11:12&发表请问现在最新的OPENLDAP版本是什么?&http://www.openldap.org/
&heavenwalk 回复于: 15:06:57
OpenLDAP调用ldapadd和ldapsearch都没有问题,使用ldap的客户端工具ldapbrowser也可以进行浏览和增加等操作,但是使用freeradius就总是提示失败,下面是openldap的提示信息,请帮忙看一下,十分感谢:)屏幕显示的调试信息:==============================================@(#)&$OpenLDAP:&slapd&2.3.27&(Sep&25&:14)&$&&&&&&&&root@debian:/home/ldap/openldap-2.3.27/servers/slapddaemon:&IPv6&socket()&failed&errno=97&(Address&family&not&supported&by&protocol)slapd&startingconn=0&fd=12&ACCEPT&from&IP=127.0.0.1:32791&(IP=0.0.0.0:389)conn=0&op=0&BIND&dn="cn=Manager,dc=ztdomain,dc=com"&method=128conn=0&op=0&BIND&dn="cn=Manager,dc=ztdomain,dc=com"&mech=SIMPLE&ssf=0conn=0&op=0&RESULT&tag=97&err=0&text=conn=0&op=1&SRCH&base="dc=mydomain,dc=com"&scope=2&deref=0&filter="(uid=test)"conn=0&op=1&SRCH&attr=radiusNasPortId&radiusNASIpAddress&radiusExpiration&acctFlags&ntPassword&lmPassword&radiusCallingStationId&radiusCalledStationId&radiusSimultaneousUse&radiusAuthType&radiusCheckItem&radiusFramedPool&radiusRemanentVolume&radiusClientSecondaryDNS&radiusClientPrimaryDNS&radiusRemanentVolume&radiusInputBasicRate&radiusInputAverageRate&radiusInputPeakRate&radiusOutBasicRate&radiusOutAverageRate&radiusOutPeakRate&radiusReplyMessage&radiusLoginLATPort&radiusPortLimit&radiusFramedAppleTalkZone&radiusFramedAppleTalkNetwork&radiusFramedAppleTalkLink&radiusLoginLATGroup&radiusLoginLATNode&radiusLoginLATService&radiusTerminationAction&radiusIdleTimeout&radiusSessionTimeout&radiusClass&radiusFramedIPXNetwork&radiusCallbackId&radiusCallbackNumber&radiusLoginTCPPort&radiusLoginService&radiusLoginIPHost&radiusFramedCompression&radiusFramedMTU&radiusFilterId&radiusFramedRouting&radiusFramedRoute&radiusFramedIPNetmask&radiusFramedIPAddress&radiusFramedProtocol&radiusServiceType&radiusReplyItem&userPassword&dialupAccessconn=0&op=1&SEARCH&RESULT&tag=101&err=32&nentries=0&text=conn=0&op=2&SRCH&base="dc=mydomain,dc=com"&scope=2&deref=0&filter="(uid=test)"conn=0&op=2&SRCH&attr=uidconn=0&op=2&SEARCH&RESULT&tag=101&err=32&nentries=0&text=ldap.log信息=============================Sep&28&14:56:59&localhost&slapd[3900]:Sep&28&14:56:59&localhost&slapd[3900]:&send_ldap_result:&conn=0&op=3&p=3Sep&28&14:56:59&localhost&slapd[3900]:&send_ldap_result:&err=10&matched=""&text=""Sep&28&14:56:59&localhost&slapd[3900]:&send_ldap_response:&msgid=4&tag=101&err=32Sep&28&14:56:59&localhost&slapd[3899]:&daemon:&activity&on&1&descriptorSep&28&14:56:59&localhost&slapd[3899]:&daemon:&activity&on:Sep&28&14:56:59&localhost&slapd[3899]:&&12rSep&28&14:56:59&localhost&slapd[3899]:Sep&28&14:56:59&localhost&slapd[3899]:&daemon:&read&activity&on&12Sep&28&14:56:59&localhost&slapd[3899]:&connection_get(12)Sep&28&14:56:59&localhost&slapd[3899]:&connection_get(12):&got&connid=0Sep&28&14:56:59&localhost&slapd[3899]:&connection_read(12):&checking&for&input&on&id=0Sep&28&14:56:59&localhost&slapd[3899]:&ber_get_next&on&fd&12&failed&errno=11&(Resource&temporarily&unavailable)Sep&28&14:56:59&localhost&slapd[3900]:&do_searchSep&28&14:56:59&localhost&slapd[3899]:&daemon:&select:&listen=6&active_threads=0&tvp=NULLSep&28&14:56:59&localhost&slapd[3900]:&&&&&dnPrettyNormal:&&dc=mydomain,dc=com&Sep&28&14:56:59&localhost&slapd[3900]:&&&&&dnPrettyNormal:&&dc=mydomain,dc=com&,&&dc=mydomain,dc=com&Sep&28&14:56:59&localhost&slapd[3900]:&SRCH&"dc=mydomain,dc=com"&2&0Sep&28&14:56:59&localhost&slapd[3900]:&&&&&0&3&0Sep&28&14:56:59&localhost&slapd[3900]:&begin&get_filterSep&28&14:56:59&localhost&slapd[3900]:&EQUALITYSep&28&14:56:59&localhost&slapd[3900]:&end&get_filter&0Sep&28&14:56:59&localhost&slapd[3900]:&&&&&filter:&(uid=test)Sep&28&14:56:59&localhost&slapd[3900]:&&&&&attrs:Sep&28&14:56:59&localhost&slapd[3900]:&&uidSep&28&14:56:59&localhost&slapd[3900]:Sep&28&14:56:59&localhost&slapd[3900]:&send_ldap_result:&conn=0&op=4&p=3Sep&28&14:56:59&localhost&slapd[3900]:&send_ldap_result:&err=10&matched=""&text=""Sep&28&14:56:59&localhost&slapd[3900]:&send_ldap_response:&msgid=5&tag=101&err=32
&大酷牛佳佳 回复于: 16:03:49
我的启动也正常ldapadd&&-D&'cn=root,dc=it,dc=com'&-WEnter&LDAP&Password:SASL/GSSAPI&authentication&startedldap_sasl_interactive_bind_s:&Local&error&(-2)&&&&&&&&additional&info:&SASL(-1):&generic&failure:&GSSAPI&Error:&Miscellaneous&failure&(No&credentials&cache&found)出现这个错误slap.confinclude&/usr/local/etc/openldap/schema/core.schemainclude&/usr/local/etc/openldap/schema/corba.schemainclude&/usr/local/etc/openldap/schema/cosine.schemainclude&/usr/local/etc/openldap/schema/dyngroup.schemainclude&/usr/local/etc/openldap/schema/inetorgperson.schemainclude&/usr/local/etc/openldap/schema/misc.schemainclude&/usr/local/etc/openldap/schema/openldap.schemainclude&/usr/local/etc/openldap/schema/nis.schemainclude&/usr/local/etc/openldap/schema/java.schema#&Define&global&ACLs&to&disable&default&read&access.#&Do&not&enable&referrals&until&AFTER&you&have&a&working&directory#&service&AND&an&understanding&of&referrals.#referral&&&&&&&ldap://reoot.openldap.orgpidfile&&&&&&&&&/usr/local/var/run/slapd.pidargsfile&&&&&&&&/usr/local/var/run/slapd.argsdatabase&&&&&&&&bdbsuffix&&&&&&&&&&"dc=it,dc=com"rootdn&&&&&&&&&&"cn=root,dc=it,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&&{SSHA}3MaXwW6l7fcmTCWbji3/YdlrtW7vNTav#&The&database&directory&MUST&exist&prior&to&running&slapd&AND#&should&only&be&accessible&by&the&slapd&and&slap&tools.#&Mode&700&recommended.directory&&&&&&&/usr/local/var/openldap-data#&Indices&to&maintainindex&&&objectClass&&&&&eq
&py 回复于: 20:41:41
引用:原帖由&heavenwalk&于&&15:06&发表OpenLDAP调用ldapadd和ldapsearch都没有问题,使用ldap的客户端工具ldapbrowser也可以进行浏览和增加等操作,但是使用freeradius就总是提示失败,下面是openldap的提示信息,请帮忙看一下,十分感谢:)&...&用ldapsearch&以下uid=test,看看有结果吗?error&code32&表示没有查找到结果
&py 回复于: 20:42:06
引用:原帖由&大酷牛佳佳&于&&16:03&发表我的启动也正常ldapadd&&-D&'cn=root,dc=it,dc=com'&-WEnter&LDAP&Password:SASL/GSSAPI&authentication&startedldap_sasl_interactive_bind_s:&Local&error&(-2)&&&&&&&&additional&info:&SASL(-1):&g&...&ldapadd&&-x&-D&'cn=root,dc=it,dc=com'&-W
&nevereverdown 回复于: 12:56:12
openldap-2.2.26&make&testcd&&make&testInitiating&LDAP&tests&for&BDB...Running&./scripts/all...&&&&&&Executing&all&LDAP&tests&for&bdb&&&&&&Starting&test000-rootdse&...running&defines.shStarting&slapd&on&TCP/IP&port&9011...Using&ldapsearch&to&retrieve&the&root&DSE...19062&KilledWaiting&5&seconds&for&slapd&to&start...Waiting&5&seconds&for&slapd&to&start...Waiting&5&seconds&for&slapd&to&start...Waiting&5&seconds&for&slapd&to&start...Waiting&5&seconds&for&slapd&to&start...Waiting&5&seconds&for&slapd&to&start..../scripts/test000-rootdse:&kill:&no&such&processldap_bind:&Can't&contact&LDAP&server&(-1)&&&&&&Test&failed&&&&&&./scripts/test000-rootdse&failed&(exit&1)***&Error&code&1make:&Fatal&error:&Command&failed&for&target&`bdb-yes'Current&working&directory&/packages/g/openldap-2.2.26/tests***&Error&code&1make:&Fatal&error:&Command&failed&for&target&`test'Current&working&directory&/packages/g/openldap-2.2.26/tests***&Error&code&1make:&Fatal&error:&Command&failed&for&target&`test'g&libexec/slapd&-d&256&&&&&&&&&&&&&&&&&&&&ld.so.1:&slapd:&fatal:&libdb-4.3.so:&open&failed:&No&such&file&or&directoryKilled我用的是solaris9我用/usr/ccs/bin/ld&生成了可执行文件a.outld&-L/4.3.28/lib&/usr/lib/ld.so.1不知道对不对也不知道怎么用这个。
&py 回复于: 22:05:59
solaris环境要设置环境变量export&LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.*/lib,再执行make&test,如果仍然有问题,就要加上环境变量重新./configure了
&formylover 回复于: 00:10:50
输入如下命令:[root@localhost&root]#&ldapsearch&-s&sub&"(objectclass=*)"SASL/DIGEST-MD5&suthentication&startedPlease&ente&your&password:(输入默认密码secret后提示:)ldap_sasl_interactive_bind_s:&Can't&contact&LDAP&server&(-1)为什么?这个要求输入的到底是什么密码?用slapd命令能成功启动LDAP服务,这里是不是因为密码错误而断开连接的?如果在调试状态下能显示更详细的内容:........ldap_chkResponseList&for&msgid=3,&all=1ldap_chkResponseList&returns&NULLldap_int_selectread1msg:msgid&3,&all&1ber_get_nextber_get_nex&failed.ldap_perrorldap_sasl_interactive_bind_s:Cant't&contact&LDAP&server()-1
&py 回复于: 23:32:06
在google里搜一下,看看ldapsearch的正确用法
&windychan 回复于: 15:54:20
用:&/usr/local/libexec/slapd&-u&ldap&-d&-1&&看到.如下..............backend_startup_one:&starting&"dc=beltontech,dc=com"bdb_db_open:&dc=beltontech,dc=combdb_db_open:&Warning&-&No&DB_CONFIG&file&found&in&directory&/usr/local/var/openldap-data:&(2)Expect&poor&performance&for&suffix&dc=tech,dc=com.bdb_db_open:&dbenv_open(/usr/local/var/openldap-data)........................为什么会有:No&DB_CONFIG&file&found&in&directory&/usr/local/var/openldap-data:&(2)可查看端口:&389/tcp&open&&ldap又正确.用命令:&&ldapsearch&-x&-b&''&-s&base&'(objectclass=*)'&namingContexts#dn:namingContexts:&dc=tech,dc=com#&search&resultsearch:&2result:&0&Success这是为什么啊,影响使用吗?[&本帖最后由&windychan&于&&15:58&编辑&]
&wenhong3000 回复于: 16:09:42
我安装好openldap后,不能对person添加email属性,在schema中把email属性添加进去后,openldap就不能启动了,请问是什么回事,非常感谢
&py 回复于: 20:02:17
引用:原帖由&windychan&于&&15:54&发表用:&/usr/local/libexec/slapd&-u&ldap&-d&-1&&看到.如下..............backend_startup_one:&starting&"dc=beltontech,dc=com"bdb_db_open:&dc=beltontech,dc=combdb_db_open:&Wa&...&显示一般的错误或调试的时候用-d256足以这个提示我记得好像是2.2.*以后有的,&DB_CONFIG文件中写入的是bdb的一些优化参数,默认安装openldap在这里会有以个example&file,&/usr/local/etc/openldap/DB_CONFIG.example把这个文件改名后放到/usr/local/var/openldap-data下就可以了
&py 回复于: 20:12:27
引用:原帖由&wenhong3000&于&&16:09&发表我安装好openldap后,不能对person添加email属性,在schema中把email属性添加进去后,openldap就不能启动了,请问是什么回事,非常感谢&person太接近top了,&在schema中person的MAY中的属性很少在用户的objectclass属性中加上inetOrgPerson,&或包含mail属性的objectclass
&yalechen 回复于: 14:34:26
./slapd&-d&256启动slapd后,显示如下,请问都有哪些问题?================================================@(#)&$OpenLDAP:&slapd&2.3.27&(Dec&12&:02)&$&&&&&&&&[email]root@localhost.loca[/email]ldomain:/root/testproject/ldap/openldap-2.3.27/servers/slapddaemon:&IPv6&socket()&failed&errno=97&(Address&family&not&supported&byprotocol)bdb_db_open:&unclean&shutdown&&attempting&recovery.bdb_db_open:&Warning&-&No&DB_CONFIG&file&found&in&directory/usr/local/openldap/var/openldap-data:&(2)Expect&poor&performance&for&suffix&dc=nari-china,dc=com.slapd&starting
&py 回复于: 18:27:10
编译的时候可以把IPv6&disable掉就不会有相关问题了.你的db没有正常退出,&或出现了数据问题,&2.3.x会尝试用dbrecovery恢复.DB_CONFIG&file是用来优化数据库的,&这个文件应该放在/usr/local/openldap/var/openldap-data这个目录.
&yalechen 回复于: 09:47:30
好多多谢,我试一试!!
&wubm 回复于: 10:46:22
我用的是OPENLDAP2.3.27,&我运行下面的命令是提示照不到文件:"/usr/local/openldap/var/openldap-data/id2entry.bdb",但是我仔细检查了,这个文件是存在的,请教这知道是什么原因?&哪个知道是什么原因,请指教一下,非常感激![root@localhost&libexec]#&./slapd&-d&256@(#)&$OpenLDAP:&slapd&2.3.27&(Dec&22&:46)&$&&&&&&&&[email]root@localhost.loca[/email]ldomain:/root/openldap-2.3.27/servers/slapdbdb_db_open:&db_open(/usr/local/openldap/var/openldap-data/id2entry.bdb)&failed:&No&such&file&or&directory&(2)bdb(dc=example,dc=com):&Unknown&locker&ID:&0backend_startup_one:&bi_db_open&failed!&(2)bdb_db_close:&alock_close&failedslapd&stopped.connections_destroy:&nothing&to&destroy.
&yalechen 回复于: 10:54:22
您好,在ldapadd一个ldif文件时,请问出现如下错误原因(google上没有搜索到):=====================================adding&new&entry&"dc=info,dc=com"ldap_add:&DSA&is&unwilling&to&perform&&&&&&&&additional&info:&no&global&superior&knowledgeldif_record()&=&53=====================================谢谢!!!
&py 回复于: 17:30:14
引用:原帖由&wubm&于&&10:46&发表我用的是OPENLDAP2.3.27,&我运行下面的命令是提示照不到文件:"/usr/local/openldap/var/openldap-data/id2entry.bdb",但是我仔细检查了,这个文件是存在的,请教这知道是什么原因?&哪个知道是什么原因,请&...&是第一次启动就这样提示吗?安装openldap的时候,make&test都成功了吗?配置文件时候有做过什么改动?从错误提示上看就是指定的文件不存在.
&py 回复于: 17:36:31
引用:原帖由&yalechen&于&&10:54&发表您好,在ldapadd一个ldif文件时,请问出现如下错误原因(google上没有搜索到):=====================================adding&new&entry&"dc=info,dc=com"&...&非启动问题还是开个新贴吧.另外,&最好把相关的情况写清楚,slapd.conf文件的内容?ldif文件的内容?..
&wuyanling1 回复于: 16:06:41
斑竹你好&询问一下&&ldap启动是由这种报错&[root@dkhmain&openldap]#&/usr/local/libexec/slapd&-d&256&bdb_initialize:&Sleepycat&Software:&Berkeley&DB&4.2.52:&(December&&3,&2003)/usr/local/etc/openldap/schema/aquarius.schema:&line&12:&unknown&directive&"Attributes"&outside&backend&info&and&database&definitions&(ignored)bdb_db_init:&Initializing&BDB&databasebdb(dc=eastcom-ca,dc=com):&Program&version&4.2&doesn't&match&environment&versionbdb_db_open:&dbenv_open&failed:&Invalid&argument&(22)backend_startup:&bi_db_open(0)&failed!&(22)bdb(dc=eastcom-ca,dc=com):&txn_checkpoint&interface&requires&an&environment&configured&for&the&transaction&subsystembdb_db_destroy:&txn_checkpoint&failed:&Invalid&argument&(22)slapd&stopped.connections_destroy:&nothing&to&destroy.我的sladp。conf是这样的&nclude&&&&&&&&&/usr/local/etc/openldap/schema/core.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/cosine.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/inetorgperson.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/aquarius.schemainclude&&&&&&&&&/usr/local/etc/openldap/schema/java.schema#&Define&global&ACLs&to&disable&default&read&access.#&Do&not&enable&referrals&until&AFTER&you&have&a&working&directory#&service&AND&an&understanding&of&referrals.pidfile&&&&&&&&&/usr/local/var/slapd.pidargsfile&&&&&&&&/usr/local/var/slapd.args#&Load&dynamic&backend&modules:#&modulepath&&&&/usr/local/libexec/openldap#&moduleload&&&&back_bdb.la#&moduleload&&&&back_ldap.la#&moduleload&&&&back_ldbm.la#&moduleload&&&&back_passwd.la#&moduleload&&&&back_shell.la#&Sample&security&restrictions##&&&Disallow&clear&text&exchange&of&passwords#&disallow&bind_simple_unprotected##&&&&&&&Require&integrity&protection&(prevent&hijacking)#&&&&&&&Require&112-bit&(3DES&or&better)&encryption&for&updates#&&&&&&&Require&63-bit&encryption&for&simple&bind#&security&ssf=1&update_ssf=112&simple_bind=64#&Sample&access&control&policy:#&&&&&&&Root&DSE:&allow&anyone&to&read&it#&&&&&&&Subschema&(sub)entry&DSE:&allow&anyone&to&read&it#&&&&&&&Other&DSEs:#&&&&&&&&&&&&&&&Allow&self&write&access#&&&&&&&&&&&&&&&Allow&authenticated&users&read&access#&&&&&&&&&&&&&&&Allow&anonymous&users&to&authenticate#&&&&&&&Directives&needed&to&implement&policy:#&access&to&dn.base=""&by&*&read#&access&to&dn.base="cn=Subschema"&by&*&read#&access&to&*#&&&&&&&by&self&write#&&&&&&&by&users&read#&&&&&&&by&anonymous&auth##&if&no&access&controls&are&present,&the&default&policy&is:#&&&&&&&Allow&read&by&all##&rootdn&can&always&write!access&to&attr=userpassword&&&&&&&&by&group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com"&write&&&&&&&&by&self&write&&&&&&&&by&anonymous&authaccess&to&filter="(OpenLDAPaci=*EVERYONE*)"&&&&&&&&by&users&writeaccess&to&dn.base="dc=eastcom-ca,dc=com"&&&&&&&&by&users&readaccess&to&dn.base="ou=handler,dc=eastscom-ca,&dc=com"&&&&&&&&by&users&readaccess&to&dn.base="ou=users,ou=handler,dc=eastcom-ca,dc=com"&&&&&&&&by&self&write&&&&&&&&by&group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com"&write&&&&&&&&by&users&readaccess&to&dn.base="ou=groups,ou=handler,dc=eastcom-ca,dc=com"&&&&&&&&by&self&write&&&&&&&&by&group="cn=administrator,ou=groups,ou=handler,dc=eastcom-ca,dc=com"&write&&&&&&&&by&users&readaccess&to&dn.base="ou=manag

我要回帖

更多关于 conda add channel 的文章

 

随机推荐