I’m trying to configure an admin account where only 1 client can access at the same time.
If two users each access the same control page at the same time can cause problems
Advanced Web Server
Toolkit describe a concept called realm locking but i’m not sure if i’m implementing it correctly… actually i’m sure that as i’m doing it’s not working ;).
Account creation:
NAsetSysAccess (NASYSACC_ADD, "admin", "admin", NASYSACC_LEVEL_HTTP_R1 | NASYSACC_LEVEL_RW, NULL);
Define security for realm HTTP_R1
void RpHSInitSecurityTable(void *serverdata)
{
NAHttpSetRealmSecurity (0, "NA-HTTP AWS Realm 1", NA_HTTP_SECURITY_SINGLE_ACCESS, NA_HTTP_SECURITY_BASIC_AUTHENTICATION);
}