|
Sample: Web Application (HelloUserWikExample)
Step 3: Create a Privileged User
To obtain the user's name, the HelloUserWikExample application
uses SAS Foundation Services to access remote session information
that was created by the portal Web application. Specific credentials are required to access the remote session information.
You should set up a privileged user account specifically for this purpose. Use
these steps to create the privileged user and give it access
to the remote session context:
-
Log on to SAS Management Console as the SAS Administrator,
and use the User Manager plug-in to create a user definition
and initial login definition for the privileged user.
-
Add the privileged user to the SAS System Services group.
Membership in this group provides ReadMetadata
access to all objects in the metadata repository.
-
Specify the privileged user in the user service of the
HelloUserWikExample application's local service deployment,
as follows:
-
If you are using the SAS Metadata Server to store
local and remote service deployment configurations,
then you can use SAS Management Console to update
the user service deployment that you created in Step
2 for the HelloUserWikExample application. For
instructions, see Modifying
the Session and User Service Configurations in
the SAS Integration Technologies: Administrator's
Guide.
-
If you are using XML files to store local and remote
service deployment configurations, then update the
UserService element of the HelloUserWikExample
application's local deployment definition file (for
example, sas_services_hellouser_local_omr.xml )
that you created in Step
2 .
To determine the encoded form of the password, start
a SAS session and submit the following code in the
Program Editor:
proc pwencode in=’xxxxxx’;
run;
where xxxxx is the unencoded password. Copy
the resulting text from the SAS log to the deployment
definition file.
-
Specify the privileged user in the context-param
element of the HelloUserWikExample's web.xml
file, as described in Step
4.
|