IsReadable
Indicates whether the NIS map storage object is readable.
Syntax
bool IsReadable {get;}
Property value
Returns true
if the map storage object is readable by the user, or false
if the
map storage object is not readable.
Discussion
This property returns a value of true if the user accessing the NIS map storage object in Active Directory has sufficient permissions to read its properties.
Exceptions
IsReadable
may throw one of the following exceptions:
-
ApplicationException
if the store entry cannot be located. -
COMException
if there is an error in a call to the underlying interface.
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 readable
if not store.IsReadable then
wScript.Echo “No read permission. Quitting application ...”
wScript.Quit
end if
...