Developer forum

Forum » Integration » AD integration with more fields

AD integration with more fields

Per Søgaard
Reply

Hi
Our customer wants to integrate username, password and a list of other fields with user information using the Dynamicweb AD integration to Dynamicweb Users, and use it on their Dynamicweb based intranet. I have seen the Jonas Dam video vimeo.com/128986581, but how to import/integrate the other fields?

Also they would like to be automatically logged into the Dynamicweb Intranet when they sign in to Windows.
Is there an easy way to do that?

BR Per


Replies

 
Dmitriy Benyuk
Reply

Hi Per,
I will try to answer on your first question. If you will download the AD project you will the "XmlFormatter.cs" file where you can add some specific fields import.
For example thre is a line like "item.AppendChild(GetColumnTag(xDoc, "AccessUserExternalID", user.EmployeeId));" which is filling the column "AccessUserExternalID" in the "AccessUser"
table from the Dynamicweb database. In the same way you can add some additional property to the "User.cs" file, fill it in the "ADHelper.cs" GetAllUsers() method with some value from AD and map it to Dynamicweb AccessUser table column like: "item.AppendChild(GetColumnTag(xDoc, "SomeCustomField", user.AdCustomField));" where the ""SomeCustomField"" can be some Dynamciweb user custom field column.
It will be also needed to check if the value is coming from the AD since due to different AD permission settings some fields values can be not returned from the AD.

Regards, Dmitrij

 
Per Søgaard
Reply

Thanks.
Will this make the solution a custom one?

 
Jonas Krarup Dam
Reply

Hi Per,

No - this is the component that is installed on the AD side, so it doesn't make the DW solution "custom".

Regards, Jonas

 

You must be logged in to post in the forum