Hi,
I'm trying to create a new user using SPML request and it is returning with an error message as below, I appreciate your help.
ErrorReponse:
<ProcessRequestResponse xmlns="http://softerra.com/adaxes/spmlwebservice">
<ProcessRequestResult>
<addResponse status="failure" error="malformedRequest" xmlns="urn:oasis:names:tc:SPML:2:0">
<errorMessage>The attribute of the RDN type is not specified.</errorMessage>
</addResponse>
</ProcessRequestResult>
</ProcessRequestResponse>
I also tried to update the Adaxes' web.config file to reflect the container configuration in the request as below, but still no luck.
Web.config:
<configuration>
...
<softerra>
...
<spmlWebService ...>
...
<objectClassToRdnTypeMap>
<add key="organizationalUnit" value="OU"/>
<add key="organization" value="O"/>
<add key="domain" value="DC"/>
<add key="user" value="CN"/>
</objectClassToRdnTypeMap>
</spmlWebService>
</softerra>
</configuration>
RequestMessage:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header />
<soap:Body>
<ProcessRequest xmlns="http://softerra.com/adaxes/spmlwebservice">
<requestElement >
<addRequest returnData="everything" targetID="all domains" xmlns="urn:oasis:names:tc:SPML:2:0">
<containerID ID="OU=Users,OU=company,DC=companynet,DC=net" />
<data >
<attr name="givenName" xmlns="urn:oasis:names:tc:DSML:2:0:core">
<value >TestFN3</value>
</attr>
<attr name="title" xmlns="urn:oasis:names:tc:DSML:2:0:core">
<value >Test3</value>
</attr>
<attr name="objectclass" xmlns="urn:oasis:names:tc:DSML:2:0:core">
<value >user</value>
</attr>
</data>
</addRequest>
</requestElement>
</ProcessRequest>
</soap:Body>
</soap:Envelope>
Thanks,
Aravindh