Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: rwessman@rwessman.us.oracle.com (Rick Wessman)
Subject: Difficulties with getting client information
Date: Tue, 3 Aug 1993 23:20:07 GMT	[thread overview]
Message-ID: <RWESSMAN.93Aug3162009@rwessman.us.oracle.com> (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


             reply	other threads:[~1993-08-03 23:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-03 23:20 Rick Wessman [this message]
1993-08-12 19:29 ` Difficulties with getting client information Rich Salz
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox