2017年2月18日 星期六

Samba DC 使用指令修改 GPO 密碼原則

    Samba DC 可以用 RSAT 連線管理、修改群組原則,但發現<密碼原則>的套用一直有問題。
直接在 Samba DC 上用指令查看,發現用 RSAT 修改<密碼原則>後和在 Samba DC 用指令查詢的結果不同(不知是不是只有我有發生這個問題???)
下圖是原有的<密碼原則>預設值:
但其實我己經用 RSAT 連線修改過了:
看來是 RSAT 修改的沒有套用到 Samba DC 上。

只好直接在 Samba DC 上直接用指令修改:
samba-tool domain passwordsettings set --complexity=off    #是否啟用密碼複雜度
samba-tool domain passwordsettings set --history-length=0   #記錄幾組歷史密碼
samba-tool domain passwordsettings set --min-pwd-age=0    #最短密碼使用天數
samba-tool domain passwordsettings set --max-pwd-age=0   #最長密碼使用天數
samba-tool domain passwordsettings set --min-pwd-length=6   #密碼最少字元長度


沒有留言:

張貼留言

GPO policy 設定預設應用程式﹝設定預設關聯設定檔﹞

建立xml設定檔,並將其啟用 Computer Configuration\Administrative Templates\Windows Components\File Explorer 設定檔內容將會新增到User電腦regedit機碼位址 HKLM\Software\Po...