IMetabaseUser.StationIPs

Syntax

StationIPs: IDomainStations;

Description

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

Example

Executing the example requires a form, a button named Button1 on this form.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

MB: IMetabase;

Sec: IMetabaseSecurity;

m_User: IMetabaseUser;

Begin

MB := MetabaseClass.Active;

Sec := MB.Security;

m_User := Sec.ResolveName("ADMIN") As IMetabaseUser;

m_User.StationIPs.Add("10.0.2.158");

Sec.Apply;

End Sub Button1OnClick;

By default the user can access the system from any workstation, IP and MAC-addresses. On clicking the button, the ADMIN user is granted the access from the IP-address "10.0.2.158" only.

See also:

IMetabaseUser