3

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

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

4

2 に答える 2

1

私が見つけたところによると、この構成は 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")
于 2008-11-28T10:35:44.543 に答える
0

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

試す

realm = cmo.getSecurityConfiguration().getDefaultRealm()
myProvider = realm.createAuthenticationProvider("weblogic.security.providers.authentication.NovellAuthenticator")
于 2008-12-12T22:29:31.590 に答える