DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Need soma script for password alias mapping

    Posted Thu January 05, 2023 03:32 AM
    Hi

    Can anyone share me soma script for password alias mapping in datapower ?


    Thanks and appreciate your help :-)

    ------------------------------
    Raja Kumar
    ------------------------------


  • 2.  RE: Need soma script for password alias mapping

    Posted Thu January 05, 2023 10:49 AM
    We need more context on what you are trying to do.  There is building a password alias, but then there is assigning a password alias to something like a key.

    ------------------------------
    Joseph Morgan
    ------------------------------



  • 3.  RE: Need soma script for password alias mapping

    Posted Thu January 05, 2023 01:13 PM

    Hi Raja,

    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dp="http://www.datapower.com/schemas/management">
        <!-- curl {-}{-}data-binary @request.xml https://{machine.name}:5550 -u admin:{adminPW} -k -->
        <env:Body>
            <dp:request domain="domainname">
                <dp:set-config>
                    <PasswordAlias name="testalias">
                        <mAdminState>enabled</mAdminState>
                        <Password>thepassword</Password>
                    </PasswordAlias>
                </dp:set-config>
                <dp:do-action>
                    <SaveConfig/>
                </dp:do-action>
            </dp:request>
        </env:Body>
    </env:Envelope>

    The above uses the legacy XML Management Interface which allows both the dp:set-config AND dp:do-action in the same SOAP request.  If using the current XML Management Interface, those would need to be separated into different requests.

    Best Regards,

    Steve



    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------