set_object_field command to set the value for a specified field in the currently selected Active Directory object stored in memory. The
set_object_field command does not set a field value stored in Active Directory for this object.
If you change any fields, you must save the object using the save_object command for your changes to take effect in Active Directory. If you select another object or end the ADEdit session before saving the currently selected object, your changes will be lost.
set_object_field command does not check to see if fields and values are valid. When you save an object, Active Directory will check fields and values at that time and report an error if they aren’t valid.
set_object_field field value
This command takes no options.
This command takes the following arguments:
Required. Specifies the name of the field you want to set.
Required. Specifies the value to assign to the specified field. The data type depends on the specified field.
The set_object_field command does not check whether the value is valid. Active Directory will check for valid values when ADEdit saves the object.
This command returns nothing if it runs successfully.
set_object_field sd $sdvalue
This example sets the current object’s security descriptor field to the string contained in the variable
sdvalue (an SDDL string).
The following commands enable you to view and select Active Directory objects:
- get_objects performs an LDAP search of Active Directory and returns a Tcl list of the distinguished names of objects matching the specified search criteria.
- new_object creates a new Active Directory object and stores it in memory.
- select_object retrieves an object with its attributes from Active Directory and stores it in memory.
After you have an object stored in memory, you can use the following commands to work with that object:
- add_object_value adds a value to a multi-valued field attribute of the currently selected Active Directory object.
- delete_object deletes the selected Active Directory object from Active Directory and from memory.
- delete_sub_tree deletes an Active Directory object and all of its children from Active Directory.
- get_object_field reads a field value from the currently selected Active Directory object.
- remove_object_value removes a value from a multi-valued field attribute of the currently selected Active Directory object.
- save_object saves the selected Active Directory object with its current settings to Active Directory.