質問編集履歴
3
パスワード変更
title
CHANGED
File without changes
|
body
CHANGED
@@ -63,9 +63,9 @@
|
|
63
63
|
uid: user1
|
64
64
|
uidNumber: 3000
|
65
65
|
loginShell: /bin/bash
|
66
|
-
userPassword:
|
66
|
+
userPassword: abcuser
|
67
67
|
```
|
68
|
-
# ldapsearch -H ldap://centos8.localdomain -D "cn=Directory Manager" -w '
|
68
|
+
# ldapsearch -H ldap://centos8.localdomain -D "cn=Directory Manager" -w 'kdnrIHMe45' -b dc=localdomain
|
69
69
|
```
|
70
70
|
# extended LDIF
|
71
71
|
#
|
@@ -134,7 +134,7 @@
|
|
134
134
|
AuthBasicProvider ldap
|
135
135
|
AuthLDAPURL "ldap://centos8.localdomain:389/ou=users,dc=localdomain?sAMAccountName?sub?(objectClass=*)"
|
136
136
|
AuthLDAPBindDN "Directory Manager"
|
137
|
-
AuthLDAPBindPassword "
|
137
|
+
AuthLDAPBindPassword "kdnrIHMe45"
|
138
138
|
Require valid-user
|
139
139
|
```
|
140
140
|
# vi /etc/httpd/conf/httpd.conf
|
@@ -144,7 +144,7 @@
|
|
144
144
|
AuthBasicProvider ldap
|
145
145
|
AuthLDAPURL "ldap://centos8.localdomain:389/ou=users,dc=localdomain?sAMAccountName?sub?(objectClass=*)"
|
146
146
|
AuthLDAPBindDN "Directory Manager"
|
147
|
-
AuthLDAPBindPassword "
|
147
|
+
AuthLDAPBindPassword "kdnrIHMe45"
|
148
148
|
Require valid-user
|
149
149
|
```
|
150
150
|
### 補足情報(FW/ツールのバージョンなど)
|
2
ログや設定ファイルを ``` の行を前後に挟んでの記載
title
CHANGED
File without changes
|
body
CHANGED
@@ -137,6 +137,16 @@
|
|
137
137
|
AuthLDAPBindPassword "23!#s6a@_HDk"
|
138
138
|
Require valid-user
|
139
139
|
```
|
140
|
+
# vi /etc/httpd/conf/httpd.conf
|
141
|
+
|
142
|
+
``` AuthType Basic
|
143
|
+
AuthName "LDAP Authentication"
|
144
|
+
AuthBasicProvider ldap
|
145
|
+
AuthLDAPURL "ldap://centos8.localdomain:389/ou=users,dc=localdomain?sAMAccountName?sub?(objectClass=*)"
|
146
|
+
AuthLDAPBindDN "Directory Manager"
|
147
|
+
AuthLDAPBindPassword "23!#s6a@_HDk"
|
148
|
+
Require valid-user
|
149
|
+
```
|
140
150
|
### 補足情報(FW/ツールのバージョンなど)
|
141
151
|
|
142
152
|
Centos : ver 8.1
|
1
ログや設定ファイルを ``` の行を前後に挟んでの記載
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,33 +4,27 @@
|
|
4
4
|
LDAP( ldapsearch )の接続してのユーザー情報の取得は出来ているのですが、Apacheのベーシック認証をする際に
|
5
5
|
ログイン画面後、ユーザー名( user1 )とパスワード( user1 )の入力後にエラーが発生するのですが、誰かわかる方がいたら教えていただければ幸いです。
|
6
6
|
|
7
|
-
### 発生している問題・エラーメッセージ
|
8
7
|
|
9
|
-
----------------------------------------------------------------------------------------------------
|
10
|
-
|
11
|
-
|
8
|
+
### ウェブで発生している問題・エラーメッセージ
|
12
|
-
|
9
|
+
```
|
13
|
-
|
14
10
|
Internal Server Error
|
15
11
|
The server encountered an internal error or misconfiguration and was unable to complete your request.
|
16
12
|
|
17
13
|
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
|
18
14
|
|
19
15
|
More information about this error may be available in the server error log.
|
20
|
-
|
21
|
-
|
16
|
+
```
|
22
|
-
|
23
|
-
/var/log/httpd/access_log
|
17
|
+
#/var/log/httpd/access_log
|
24
|
-
|
18
|
+
```
|
25
19
|
192.168.3.1 - - [22/Sep/2021:16:38:15 +0900] "GET / HTTP/1.1" 401 381 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"
|
26
20
|
192.168.3.1 - user1 [22/Sep/2021:16:38:25 +0900] "GET / HTTP/1.1" 500 527 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"
|
27
21
|
192.168.3.1 - user1 [22/Sep/2021:16:38:25 +0900] "GET /favicon.ico HTTP/1.1" 500 527 "http://192.168.3.101/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:92.0) Gecko/20100101 Firefox/92.0"
|
22
|
+
```
|
23
|
+
#/var/log/httpd/error_log には特に記述なし
|
28
24
|
|
29
|
-
/var/log/httpd/error_log には特に記述なし
|
30
25
|
|
31
|
-
|
32
|
-
/var/log/dirsrv/slapd-Instance1/access
|
26
|
+
#/var/log/dirsrv/slapd-Instance1/access
|
33
|
-
|
27
|
+
```
|
34
28
|
[22/Sep/2021:16:38:25.087235949 +0900] conn=17 fd=64 slot=64 connection from 192.168.3.101 to 192.168.3.101
|
35
29
|
[22/Sep/2021:16:38:25.087417408 +0900] conn=17 op=0 BIND dn="Directory Manager" authzid="(null)", invalid bind dn
|
36
30
|
[22/Sep/2021:16:38:25.087462864 +0900] conn=17 op=0 RESULT err=34 tag=97 nentries=0 wtime=0.000091676 optime=0.000094978 etime=0.000184462
|
@@ -41,13 +35,9 @@
|
|
41
35
|
[22/Sep/2021:16:38:25.162673389 +0900] conn=18 op=0 RESULT err=34 tag=97 nentries=0 wtime=0.000118580 optime=0.000055076 etime=0.000171851
|
42
36
|
[22/Sep/2021:16:38:25.163171737 +0900] conn=18 op=1 UNBIND
|
43
37
|
[22/Sep/2021:16:38:25.163188520 +0900] conn=18 op=1 fd=65 closed error - U1
|
44
|
-
|
45
|
-
----------------------------------------------------------------------------------------------------
|
46
|
-
|
47
|
-
|
38
|
+
```
|
48
|
-
|
49
39
|
# vi /etc/dirsrv/slapd-Instance1/base.ldif
|
50
|
-
|
40
|
+
```
|
51
41
|
dn: dc=localdomain
|
52
42
|
objectClass: domain
|
53
43
|
dc: localdomain
|
@@ -74,13 +64,9 @@
|
|
74
64
|
uidNumber: 3000
|
75
65
|
loginShell: /bin/bash
|
76
66
|
userPassword: user1
|
77
|
-
|
78
|
-
----------------------------------------------------------------------------------------------------
|
79
|
-
|
80
|
-
|
67
|
+
```
|
81
|
-
|
82
68
|
# ldapsearch -H ldap://centos8.localdomain -D "cn=Directory Manager" -w '23!#s6a@_HDk' -b dc=localdomain
|
83
|
-
|
69
|
+
```
|
84
70
|
# extended LDIF
|
85
71
|
#
|
86
72
|
# LDAPv3
|
@@ -140,7 +126,6 @@
|
|
140
126
|
# numResponses: 6
|
141
127
|
# numEntries: 5
|
142
128
|
|
143
|
-
----------------------------------------------------------------------------------------------------
|
144
129
|
|
145
130
|
# vi /etc/httpd/conf/httpd.conf
|
146
131
|
|
@@ -151,7 +136,7 @@
|
|
151
136
|
AuthLDAPBindDN "Directory Manager"
|
152
137
|
AuthLDAPBindPassword "23!#s6a@_HDk"
|
153
138
|
Require valid-user
|
154
|
-
|
139
|
+
```
|
155
140
|
### 補足情報(FW/ツールのバージョンなど)
|
156
141
|
|
157
142
|
Centos : ver 8.1
|