floatpoint - Wednesday, December 8, 2010 5:10 AM:
Hi there...
I am trying to figure out a way to import users from our LDAP to Aras.
I already have code that interacts with the Aras WS but I can't find any documentation of the tags etc in the AML sent to the server.
So; I need to know what information to place in the AML to be able to create a new user.
And what about password encryption? What is needed?
BR
Thomas
Ronan - Wednesday, December 8, 2010 11:19 AM:
The documentation (the integrated "Just Ask Innovator", as well as the bundled PDFs) has lots of AML examples, what you want is probably something like
<AML> <Item type="User" action="add">
<name>Thomas Floatpoint</name>
<randomattribute>Blah</randomattribute>
</Item>
</AML>
SamsAn - Friday, December 17, 2010 3:41 PM:
Hello.
The passwords should be represented as MD5 hash in the pointed AML. If a required property is missed then Innovator Server will return appropriate error message. Please, don't use direct sql statements to insert the users. There are many related logic (user private permissions creating, repeat passwords saving, etc.) inside Innovator Server when a user is being inserted. You can slightly improve import performance when use doGetItem="0" attribute on the Item nodes.
SamsAn.
floatpoint - Wednesday, December 22, 2010 2:15 AM:
Thanx a bunch.... I managed to get the import running.
My question about the password was kinda stupid, of course I can't import the passwords from the LDAP
as that would mean that I have to be able to decrypt them first, and of course; I do not have a key for that.
But the MD5 hash tip solved the "insert" at least, so I just gave all users a default password to start with.
And about the AML dox in "Just ask Innovator", it is not completely true that there's loads of samples in there.
If you do a search for "AML" or "User" or similar, you'll come up quite short.
Brian - Wednesday, December 22, 2010 5:08 PM:
If you go to this page: http://www.aras.com/support/documentation/
and download the Programmers Guide you will find additional information on AML.
One of the best ways of understanding what any item contains and testing AML is to use the Nash Script
(yourserver/.../nash.aspx)
Log into this using the same passwords you use for Innovator and then you can send AML directly to the server to see what things contain.
Important note: All AML sent using the Nash tool must have <AML> tags around it.
eg.
<AML>
<Item type="Part" action="get" >
<Relationships>
<Item type="Part Document" action="get"/>
</Relationships>
</Item>
</AML>
will return All parts in the system plus all of the documents that are related to the parts.
Once you have a query back you can show the XML result using the "Show XML" button towards the bottom of the page.
Cheers,
Brian.