差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| linux:samba:samba_ad_member [2013/11/07 10:25] – [smb.confの設定] ともやん | linux:samba:samba_ad_member [2019/05/18 02:23] (現在) – 外部編集 非ログインユーザー | ||
|---|---|---|---|
| 行 14: | 行 14: | ||
| ===== authconfig による自動設定 ===== | ===== authconfig による自動設定 ===== | ||
| < | < | ||
| - | $ sudo authconfig --enablewinbind \ | + | $ sudo authconfig | 
| + |  | ||
| + | --enablemkhomedir \ | ||
| + | --enablewinbindauth | ||
| --krb5kdc=blue-dc.fireball.local, | --krb5kdc=blue-dc.fireball.local, | ||
| --krb5realm=FIREBALL.LOCAL --update | --krb5realm=FIREBALL.LOCAL --update | ||
| 行 26: | 行 29: | ||
| # Global parameters | # Global parameters | ||
| [global] | [global] | ||
| - |  | + |  | 
| - | server string = Samba Server Version %v | + | server string = Samba Server Version %v | 
| - | password server = blue-dc.fireball.local blue-dc2.fireball.local | + | password server = blue-dc.fireball.local blue-dc2.fireball.local | 
| - | realm = FIREBALL.LOCAL | + | realm = FIREBALL.LOCAL | 
| - | netbios name = BLUE-SV | + | netbios name = BLUE-SV | 
| - | security = ads | + | security = ads | 
| - | template shell = /bin/bash | + | |
| - | winbind use default domain = false | + | |
| - | winbind offline logon = true | + | |
| - | </ | + | |
| + | template shell = /bin/bash | ||
| + | template homedir = /home/%D/%U | ||
| + | obey pam restrictions = yes | ||
| + | |||
| + | idmap config *:backend = tdb | ||
| + | idmap config *:range = 100000-299999 | ||
| + | idmap config FIREBALL: | ||
| + | idmap config FIREBALL: | ||
| + | |||
| + | winbind trusted domains only = no | ||
| + | winbind use default domain = no | ||
| + | winbind offline logon = yes | ||
| + | winbind enum users = yes | ||
| + | winbind enum groups = yes | ||
| + | </ | ||
| + | ※もし、このサーバーが共有を提供している場合、obey pam restrictions = yesを記述すると共有の認証に失敗する。\\ | ||
| + | その場合は、obey pam restrictions = yesをコメントアウトする。\\ | ||
| ===== ActiveDirectoryに参加 ===== | ===== ActiveDirectoryに参加 ===== | ||
| < | < | ||