Answered by:
any way to update active directory using .Net?

Question
-
User186897 posted
Hello
I wanted to know is there any way we can update active directory user details from sql server using vb.net or asp.net?
If yes can i have some example links please
Thanks
Tuesday, July 12, 2016 10:40 AM
Answers
-
User-718146471 posted
Here is one place to start: http://stackoverflow.com/questions/32391611/update-active-directory-account-information-from-asp-net-and-sql-server
"You can go with user impersonation: using the credentials of an user allowed to do such actions you can make the ASP.NET application act as the user with higher privileges. You can save these credentials in the config file (imho not safe because are admin credentials) or require them interactively to the user when accessing the page."
See the post for more details.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 12, 2016 10:48 AM
All replies
-
User-698989805 posted
Hello Lexi85! Please check the followings:
https://ianatkinson.net/computing/adcsharp.htm
https://www.c-sharpcorner.com/article/active-directory-and-net/Tuesday, July 12, 2016 10:46 AM -
User186897 posted
hello..thanks but both sites dont work 1st is blocked by my antivirus and 2nd says unknown..
Tuesday, July 12, 2016 10:48 AM -
User-718146471 posted
Here is one place to start: http://stackoverflow.com/questions/32391611/update-active-directory-account-information-from-asp-net-and-sql-server
"You can go with user impersonation: using the credentials of an user allowed to do such actions you can make the ASP.NET application act as the user with higher privileges. You can save these credentials in the config file (imho not safe because are admin credentials) or require them interactively to the user when accessing the page."
See the post for more details.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, July 12, 2016 10:48 AM -
User283571144 posted
Hi Lexi85,
I wanted to know is there any way we can update active directory user details from sql server using vb.net or asp.net?
If yes can i have some example links please
According to you description, I suggest you could refer to follow links.
Set/Update Active Directory attributes to user:http://www.codeproject.com/Tips/513767/Set-Update-Active-Directory-attributes-to-user
Update active directory users info:
http://forums.asp.net/t/1929671.aspx
Active Directory With C#:
http://ianatkinson.net/computing/adcsharp.htm
Besides, if you want to know more about working within the Active Directory (AD) using VB.NET, you could refer to follow link:
http://www.codeproject.com/Articles/19689/Working-with-Active-Directory-in-VB-NET
Best Regards
BrandoFriday, July 15, 2016 3:01 AM