0 votes

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

by (510 points)

1 Answer

0 votes
by (182k points)
selected by
Best answer

Hello Aravindh,

I also tried to update the Adaxes' web.config file to reflect the container configuration in the request as below, but still no luck.

There is no need to make any changes in the Web.config file. We recommend you revert the changes.

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.

The error message means that the cn property is missing in the request. Try adding the following to your request message:

<attr name="cn" xmlns="urn:oasis:names:tc:DSML:2:0:core">
<value>John Smith</value>
</attr>

Also, you can check SOAP message samples in the following help article: https://www.adaxes.com/help/?SPMLSuppor ... mples.html.

0

Thank you very much it works now :)

Related questions

0 votes
1 answer

As part of our HR onboarding process, they need to specify non-AD integrated software requirements. Is there a way to have a customised field on the form that when ticked or ... say the name of the software and have it linked to a particular field in AD.

asked Apr 15 by russmerriman (450 points)
0 votes
1 answer

I have a word document that I need to have the users first and last name added to along with the password. I was wondering if you know of an easy way to capture ... variables and pass them to a word document via a Custom Command or Business rule. Thanks, Tony

asked Sep 21, 2015 by cyspry (2.7k points)
0 votes
1 answer

Hi all, Having issues creating a GSuite (Apps for Education) account for my users during a new user creation process. Logic location: Business Rules &gt; After User Creation &gt ... stated, no user is created. Any idea how I can go about troubleshooting this?

asked Jan 7, 2019 by Robb (320 points)
0 votes
1 answer

I need a group created based on %ipPhone% when ever a new user is provisioned. The group name has to match %ipPhone% and have email enabled and to be hidden from the address list. We are on Version 3.8.314823.0

asked Nov 6, 2018 by hgletifer (6.2k points)
0 votes
1 answer

We were wondering if Adaxes has a script available to create AS400 accounts during the AD creation. This will allow us to totally automate the new hire process going forward.

asked Jan 26, 2017 by willy-wally (14.9k points)
2,251 questions
2,011 answers
5,507 comments
25,315 users