IsWritable
Indicates whether the map entry is writable for the user credentials presented to connect to Active Directory.
Syntax
bool IsWritable {get;}
Property value
Returns true
if the map entry object is writable by the user, or false
if the
map entry object is not writable.
Discussion
This property returns a value of true
if the user accessing the map entry object
in Active Directory has sufficient permissions to change the entry object’s
properties.
Example
The following code sample illustrates using this property in a script:
...
'Specify the zone you want to work with
set objZone =
cims.GetZoneByPath("LDAP://CN=qa-slovenia,CN=unix,DC=quantum,DC=net")
'Create the Store object
Set store = CreateObject("Centrify.DirectControl.Nis.Store")
'Attach to the target zone
'Provide the path to the zone and username and password.
store.Attach objZone.ADsPath, "jae.smith", "pas\$w0rd"
'Open the generic map type named "Workstations IDs"
Set map = store.open("Workstations IDs")
'Get the map entry specified
Set entry = map.get("128.10.12.1")
'Check whether the record is writable
If not entry.IsWritable then
wScript.Echo “No write permission for this record”
end if
...