csattribute 公用程式只適用於 Schema 1 模式。它會管理 Calendar Server 使用者或資源 LDAP 項目屬性。指令包括︰
add,將 LDAP 屬性和值增加至指定目標 (使用者或資源物件)。
list,列出目標物件的屬性。
delete,從目標中刪除屬性。
如果您的網站使用的是 LDAP CLD 外掛程式,請勿在嘗試指定新的後端主機伺服器時使用 csattribute 變更 icsDWPHost 屬性。修改 icsDWPHost 不會在新的後端主機上建立新的行事曆。如需更多資訊,請參閱第 5 章, 在 Calendar Server 版本 6.3 中,將行事曆資料庫配置為分布在多台機器上
您必須使用 Schema 1。
Calendar Server 可以處於執行中或停止狀態。
您必須以執行 Calendar Server 的使用者或群組 (在安裝期間指定,例如 icsuser 和 icsgroup) 的身份或以 root 身份登入。
csattribute [-q|-v] -a attribute=value [-t resource | user] [-d domain] add target csattribute [-q|-v] -a attribute[=value] [-t resource | user] [-d domain] delete target csattribute [-q | -v] [-t resource | user] [-d domain] list target |
下表說明 csattribute 可用的指令。
表 D–2 csattribute 公用程式指令
指令 |
說明 |
---|---|
add target |
將 LDAP 屬性和值增加至指定目標 (使用者或資源物件)。 |
list target |
列出目標物件的屬性。 |
delete target |
從目標中刪除屬性。 |
version |
顯示公用程式的版本。 |
下表說明 csattribute 公用程式指令選項。
表 D–3 csattribute 公用程式指令選項
將值為 tchang 的 icsCalendar LDAP 屬性增加至使用者 ID tchang:
csattribute - a icsCalendar=tchang add tchang
從 tchang 中刪除 LDAP 屬性 icsCalendar:
csattribute -a icsCalendar delete tchang
顯示 tchang 的屬性:
csattribute list tchang