Could you help me please ?

i want like this script:


if this (MAC Address) using-> this (username)
{
accept login;
}
else
{
deny login;
}


best regards…