The csattribute utility only works in Schema version 1 mode. It manages Calendar Server user or resource LDAP entry attributes. Commands are:
add an LDAP attribute and value to a specified target (user or resource object).
list the attributes of a target object.
delete an attribute from a target.
If your site is using the LDAP CLD plug-in, do not use csattribute to change the icsDWPHost attribute when trying to specify a new back-end host server. Modifying icsDWPHost does not cause a new calendar to be created on the new back-end host. For more information, see Chapter 5, Configuring Calendar Database Distribution Across Multiple Machines in Calendar Server Version 6.3
You must be using Schema version 1.
Calendar Server can be running or stopped.
You must be logged in as the user or group under which Calendar Server is running (such as icsuser and icsgroup) that was specified during installation, or as 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 |
The following table describes the commands available for csattribute.
Table D–2 csattribute Utility Commands
Command |
Description |
---|---|
add target |
Adds an LDAP attribute and value to a specified target (user or resource object). |
list target |
Lists the attributes of a target object. |
delete target |
Deletes an attribute from a target. |
version |
Displays the version of the utility. |
The following table describes the csattribute utility command options.
Table D–3 csattribute Utility Command Options
Add the icsCalendar LDAP attribute with the value tchang to the user ID tchang:
csattribute -a icsCalendar=tchang add tchang
Delete the LDAP attribute icsCalendar from tchang:
csattribute -a icsCalendar delete tchang
Display the attributes of tchang:
csattribute list tchang