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. 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

Leave a Reply