LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1003|回复: 5

用phpldapadmin管理openldap的问题。

[复制链接]
发表于 2004-3-27 15:31:52 | 显示全部楼层 |阅读模式
编译安装完openldap
输入:
# ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
# extended LDIF
#
# LDAPv3
# base <> with scope base
# filter: (objectclass=*)
# requesting: namingContexts
#

#
dn:
namingContexts: dc=localhost,dc=localdomain

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1


我想,这说明已经能够成功运行ldap了。

然后我在浏览器中打开phpldapadmin
点击dc=localhost,dc=localdomain,出现下面错误:

Error
No such dn, dc=localhost,dc=localdomain

这是为什么???
 楼主| 发表于 2004-3-27 15:51:24 | 显示全部楼层
这是我在google上找到的一个,可惜还是不知道怎么回事。
From: Marco Welter <mawe <at> lx-system.de>
Subject: Re: [phpldapadmin] Problem with DN
Newsgroups: gmane.comp.ldap.davedap
Date: Mon, 01 Mar 2004 13:38:26 +0100

Sorry for the posting, it was my own problem.

I forget to put the first ldif in the database.

Bye

Marco
Am Montag, 1. M&#228;rz 2004 11:57 schrieb Marco Welter:
> Hello,
>
> I installed a empty LDAP Databaseserver and the phpldapadmin Tool.
>
> After I edit the sldap.conf and the config.php from the phpldapadmin Tool,
> I can login into the Webfrontend.
> Now, I click on the "Server" (dc=lxoa,dc=de), the Webfrontend give me this
> error:
> " No such dn, dc=lxoa,dc=de "
>
> Whats my problem ?
>
> Thanks
>
> Marco
 楼主| 发表于 2004-3-27 17:05:34 | 显示全部楼层
运行下面命令成功显示。可是能告诉我为什么吗?

$ ldapadd -x -D "cn=Manager,dc=localhost,dc=localdomain" -W -h localhost -f test.ldif


######################
test.ldif
######################
dn: dc=localhost,dc=localdomain
objectclass: dcObject
objectclass: organization
o: abc
dc: localhost

dn: dc=localhost,dc=localdomain
objectclass: organizationalRole
cn: Manager
 楼主| 发表于 2004-3-27 17:28:23 | 显示全部楼层
再问:我想删除前面的操作,重新做一次。应该怎么做呢?
 楼主| 发表于 2004-3-27 17:57:35 | 显示全部楼层
再请教:o: abc这个有什么用?
发表于 2005-11-14 19:32:13 | 显示全部楼层
Post by emylekao
再请教:o: abc这个有什么用?

应该是组织名,只是一个标识
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表