Querying Security Configuration

From InterBase

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.

Services API security configuration query items
Security configuration items Purpose Return length Return
value

isc_info_svc_get_licensed_users

The number of users permitted by the governor on the server.

4 bytes

Unsigned long

isc_info_svc_user_dbpath

The path to the security database on the server; for example, /usr/interbase/admin.ib.

2 bytes + string

String

isc_info_svc_get_users

User information from the security database.

See below

See below

isc_info_svc_svr_db_info

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;
}
. . .

Topics

Advance To: