由 emylekao 在 03-27-2004 15:31 发表:
用phpldapadmin管理openldap的问题。
编译安装完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
这是为什么???
关于Python/PHP、Linux和FreeBSD。
Linux/FreeBSD忠实爱好者
希望对推动Linux在中国的发展略尽微薄之力。
Fedora core 2 & FreeBSD 4.10
由 emylekao 在 03-27-2004 15:51 发表:
这是我在google上找到的一个,可惜还是不知道怎么回事。
From: Marco Welter
1<mawe <at=""> lx-system.de>
2
3Subject: Re: [phpldapadmin] Problem with DN
4
5Newsgroups: gmane.comp.ldap.davedap
6
7Date: Mon, 01 Mar 2004 13:38:26 +0100
8
9
10
11Sorry for the posting, it was my own problem.
12
13
14
15I forget to put the first ldif in the database.
16
17
18
19Bye
20
21
22
23Marco
24
25Am Montag, 1. März 2004 11:57 schrieb Marco Welter:
26
27> Hello,
28
29>
30
31> I installed a empty LDAP Databaseserver and the phpldapadmin Tool.
32
33>
34
35> After I edit the sldap.conf and the config.php from the phpldapadmin Tool,
36
37> I can login into the Webfrontend.
38
39> Now, I click on the "Server" (dc=lxoa,dc=de), the Webfrontend give me this
40
41> error:
42
43> " No such dn, dc=lxoa,dc=de "
44
45>
46
47> Whats my problem ?
48
49>
50
51> Thanks
52
53>
54
55> Marco
56
57__________________
58
59www.bymg.com
60
61关于Python/PHP、Linux和FreeBSD。
62
63
64
65Linux/FreeBSD忠实爱好者
66
67希望对推动Linux在中国的发展略尽微薄之力。
68
69Fedora core 2 & FreeBSD 4.10
70
71
72
73
74* * *
75
76
77_由 emylekao 在 03-27-2004 17:05 发表:_
78
79
80
81****
82
83
84
85
86
87运行下面命令成功显示。可是能告诉我为什么吗?
88
89
90
91$ ldapadd -x -D "cn=Manager,dc=localhost,dc=localdomain" -W -h localhost -f test.ldif
92
93
94
95
96
97######################
98
99test.ldif
100
101######################
102
103dn: dc=localhost,dc=localdomain
104
105objectclass: dcObject
106
107objectclass: organization
108
109o: abc
110
111dc: localhost
112
113
114
115dn: dc=localhost,dc=localdomain
116
117objectclass: organizationalRole
118
119cn: Manager
120
121<font face="腩戾,verdana, arial, helve</mawe>