IsReadable

Indicates whether the NIS map in the attached zone is readable.

Syntax

bool IsReadable {get;}

Property value

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

Discussion

This property returns a value of true if the user accessing the map entry object in Active Directory has sufficient permissions to read the entry 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=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\^"  
'Open the generic map type named "Workstations IDs"  
Set map = store.open("Workstations IDs")  
'Check whether the map is readable  
if not map.IsReadable then  
wScript.Echo “No read permission. Quitting application ...”  
wScript.Quit  
end if  
...