WLSTオフラインを使用して、NovellAuthenticators(LDAP)をWeblogicに追加できますか?

StackOverflow https://stackoverflow.com/questions/320355

  •  11-07-2019
  •  | 
  •  

質問

Weblogicドメインを作成するためにWLSTスクリプトを作成したいと思います。ただし、LDAP構成の追加に問題があります。

cd("/SecurityConfiguration/myDomain")
cmo.createRealm("myrealm")

cd("/SecurityConfiguration/myDomain/Realms/myrealm")
cmo.createAuthenticationProvider("myLDAP", "weblogic.security.providers.authentication.NovellAuthenticator")

この時点ではSecurityConfigurationオブジェクトがないように見えるため、これは現在失敗しています。

No SecurityConfiguration object with name myDomain

この構成はオンラインで行う必要がありますか?他の回避策はありますか?

役に立ちましたか?

解決

私が発見したことから、この構成はWLST Onlineを使用して行う必要があります。

作成したスクリプトは次のようになります

connect("username", "password", "t3://ip:port");

edit()
startEdit()

create_AuthenticationProvider_54("/SecurityConfiguration/myDomain/Realms/myrealm", "value")
cd("/SecurityConfiguration/myDomain/Realms/myrealm")
cmo.createAuthenticationProvider("myLDAP", "weblogic.security.providers.authentication.NovellAuthenticator")

cd("/SecurityConfiguration/myDomain/Realms/myrealm/AuthenticationProviders/myLDAP")
set("GroupBaseDN", "value")
set("UserNameAttribute", "value")
set("StaticGroupObjectClass", "value")
set("UserBaseDN", "value")
set("UserObjectClass", "value")
set("AllGroupsFilter", "value")
set("Principal", "value")
set("UseRetrievedUserNameAsPrincipal", "value")
set("Host", "value")
set("StaticGroupDNsfromMemberDNFilter", "value")
set("StaticMemberDNAttribute", "value")
set("ControlFlag", "value")
set("UserFromNameFilter", "value")
set("Credential", "value")
set("GroupFromNameFilter", "value")

startEdit()
save()
activate(block="true")

他のヒント

私は常にオンラインを使用しますが、WLSTオフラインは、WebLogicに付属するセキュリティプロバイダーでは機能しますが、カスタムプロバイダーでは機能しません。もちろん、NovelAuthenticatorはWebLogicに付属しているため、動作するはずです。

試用

realm = cmo.getSecurityConfiguration().getDefaultRealm()
myProvider = realm.createAuthenticationProvider("weblogic.security.providers.authentication.NovellAuthenticator")
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top