2013-10-11 3 views
1

WLST를 사용하여 보안 영역에 Weblogic 사용자를 구성하는 방법은 무엇입니까? 나는 웹 로직 도메인이

  1. 나는 웹 콘솔 기본 보안 영역 (myrealm)에 일부 사용자를 추가했습니다.
  2. 그런 다음 weblogic을 종료합니다.
  3. 이 도메인 디렉토리에서 readDomain (...) 인 오프라인 WLST 스크립트를 실행하고 template.jar이라는 writeTemplate (...) 템플릿을 만들었습니다.
  4. 다른 WLST 스크립트를 실행하여 템플릿에서 새 도메인을 만듭니다. jar
  5. 새로운 도메인을 시작합니다.

그런 다음 myrealm의 사용자가 누락되었습니다. weblogic 및 WLST를 처음 사용합니다. WLST는 사용자/암호를 템플릿으로 내 보내지 않았습니까? WLST로 보안 영역 사용자/암호를 미리 구성하려면 어떻게해야합니까? 따라서 수동으로 많은 사용자/암호를 만들 필요가 없습니다.

답변

0

Weblogic의 내장 LDAP 때문에 온라인 모드에서이 작업을 수행해야합니다.

Home >Summary of Security Realms >myrealm >Users and Groups>Migration tab

그리고 새 도메인으로 도메인과 수입의 수출을 : 당신이 가면 당신은 콘솔을 통해이 작업을 수행 할 수 있습니다.

connect('weblogic','weblogic', 't3://origDomain:7001') 
domainRuntime() 
cd('/DomainServices/DomainRuntimeService/DomainConfiguration/FirstDomain/SecurityConfiguration/FirstDomain/DefaultRealm/myrealm/AuthenticationProviders/DefaultAuthenticator') 
cmo.exportData('DefaultAtn','/tmp/your.ldif', Properties()) 

connect('weblogic','weblogic', 't3://newDomain:8001') 
domainRuntime() 
cd('/DomainServices/DomainRuntimeService/DomainConfiguration/SecondDomain/SecurityConfiguration/SecondDomain/DefaultRealm/myrealm/AuthenticationProviders/DefaultAuthenticator') 
cmo.importData('DefaultAtn','/app/userdata/abc.ldif', Properties()) 
:

은 같은 온라인 WLST 수행 할 수 있습니다