IsWritable

Indicates whether the NIS map storage object is writable.

Syntax

bool IsWritable {get;}

Property value

Returns true if the map storage object is writable by the user, or false if the map storage object is not writable.

Discussion

This property returns a value of true if the user accessing the NIS map storage object in Active Directory has sufficient permissions to change the storage object’s properties.

Exceptions

IsWritable throws a COMException if there is an LDAP error. LDAP errors can occur if the connection to the LDAP server fails, the connection times out, invalid credentials are presented, or there are other problems communicating with Active Directory.

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=offshore,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, "tae.parker", "9days^"
'Check whether the map node is writable
if not store.IsWritable then
wScript.Echo “No write permission. Quitting application ...”
wScript.Quit
end if
...