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