Description Syntax Examples reassociateSecurityStore

4-72 Oracle Fusion Middleware WebLogic Scripting Tool Command Reference

4.6.17.3 Example

The following invocation adds a credential to the bootstrap credential store: wls:mydomainserverConfig addBootStrapCredentialjpsConfigFile=.jps-config.xml, map=myMapName, key=myKeyName, username=myUser, password=myPassword

4.6.18 reassociateSecurityStore

Online command that migrates the policy and credential stores to an LDAP repository.

4.6.18.1 Description

Migrates, within a give domain, both the policy store and the credential store to a target LDAP server repository. The only kinds of LDAP servers allowed are OID or OVD. This command also allows setting up a policy store shared by different domains see optional argument join below. In the event of an error, the command returns a WLSTException. This command runs in interactive mode only.

4.6.18.2 Syntax

reassociateSecurityStoredomain, admin, password, ldapurl, servertype, jpsroot [, join] Argument Definition jpsConfigFile Specifies the location of the file jps-config.xml relative to the location where the command is run. map Specifies the map of the credential to add. key Specifies the key of the credential to add. username Specifies the name of the user in the credential to add. password Specifies the password of the user in the credential to add. Argument Definition domain Specifies the domain name where the reassociating takes place. admin Specifies the administrators user name on the LDAP server. The format is cn=usrName. password Specifies the password associated with the user specified for the argument admin. ldapurl Specifies the URI of the LDAP server. The format is ldap:host:port, if you are using a default port, or ldaps:host:port, if you are using a secure LDAP port. The secure port must be configured specially for this function and it is distinct from the default non-secure port. servertype Specifies the kind of the target LDAP server. The only valid types are OID or OVD. jpsroot Specifies the root node in the target LDAP repository under which all data is migrated. The format is cn=nodeName. join Specifies whether the domain is to share a policy store specified in another domain. Optional. Set to true to share an existing policy store in another domain; set to false otherwise. The use of this argument allows multiple WebLogic domains to point to the same logical policy store. Infrastructure Security Custom WLST Commands 4-73

4.6.18.3 Examples

The following invocation reassociates the domain policies and credentials to an LDAP Oracle Internet Directory server: wls:mydomainserverConfig reassociateSecurityStoredomain=myDomain, admin=cn=adminName, password=myPass,ldapurl=ldap:myhost.example.com:3060, servertype=OID, jpsroot=cn=testNode Suppose that you want some other domain distinct from myDomain, say otherDomain to share the policy store in myDomain. Then you would invoke the command as follows: wls:mydomainserverConfig reassociateSecurityStoredomain=otherDomain, admin=cn=adminName, password=myPass, ldapurl=ldap:myhost.example.com:3060, servertype=OID, jpsroot=cn=testNode, join=true

4.6.19 upgradeSecurityStore