Enabling Debugging Using the WebLogic Scripting Tool Sending Debug Messages to Standard Out

Configuring Single Sign-On with Web Browsers and HTTP Clients 7-23 8. To activate these changes, in the Change Center of the Administration Console, click Activate Changes see Use the Change Center. Changes to SAML debug scopes and attributes take effect immediately — no restart is necessary. Using the Administration Console to enable or disable SAML debugging is dynamic and can be used while the server is running. For more information, see Define debug settings in the Oracle WebLogic Server Administration Console Help.

7.4.4 Enabling Debugging Using the WebLogic Scripting Tool

You can use the WebLogic Scripting Tool WLST to configure SAML debugging attributes. For example, the following command runs a program for setting debugging attributes called debug.py: java weblogic.WLST debug.py The debug.py program contains the following code, which enables debugging for the attribute DebugSecuritySAMLAtn. user=user1 password=password url=t3:localhost:7001 connectuser, password, url edit cdServersmyserverServerDebugmyserver startEdit setDebugSecuritySAMLAtn,true save activate Note that you can also use WLST from Java. The following example shows the source file of a Java program that sets the DebugSecuritySAMLAtn debugging attribute: import weblogic.management.scripting.utils.WLSTInterpreter; import java.io.; import weblogic.jndi.Environment; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; public class test { public static void mainString args[] { try { WLSTInterpreter interpreter = null; String user=user1; String pass=pw12ab; String url =t3:localhost:7001; Environment env = new Environment; env.setProviderUrlurl; env.setSecurityPrincipaluser; env.setSecurityCredentialspass; Context ctx = env.getInitialContext; interpreter = new WLSTInterpreter; interpreter.exec connect+user+,+pass+,+url+; interpreter.execedit; interpreter.execstartEdit; interpreter.exec cdServersmyserverServerDebugmyserver; interpreter.execsetDebugSecuritySAMLAtn,true; 7-24 Securing Oracle WebLogic Server interpreter.execsave; interpreter.execactivate; } catch Exception e { System.out.printlnException +e; } } } Using the WLST is a dynamic method and can be used to enable debugging while the server is running.

7.4.5 Sending Debug Messages to Standard Out

Messages corresponding to enabled debug attributes are sent to the server log file. Optionally, you can also send debug messages to standard out by passing the StdoutSeverity=Debug attribute on the LogMBean in the command to start WebLogic Server. For example, -Dweblogic.log.StdoutSeverity=Debug. For more information, see Message Output and Logging in Command Reference for Oracle WebLogic Server. 8 Migrating Security Data 8-1 8 Migrating Security Data You can export security data from one security realm or security provider and import the data into another realm or provider. The following sections provide information about exporting and importing security data. ■ Section 8.1, Overview of Security Data Migration