自作クラスタ計算機:openldapを使ったldapサーバの基本設定
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 自作クラスタ計算機:openldapを使ったldapサーバの基本設定 [2026/07/09 01:34] – [計算ノードでの作業] koudai | 自作クラスタ計算機:openldapを使ったldapサーバの基本設定 [2026/07/09 02:07] (current) – [LDAPクライアント] koudai | ||
|---|---|---|---|
| Line 234: | Line 234: | ||
| * LDAP server search base: dc=cluster, | * LDAP server search base: dc=cluster, | ||
| * Name services to configure: passwd, group, shadow (スペースキーでチェックを入れられます) | * Name services to configure: passwd, group, shadow (スペースキーでチェックを入れられます) | ||
| - | - 管理ノードでのみ実行< | + | - (管理ノードのみ)PAM(Pluggable Authentication Modules)の認証設定< |
| $ sudo pam-auth-update | $ sudo pam-auth-update | ||
| </ | </ | ||
| * 「LDAP Authentication」を有効化(通常は自動で有効化済み) | * 「LDAP Authentication」を有効化(通常は自動で有効化済み) | ||
| * Create home directory on login を有効化 | * Create home directory on login を有効化 | ||
| - | - nscd+nslcdを再起動< | + | - (管理ノードのみ)nscd+nslcdを再起動< |
| $ sudo systemctl restart nslcd nscd | $ sudo systemctl restart nslcd nscd | ||
| </ | </ | ||
| Line 250: | Line 250: | ||
| </ | </ | ||
| * uidとgidが見えます。 | * uidとgidが見えます。 | ||
| - | - ホストが反映されているか確認< | ||
| - | $ getent hosts | ||
| - | </ | ||
| - ユーザーに切り替えるには< | - ユーザーに切り替えるには< | ||
| $ su - taro | $ su - taro | ||
| Line 380: | Line 377: | ||
| netgroup: | netgroup: | ||
| </ | </ | ||
| - | - /etc/nslcd.confの最後にホスト検索ベースを追加<file - / | + | - nscd, nslcdの再起動<code> |
| - | (略) | + | $ sudo systemctl restart nslcd nscd |
| - | base hosts ou=hosts, | + | </code> |
| - | </file> | + | - ホストが反映されているか確認< |
| - | - nslcdの再起動< | + | $ getent hosts |
| - | $ sudo systemctl restart nslcd | + | |
| </ | </ | ||
自作クラスタ計算機/openldapを使ったldapサーバの基本設定.1783528448.txt.gz · Last modified: 2026/07/09 01:34 by koudai
