Novellauthenticators (LDAP)가 WLST 오프라인을 사용하여 Weblogic에 추가 할 수 있습니까?
문제
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")
다른 팁
나는 항상 온라인으로 사용하지만 오프라인은 Weblogic과 함께 제공되는 보안 제공 업체와 협력하지만 사용자 정의 제공 업체와는 다릅니다. 물론, 소설은 웹 로그와 함께 제공되므로 작동해야합니다.
노력하다
realm = cmo.getSecurityConfiguration().getDefaultRealm()
myProvider = realm.createAuthenticationProvider("weblogic.security.providers.authentication.NovellAuthenticator")
제휴하지 않습니다 StackOverflow