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 (100 points)

1 Answer

0 votes
by (233k 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

We have a business need for automating and controlling the creation of service accounts in our AD. For example, we want all new service accounts to start with "svc_" for ... customize the "New User" form to create a "New Service Account" workflow in Adaxes?

asked Sep 10, 2021 by joshua.lapchuk (60 points)
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, 2020 by russmerriman (40 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 (480 points)
0 votes
1 answer

Is it possible to transliterate the specified first and last name before creating an account so that the correct username, upn etc are formed based on the transliteration?

asked Nov 18 by Alvares (80 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 (90 points)
2,880 questions
2,600 answers
6,743 comments
114,564 users