Querying Security Configuration
Go Up to Querying the Services Manager
You can use the following items with isc_service_query()
to request information related to InterBase server security and user access.
Security configuration items | Purpose | Return length | Return value |
---|---|---|---|
|
The number of users permitted by the governor on the server. |
4 bytes |
Unsigned long |
|
The path to the security database on the server; for example, |
2 bytes + string |
String |
|
User information from the security database. |
See below |
See below |
|
The number of database attachments and databases currently active on the server. |
See below |
See below |
Querying using Services API: number of licensed users
. . .
case isc_info_svc_get_licensed_users: {
unsigned long nUsers;
p+= sizeof (unsigned short);
nUsers = (unsigned long)
isc_portable_integer(p, sizeof (unsigned long));
printf ("Number of licensed users: %d\n", nUsers);
p += sizeof(unsigned long);
break;
}
. . .
Querying using Services API: location of the security database
. . .
case isc_info_svc_user_dbpath: {
path_length = (unsigned short)
isc_portable_integer (p, sizeof(unsigned short));
p += sizeof (unsigned short);
buffer = (char*) malloc (path_length);
strncpy (buffer, p, path_length);
buffer [path_length] = '\0';
printf ("Path to admin.ib: %s\n", buffer);
p += path_length;
break;
}
. . .