Turn off WebLogic basic authentication

Editing config.xml

To set the e enforce-valid-basic-auth-credentials flag, perform the following steps:

1. Add the element to config.xml within the element.

false



2. Start or restart all of the servers in the domain.

=============================================

Using WebLogic Scripting Tool (WLST)

Using WLST to Check the Value of enforce-valid-basic-auth-credentials

The Administration Console does not display or log the enforce-valid-basic-auth-credentials setting. However, you can use WLST to check the value in a running server. Remember that enforce-valid-basic-auth-credentials is a domain-wide setting.

The WLST session shown below demonstrates how to check the value of the enforce-valid-basic-auth-credentials flag in a sample running server.

Example:

wls:/offline> connect('weblogic','weblogic123','t3://localhost:7002')
Connecting to t3://localhost:7002 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'base_domain'.

Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

wls:/base_domain/serverConfig> cd('SecurityConfiguration')
wls:/base_domain/serverConfig/SecurityConfiguration> ls()
dr-- base_domain

wls:/base_domain/serverConfig/SecurityConfiguration> cd ('base_domain')
wls:/base_domain/serverConfig/SecurityConfiguration/base_domain> ls()

here are the command I used to edit the setting using
edit()
startEdit()
cd(‘SecurityConfiguration’)
cd('YOUR_DOMAIN')
set(‘EnforceValidBasicAuthCredentials’,'false’)
save()
activate()

留言

這個網誌中的熱門文章

Disable ionic's sidemenu content drag to toggle menu

Multiple writable mappings exist for the field. Only one may be defined as writable, all others must be specified read-only.

java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl$Parser