GLPI Windows AD 同步腳本
Python & Bash 腳本記錄
GLPI&OCS Inventory
因 GLPI 在串 Windows AD 服務無法自動匯入使用者資訊,需手動處理同步,官方有提供指令方式來同步,我這邊一樣是用腳本方式來處理
執行過程
參考官方提供的 CLI 指令來進行修改
--only-create-new:僅建立新使用者
--only-update-existing:僅更新已存在的使用者
# 新增加使用者
php bin/console glpi:ldap:synchronize_users --ldap-server-id=1 --only-create-new
# 更新使用...