From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: f678f,32592b4a392e5b46,start X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1993-08-03 16:28:42 PST Path: gmd.de!xlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!darwin.sura.net!haven.umd.edu!uunet!oracle!unrepliable!bounce Newsgroups: comp.unix.osf.misc From: rwessman@rwessman.us.oracle.com (Rick Wessman) Subject: Difficulties with getting client information Message-ID: Sender: usenet@oracle.us.oracle.com (Oracle News Poster) Nntp-Posting-Host: rwessman.us.oracle.com Organization: Oracle Corporation, Redwood Shores, CA Date: Tue, 3 Aug 1993 23:20:07 GMT X-Disclaimer: This message was written by an unauthenticated user at Oracle Corporation. The opinions expressed are those of the user and not necessarily those of Oracle. 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