Document revision date: 5 July 2000
[Compaq] [Go to the documentation home page] [How to order documentation] [Help on this site] [How to contact us]
[OpenVMS documentation]

Compaq DCE for OpenVMS VAX and OpenVMS Alpha
Reference Guide


Previous Contents Index


rpc_binding_inq_auth_client

This routine returns authentication and authorization information from the binding handle for an authenticated client. It is used by server applications.

Syntax


#include <dce/rpc.h> 
#include <dce/id_base.h> 
 
void rpc_binding_inq_auth_client( 
        rpc_binding_handle_t binding, 
        rpc_authz_handle_t *privs, 
        unsigned_char_t **server_princ_name, 
        unsigned32 *protect_level, 
        unsigned32 *authn_svc, 
        unsigned32 *authz_svc, 
        unsigned32 *status); 
 


Arguments

INPUT

binding

Specifies the client binding handle from which to return the authentication and authorization information.

OUTPUT

privs

Returns a handle to the authorization information for the client that made the remote procedure call on binding.

The server must cast this handle to the data type specified by authn_svc and authz_svc.

If the authn_svc is rpc_c_authn_winnt the return value must be cast to an (unsigned_char_t *). When the authn_svc is rpc_c_authn_winnt the return value is the domain and username of the client that made the request. The string is in the form of \\domain_name\user_name. If the domain name is not obtainable then just the username will be returned (with no slashes).

If the authn_svc is rpc_c_authn_dce_secret, the following table shows how to cast the return value.
Casts for Authorization Information
For authz_svc value: privs contains this data: Use this cast:
rpc_c_authz_none A NULL value. None
rpc_c_authz_name The calling client's principal name. (unsigned_char_t *)
rpc_c_authz_dce The calling client's privilege attribute certificate. (sec_id_pac_t *)

Note that rpc_c_authz_none is valid only if the authn_svc parameter is rpc_c_authn_none or rpc_c_authn_winnt.

The data referenced by this parameter is read-only and should not be modified by the server. If the server wants to preserve any of the returned data, it must copy the data into server- allocated memory.

Specifying NULL prevents the routine from returning this parameter.

server_princ_name

If authz_svc is rpc_c_authn_dce_secret, this parameter returns a pointer to the server principal name specified by the client that made the remote procedure call on binding.

If authz_svc is rpc_c_authn_winnt, this parameter returns a pointer to the server principal name specified by the server when it called rpc_server_register_auth_info().

The content of the returned name and its syntax is defined by the authentication service in use. Specifying NULL prevents the routine from returning this parameter. In this case, the caller does not have to call the rpc_string_free() routine.

protect_level

Returns the protection level requested by the client that made the remote procedure call on binding. The protection level determines the degree to which authenticated communications between the client and the server are protected. Specifying NULL prevents the routine from returning this parameter.

The possible protection levels are as follows:

authn_svc

Returns the authentication service requested by the client that made the remote procedure call on binding. Specifying NULL prevents the routine from returning this parameter.

The possible authentication services are as follows:

authz_svc

Returns the authorization service requested by the client that made the remote procedure call on binding. Specifying NULL prevents the routine from returning this parameter.

The possible authorization services are as follows:

status

Returns the status code from this routine. This status code indicates whether the routine completed successfully or, if not, why not.

The possible status codes and their meanings are as follows:


Description

The rpc_binding_inq_auth_client() routine returns authentication and authorization information associated with the client identified by binding. The calling server manager routine can use the returned data for authorization purposes.

The RPC runtime allocates memory for the returned server_princ_name parameter. The server is responsible for calling the rpc_string_free() routine for the returned parameter string.

For applications in which the client side uses the IDL auto_handle or implicit_handle attribute, the server side needs to be built with the IDL explicit_handle attribute specified in the Attribute Configuration File (ACF). Using explicit_handle provides binding as the first parameter to each server manager routine.


Return Values

No value is returned.

See Also

rpc_binding_inq_auth_info(3rpc)
rpc_binding_set_auth_info(3rpc)
rpc_string_free(3rpc)


Chapter 10
DCL Command Interfaces to DCE Tools

This chapter provides DCL syntax and usage information for the Interface Definition Language (IDL) compiler and the Universal Unique Identifier Generator (UUIDGEN) utility.

10.0.1 IDL Compiler

This section provides DCL syntax for commands to the IDL compiler. Except where noted, IDL DCL command syntax is equivalent to the IDL universal command syntax documented in the idl(1rpc) section of the Compaq DCE Application Development Reference. See the reference documentation for a complete description of the IDL universal command syntax.

NAME

IDL --- Invokes the Interface Definition Language (IDL) compiler.

SYNOPSIS

IDL filename [qualifier]...

QUALIFIERS

/CLIENT_FILES [=(option[,...])]
/NOCLIENT_FILES
Specify one or more of the following options:
ALL (default)
[NO]AUXILIARY [=filename]
NONE
[NO]STUB [=filename]
This qualifier is equivalent to the -client argument in the universal syntax.

/SERVER_FILES [=(option[,...])]
/NOSERVER_FILES

Specify one or more of the following options:
ALL (default)
[NO]AUXILIARY [=filename]
NONE
[NO]STUB [=filename]
This qualifier is equivalent to the -server argument in the universal syntax.

/INCLUDE_DIRECTORY [=directory[,...])] (default)
/NOINCLUDE_DIRECTORY

This qualifier is equivalent to the -Idirectory and -no_def_idir arguments in the universal syntax.

/PREPROCESS
/NOPREPROCESS (default)

This qualifier is similar to the -cpp_cmd 'c_preprocessor_command_line' and -no_cpp arguments in the universal syntax. However, /PREPROCESS does not accept a value (the compiler to handle the preprocessing), while the -cpp_cmd option does accept a value. You cannot use the /PREPROCESS qualifier to compile applications requiring the preprocessor on systems without a CC compiler. Use the C++ compiler unless the universal syntax is used.

/DEFINE [=(identifier[=definition][,...])]
/NODEFINE (default)

This qualifier is equivalent to the -D name[=definition] argument in the universal syntax.

/UNDEFINE [=(identifier[,...])]
/NOUNDEFINE (default)

This qualifier is equivalent to the -Uname argument in the universal syntax.

/SYNTAX_ONLY
/NOSYNTAX_ONLY (default)

This qualifier is equivalent to the -syntax_only argument in the universal syntax.

/OPTIMIZE [={SPEED | SPACE }]
/OPTIMIZE = SPEED (default)

This qualifier is equivalent to the -space_opt argument in the universal syntax.

/OUTPUT_DIRECTORY [=directory]
/NOOUTPUT_DIRECTORY (default)

This qualifier is equivalent to the -out directory argument in the universal syntax.

/HEADER_FILE = filename
/HEADER_FILE=filename.H (default)

This qualifier is equivalent to the -header header_file argument in the universal syntax.

/KEEP [=option]
/NOKEEP

Specify one of the following options:
ALL
C_SOURCE
NONE (equivalent to /NOKEEP)
OBJECT (default)
This qualifier is equivalent to the -keep file_types argument in the universal syntax.

/CC_COMMAND [="command-line"]
/NOCC_COMMAND
/CC_COMMAND="CC/G_FLOAT/STANDARD=NOPORTABLE" (default)

This qualifier is equivalent to the -cc_cmd 'command_line' argument in the universal syntax.

/CC_QUALIFIERS [="command-qualifiers"]
/NOCC_QUALIFIERS (default)

This qualifier is equivalent to the -cc_opt 'command_options' argument in the universal syntax.

/REPAIR [=(option[,...])]
/NOREPAIR

Specify one or more of the following options:
ALL (default)
[NO]BOOLEAN_CONSTANTS
[NO]EXTRA_PAD_BYTES
[NO]MISSING_PAD_BYTES
NONE
This qualifier is equivalent to the -bug n and -no_bug n arguments in the universal syntax. The values [NO]MISSING_PAD_BYTES, [NO]EXTRA_PAD_BYTES, and [NO]BOOLEAN_CONSTANTS correspond to -bug 1, -bug 2, and -bug 3, respectively, in the universal syntax.

/VERIFY
/NOVERIFY (default)

This qualifier is equivalent to the -confirm argument in the universal syntax.

/WARNINGS (default)
/NOWARNINGS

This qualifier is equivalent to the -no_warn argument in the universal syntax.

/LOG
/NOLOG (default)

This qualifier is equivalent to the -v argument in the universal syntax.

/LANGUAGE [={CC | FORTRAN}]
/LANGUAGE=CC (default)
/LANGUAGE=CXX

This qualifier is equivalent to the -lang argument in the universal syntax.

/STANDARD [={[NO]PORTABLE | DCE_V10 | DEC_V10 | DCE_V103 | DCE_V13 | DCE_V11 | DCE_V20 | EXTENDED}]
/STANDARD=PORTABLE (default)

This qualifier is equivalent to the -standard [standard_type] argument in the universal syntax. This universal syntax argument is documented in the section that describes IDL compiler enhancements in the Compaq DCE for OpenVMS VAX and OpenVMS Alpha Product Guide.

/DIAGNOSTICS [=filename]
/NODIAGNOSTICS (default)

This qualifier requests that a diagnostic file listing the errors reported by a compilation be generated for LSE. If you do not specify a filename, the compiler uses the basename of the IDL file and appends the .DIA extension to it.

/ENTRY_POINT_VECTOR [=(option[,...])]
/NOENTRY_POINT_VECTOR
/ENTRY_POINT_VECTOR=(NOCLIENT, MANAGER) (default)

Specify one or more of the following options:
ALL
[NO]CLIENT
[NO]MANAGER
NONE
This qualifier provides a function similar to those of the -cepv and -no_mepv arguments in the universal syntax.
The /ENTRY_POINT_VECTOR command qualifier controls generation of the client and manager entry point vectors through the keywords CLIENT and MANAGER. In the universal command syntax, two separate idl options (-cepv and -no_mepv) control generation of the client and manager entry point vectors.
The following example generates both client and manager entry point vectors using the universal command syntax:
$ idl fpe_server.idl -cepv
The equivalent DCL command is as follows:
$ idl fpe_server.idl /ENTRY_POINT_VECTOR=(CLIENT,MANAGER)
If one or more options are specified, the DCL syntax requires you to specify all required options. Options that are not listed are not enabled.

/TRACE [=(option\italic)[,...])]
/NOTRACE (default)

Specify one or more of the following options:
[NO]LOG_MANAGER
EVENTS=({ALL|CALLS|CONTEXT_HANDLES|ERRORS|NONE |MISCELLANEOUS}[,...])
This qualifier is equivalent to the -trace value argument in the universal syntax, which is documented in the Compaq DCE for OpenVMS VAX and OpenVMS Alpha Product Guide.

/VERSION
/NOVERSION (default)

This qualifier is equivalent to the -version argument in the universal syntax.

10.0.2 UUID Generator Utility

This section provides DCL syntax for the UUID generator utility. UUIDs may also be generated by using the uuid create command on the dcecp command line. Refer to the OSF DCE Command Reference Manual for additional information.

Except where noted, DCL commands are equivalent to the universal command syntax documented in the Compaq DCE Application Development Reference. See the reference documentation for a complete description of the universal command syntax interface to the UUID generator utility.

You can choose to use either the universal interface to the UUID generator utility or the DCL-style alternative.

NAME

IDENTIFIER/TRANSLATE --- Translates a DECrpc Version 1 or 1.1 UUID to a DCE RPC UUID.

SYNOPSIS

IDENTIFIER/TRANSLATE old-style-uuid [qualifier]...

QUALIFIERS

/OUTPUT=filename
/OUTPUT=SYS$OUTPUT (default)
This qualifier, used with a filename, directs output to a file. If you do not specify a filename, the converted UUID goes to SYS$OUTPUT, generally your display terminal.

NAME

IDENTIFIER/GENERATE --- Generates one or more DCE RPC UUIDs.

SYNOPSIS

IDENTIFIER/GENERATE [qualifier]
QUALIFIERS
/FORMAT=[option]
Specify one of the following options.
STRING (default)
STRING Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
This is a raw UUID in its readable form.
IDL
IDL Format:


[ 
[uuid(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)]
version(1.0) 
] 
interface INTERFACENAME 
{ 
} 

This is a UUID as it appears syntactically in an RPC interface definition.

STRUCT

STRUCT Format: This is an initialized C structure declaration, which can be included in C code that is used with DCE RPC.

/COUNT=n

This qualifier specifies the number of UUID strings to be generated. If you do not specify a number for n, the number 1 is used by default.

/OUTPUT=filename
/OUTPUT=SYS$OUTPUT (default)

This qualifier, used with a filename, directs output to a file. If you do not specify a filename, the converted UUID goes to SYS$OUTPUT, generally your display terminal.


Index Contents

  [Go to the documentation home page] [How to order documentation] [Help on this site] [How to contact us]  
  privacy and legal statement  
6533_DCE_REF_PRO_010.HTML