Import and Export users from Embedded LDAP using WLST

Export

connect(‘weblogic’,’weblogic’, ‘t3://localhost:8003′)
domainRuntime()
cd(‘/DomainServices/DomainRuntimeService/DomainConfiguration/DomainA/SecurityConfiguration/DomainA/DefaultRealm/myrealm/AuthenticationProviders/DefaultAuthenticator’)
cmo.exportData(‘DefaultAtn’,’c:/export.ldif’, Properties())

Import

connect(‘weblogic’,’weblogic’, ‘t3://localhost:8003′)
domainRuntime()
cd(‘/DomainServices/DomainRuntimeService/DomainConfiguration/DomainB/SecurityConfiguration/DomainB/DefaultRealm/myrealm/AuthenticationProviders/DefaultAuthenticator’)
cmo.importData(‘DefaultAtn’,’c:/export.ldif’, Properties())

6 comments

  1. How to import if the Authenticator is a customized one which connects to Database??

    1. I am sorry, but you question is not very clear.
      What do you want to achieve?

  2. How can I export JDBC, JMS and Work Managers configurations from one domain to another domain using WLST?

    1. Hi Ram,

      You can create a domain template and create a new domain from that template.

      Thanks

  3. Export

    connect(‘weblogic’,’weblogic’, ‘t3://localhost:8003′)
    domainRuntime()
    cd(‘/DomainServices/DomainRuntimeService/DomainConfiguration/DomainA/SecurityConfiguration/DomainA/DefaultRealm/myrealm/AuthenticationProviders/DefaultAuthenticator’)
    cmo.exportData(‘DefaultAtn’,’c:/export.ldif’, Properties())

    Above code not working for exporting users to a file, can you please suggest how to resolve the issue:

    File “”, line 164, in cd
    File “”, line 553, in raiseWLSTException
    WLSTException: Error cding to the MBean

Comments are closed.