StationMACs: IDomainStations;
The StationMACs property returns the collection of the MAC-addresses of the PCs, from which the user access is granted.
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.StationMACs.Add("00-14-85-5F-62-D4");
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 MAC-address "00-14-85-5F-62-D4" only.
See also: