* Difficulties with getting client information
@ 1993-08-03 23:20 Rick Wessman
1993-08-12 19:29 ` Rich Salz
0 siblings, 1 reply; 2+ messages in thread
From: Rick Wessman @ 1993-08-03 23:20 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2327 bytes --]
I'm having a problem with getting client attributes. The code is the following:
rpc_binding_inq_auth_client(h,
&privs,
&server_princ_name,
&protect_level,
&authn_svc,
&authz_svc,
status);
switch(authz_svc)
{
case rpc_c_authz_name:
sprintf (server_reply, "CLIENT: \"%s\"", (unsigned_char_t *) privs);
break;
case rpc_c_authz_dce:
dce_sec_privs = (sec_id_pac_t *)privs;
sprintf (server_reply, "DCE SECURITY CLIENT %s",
dce_sec_privs->principal.name );
break;
}
If the service returned is rpc_c_authz_name, privs contains a pointer to
the client's name. However, if the service returned is rpc_c_authz_dce,
the sec_id_pac_t structure looks like this:
{pac_type = sec_id_pac_format_v1,
authenticated = 1,
realm = {uuid = {
time_low = 3562440, time_mid = 22677, time_hi_and_version = 7230,
clock_seq_hi_and_reserved = 135 '\207', clock_seq_low = 133 '\205',
node = 0x0 "\213�\005|\000"},
name = 0x0
},
principal = {uuid = {
time_low = 109, time_mid = 39155, time_hi_and_version = 11350,
clock_seq_hi_and_reserved = 139 '\213', clock_seq_low = 0 '\000',
node = 0x0 "\213�\005|\000"},
name = 0x0
},
group = {uuid = {
time_low = 12, time_mid = 22677, time_hi_and_version = 11326,
clock_seq_hi_and_reserved = 135 '\207', clock_seq_low = 1 '\001',
node = 0x0 "\213�\005|\000"},
name = 0x0},
num_groups = 1,
num_foreign_groups = 0,
groups = 0x26e568,
foreign_groups = 0x0
}
The data looks reasonable, but obviously the strings are not filled in.
Is this a bug or am I doing something wrong? Any help would be appreciated.
Thanks,
Rick
Rick Wessman
Network Products Division
Oracle Corporation
rwessman@us.oracle.com
--
Thanks,
Rick
Rick Wessman
Network Products Division
Oracle Corporation
rwessman@us.oracle.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1993-08-12 19:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-03 23:20 Difficulties with getting client information Rick Wessman
1993-08-12 19:29 ` Rich Salz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox