Appendix C. Scenario 3: Source code listings 371
&status
);
CHECK_STATUS (status, "sec_id_parse_name failed", ABORT);
/*
* Find out if the principal name that is returned by the server
* is a member of the directory_server group.
*/
is_member = sec_rgy_pgo_is_member (
rgy_handle,
sec_rgy_domain_group,
SERVER_GROUP,
princ_name,
&status
);
CHECK_STATUS (status, "is_member failed", ABORT);
/*
* We are done with the registry; we can release the rgy_handle now.
*/
sec_rgy_site_close(rgy_handle, &status);
CHECK_STATUS (status, "rgy_site_close failed", ABORT);
if (! is_member ) {
printf ("Found an invalid directory server\n");
exit(1);
}
/*
* Annotate binding handle for authentication.
*/
rpc_binding_set_auth_info(
binding_handle,
server ...