質問編集履歴
5
書式の編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,13 +36,13 @@
|
|
36
36
|
|
37
37
|
```
|
38
38
|
|
39
|
-
$prefix = "dc=hogehoge,dc=co,dc=jp"
|
39
|
+
$prefix = "dc=hogehoge,dc=co,dc=jp"
|
40
40
|
|
41
|
-
$binddn = "cn=manager,${prefix}"
|
41
|
+
$binddn = "cn=manager,${prefix}"
|
42
42
|
|
43
|
-
$basedn = "ou=People,$prefix"
|
43
|
+
$basedn = "ou=People,$prefix"
|
44
44
|
|
45
|
-
$ldappw = "******"
|
45
|
+
$ldappw = "******" ←ディレクトリマネージャーのパスワード
|
46
46
|
|
47
47
|
|
48
48
|
|
4
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,22 +28,30 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
+
できればパスワードを求められない方法がいいのですが。
|
32
|
+
|
31
33
|
これでいきますかね?
|
32
34
|
|
33
35
|
|
34
36
|
|
35
|
-
|
37
|
+
```
|
36
38
|
|
37
|
-
|
39
|
+
$prefix = "dc=hogehoge,dc=co,dc=jp";";
|
38
40
|
|
39
|
-
|
41
|
+
$binddn = "cn=manager,${prefix}";
|
40
42
|
|
43
|
+
$basedn = "ou=People,$prefix";
|
44
|
+
|
41
|
-
|
45
|
+
$ldappw = "******"; ←ディレクトリマネージャーのパスワード
|
42
46
|
|
43
47
|
|
44
48
|
|
45
49
|
$ldapUidCmd = $(ldapsearch -x -D $binddn -w $ldappw -b $basedn '(objectClass=posixAccount)' -LLL |grep uidNumber: |cut -f 2 -d ' ' |sort -nr |head -n 1)
|
46
50
|
|
51
|
+
```
|
47
52
|
|
48
53
|
|
54
|
+
|
55
|
+
参照URL
|
56
|
+
|
49
|
-
|
57
|
+
https://www.ebisawa.co.jp/wiki/index.php?LDAP/%E3%83%A6%E3%83%BC%E3%82%B6%E7%AE%A1%E7%90%86
|
3
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,3 +25,25 @@
|
|
25
25
|
https://www.dynobin.com/linux-find-max-uidnumber-on-ldap/
|
26
26
|
|
27
27
|
https://www.openldap.org/lists/openldap-software/200110/msg00539.html
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
これでいきますかね?
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
my $prefix = "dc=hogehoge,dc=co,dc=jp";";
|
36
|
+
|
37
|
+
my $binddn = "cn=manager,${prefix}";
|
38
|
+
|
39
|
+
my $basedn = "ou=People,$prefix";
|
40
|
+
|
41
|
+
my $ldappw = "******"; ←ディレクトリマネージャーのパスワード
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
$ldapUidCmd = $(ldapsearch -x -D $binddn -w $ldappw -b $basedn '(objectClass=posixAccount)' -LLL |grep uidNumber: |cut -f 2 -d ' ' |sort -nr |head -n 1)
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
できればパスワードを求められない方法がいいのですが。
|
2
書式の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
質問です。
|
1
|
+
centos7でldapに関する質問です。
|
2
2
|
|
3
3
|
ldapのuidNumberの最大値を取得したいのですが
|
4
4
|
|
@@ -12,16 +12,16 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
https://www.dynobin.com/linux-find-max-uidnumber-on-ldap/
|
16
|
-
|
17
|
-
https://www.openldap.org/lists/openldap-software/200110/msg00539.html
|
18
|
-
|
19
|
-
|
20
|
-
|
21
15
|
で最大値uidNumber取得できないです。
|
22
16
|
|
23
17
|
どこか間違っていますか?
|
24
18
|
|
25
|
-
|
19
|
+
すいません。教えてください。
|
26
20
|
|
21
|
+
|
22
|
+
|
27
|
-
|
23
|
+
参考にしたURL
|
24
|
+
|
25
|
+
https://www.dynobin.com/linux-find-max-uidnumber-on-ldap/
|
26
|
+
|
27
|
+
https://www.openldap.org/lists/openldap-software/200110/msg00539.html
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,6 +22,6 @@
|
|
22
22
|
|
23
23
|
どこか間違っていますか?
|
24
24
|
|
25
|
-
またここの
|
25
|
+
またここのサイトでやり方のっているよとかでもいいのですいません。
|
26
26
|
|
27
27
|
教えてください。
|