Security Guide for XML-Based Data Archiving
Security Guide for XML-Based Data Archiving
XML-based archiving relies on the XML Data Archiving Service (XML DAS), which is part of a standard Application
Server Java (AS Java) installation. If an application wants to use XML DAS it can do so with the help of an XML
DAS Connector for either ABAP or JAVA, depending on its requirements. This documentation deals with the security
aspects for new XML-based ABAP archiving objects and JAVA-implemented archiving sets that communicate with
the AS Java’s XML DAS.
The divisions shown in the figure are conceptual and are meant to clarify the different elements involved
in XML-based archiving. In a realistic scenario it is entirely possible that the ABAP and the JAVA
elements run within one SAP NW AS system, or even that the AS Java of which the XML DAS is a
part, is also installed on the same SAP NW AS system. Likewise, the figure does not mean to imply
that a WebDAV system and a file system both have to be installed for XML-based archiving. It is
possible to be using only one of the two to store archive files.
From a security point of view, the interfaces shown in the figure can be described as follows:
● Interfaces 1 and 1J: End users and data archiving administrator(s) accessing the ABAP or JAVA application
systems.
● Interfaces 2 and 2J: Communication interface between the ABAP or JAVA application system and the AS
Java system hosting XML DAS.
● Interface 3: User interface for XML DAS administrator(s).
● Interface 4: WebDAV interface between XML DAS and the external WebDAV-enabled storage system
(WebDAV system).
1 of 5 22/09/2010 12:22
Security Guide for XML-Based Data Archiving (SAP Library - SAP N... http://help.sap.com/saphelp_nw70/helpdata/en/b7/d5d63f93cb0c65e10...
● The end user and the data archiving administrator of the local application system (interfaces 1 and 1J).
End user security is handled application-specifically, meaning that access to archived data is restricted
according to archiving-object-specific or archiving-set-specific authorizations. The main task of the data
archiving administrator is to configure, schedule and monitor the archiving process. However, if enabled by
applications, administrators can also be allowed to display archived data in a technical form. The user names
are not predefined.
For the ABAP data archiving administrator, the system checks the following:
○ Does the logged-in user have the authorizations required by authorization object S_ARCHIVE to start
Archive Administration (transaction SARA) and to work with the chosen archiving object? For more
information about S_ARCHIVE, see User Authorization Checks under the ADK documentation.
○ Is the logged-in user allowed to display archived resources from archive management in transaction
SARA, according to the application-specific authorizations documented by the corresponding XML
archiving object? These authorizations are checked using the BAdI XML_DAS_AUTH_CHECK.
○ The S_ARCHIVE authorization object is also used by the XML archive API to check that the user has
the correct authorization to perform an action. This means that even if the XML archiving programs are
scheduled externally (outside of transaction SARA) the same S_ARCHIVE checks take place.
For current JAVA archiving sets, an application-independent local archive administration has not yet
been released. Consult the documentation of the archiving sets you are using.
2 of 5 22/09/2010 12:22
Security Guide for XML-Based Data Archiving (SAP Library - SAP N... http://help.sap.com/saphelp_nw70/helpdata/en/b7/d5d63f93cb0c65e10...
● Interface 2 and 2J: You can use any of the HTTP authentication methods supported by the participating
client system (the system hosting the XML DAS Connector) and the AS Java, such as Basic Authentication,
Basic Authentication with SSL (HTTPS), or Client Certification.
The technical communication users must be known to the AS Java and must have been assigned to the
security role XMLDASSecurityRole. You can assign the role in the Visual Administrator:
...
○ Creating an HTTP destination for XML DAS using transaction SM59 (applicable for XML archiving
objects in the ABAP environment):
○ Creating an HTTP Destination for XML DAS using the destination service of the AS Java (applicable
for archiving sets in the JAVA environment):
...
...
...
1. Create a new destination as described above. Make sure that you enter the SSL-Port in the
URL (for example 50001 instead of 50000).
3 of 5 22/09/2010 12:22
Security Guide for XML-Based Data Archiving (SAP Library - SAP N... http://help.sap.com/saphelp_nw70/helpdata/en/b7/d5d63f93cb0c65e10...
● Interface 4: An HTTP destination is used to connect the XML DAS to the an external WebDAV server. For
more information on creating HTTP destinations, see Creating Destinations under Configuring the XML
Data Archiving Service of the Configuration Guide.
● Interface 5: If you decide to store your resources in a file system that is accessible from the AS Java, you
can do so by specifying the directory using the XML DAS administration (function Define Archive Stores).
Users
The following table is a summary of users needed for XML Archiving:
System User(s) Delivered Type Default Password
XML Data has to be defined in SAP NW No Individual (has to be defined in
Archiving Service AS and assigned to roles administrator(s) SAP NW AS)
Administrator(s) SAP_ARCH_XML_DAS_VIEW
(AS Java) (read)
SAP_ARCH_SUPERADMIN
(read/write/execute)
XML Data has to be defined in SAP NW No Technical user(s) (has to be defined in
Archiving Service AS and assigned to security SAP NW AS)
Communication role XMLDASSecurityRole
(AS Java)
WebDAV System has to be defined in the No Technical user (has to be defined in
connected to a WebDAV server itself and WebDAV server itself
AS Java made part of the HTTP and made part of the
destination used to connect to HTTP destination
the WebDAV server) used to connect to
the WebDAV server)
To prevent unauthorized access or harmful alteration or deletion of resources or directories in the file
system, give the appropriate access privileges only to SAPService<sid> or <sid>adm, respectively.
Do not manually create or delete directories or files once the archive store root directory is fixed.
In order to verify (on read request) that the content of archived resource has not changed, SAP recommends that
you use the check sum option.
In ABAP you can find this function in Archive Administration (transaction SARA) by choosing Customizing ®
Configuration of the XML DAS: Check Sum
4 of 5 22/09/2010 12:22
Security Guide for XML-Based Data Archiving (SAP Library - SAP N... http://help.sap.com/saphelp_nw70/helpdata/en/b7/d5d63f93cb0c65e10...
5 of 5 22/09/2010 12:22