Error adding enforce-valid-basic-auth-credentials to config.xml

前端 未结 3 1404
感动是毒
感动是毒 2021-01-26 09:37

I tried adding

  false

inside the

3条回答
  •  孤独总比滥情好
    2021-01-26 09:59

    My answer comes probably too late to help you, but it may help other people.

    I met the same issue, and adding the 'enforce-valid-basic-auth-credentials' tag seems not to be enough.

    Then, I added this flag via WLST :

    connect('weblogicUser','weblogicPassword','t3://localhost:7001')
    edit()
    startEdit()
    cd('SecurityConfiguration/Your_Domain')
    set('EnforceValidBasicAuthCredentials','false')
    save()
    activate()
    

    (Do not forget to edit with your weblogicUser, weblogicPassword, weblogic url and your domain in the 'cd' command...)

    And after restarting my server, I looked in the config.xml file, and another tag has been added. Now, my config.xml file looks like that :

        .........
        false
        true
    
    ............
    

    But this use-kss-for-demo tag may depend on your weblogic configuration. So I strongly advise you to use the WSLT way to update this flag.

提交回复
热议问题