1

私は weblogic ドメインを持っています。

  1. Web コンソールを使用して、デフォルトのセキュリティ レルム (myrealm) に何人かのユーザーを追加しました。
  2. 次に、weblogic をシャットダウンします。
  3. そして、このドメイン ディレクトリから readDomain(...) を実行し、template.jar という名前の writeTemplate(...) でテンプレートを作成するオフライン WLST スクリプトを実行します。
  4. 別の WLST スクリプトを実行して、template.jar から新しいドメインを作成します。
  5. I 新しいドメインを起動します。

次に、myrealm のユーザーが見つからないことがわかりました。私は weblogic と WLST を初めて使用します。WLST がユーザー/パスワードをテンプレートにエクスポートしていないようです。セキュリティ レルムのユーザー/パスワードを WLST で事前構成するにはどうすればよいですか? 手動で多くのユーザー/パスワードを作成する必要はありませんか?

4

1 に答える 1

1

Weblogic の組み込み LDAP の性質上、オンライン モードでこれを行う必要があります。次の場所に移動すると、コンソールからこれを行うことができます。

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

ドメインをエクスポートして、新しいドメインにインポートします。

これは、次のようなオンライン wlst で実行できます。

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())
于 2013-10-11T15:00:15.227 に答える