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 (294k 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

I am trying to trigger processing outside of Active Directory when an account is created based on the source user account that was used. Does Adaxes store the source account anywhere?

asked Oct 9, 2023 by jnordell (20 points)
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

Hello, When a user account is created, we would like for that user to be added to a group whose name is based on a certain naming convention. If the group doesn't yet exist ... If that group doesn't exist, it will first create the group and then add the user.

asked Mar 11 by sjjb2024 (60 points)
3,588 questions
3,277 answers
8,303 comments
548,091 users