IMetabaseUser.StationIPs

Syntax

StationIPs: IDomainStations;

Description

The StationIPs property returns the collection of IP addresses of the computers, from which user access is granted.

Example

To execute the example, make sure that security manager contains the USER user.

Add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    User: IMetabaseUser;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    
// Set allowed IP address
    User := MS.ResolveName("USER"As IMetabaseUser;
    User.StationIPs.Add(
"10.0.2.158");
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example the access from the USER user will be allowed only from IP address 10.0.2.158. By default, the user is allowed to access the system from any workstations, IP and MAC addresses.

See also:

IMetabaseUser