c# - Suggesion on Active Directory Integration with Asp.Net MVC 4 -


i know there many posts regarding active directory integration not here ask method integrate(i found), want discuss possible optimize approach here basic requirement: working on mvc4 application , client asked me users of active directory saved in our userprofile table , whenever new user added active directory should reflected userprofile table.

my approach : build scheduler fetch active directory users (using system.directoryservices namespace) , check count of users in active directory , if increased i'll add new active directory user database. want take suggestion there direct way reflect new active directory user in sql server userprofile table if possible don't need create scheduler , more light weight process.

thanks in advance

depending on count of objects not way go. consider case new user added , user deleted. count still same although changes have happened need obtain.

one way use directorysynchronization class. class allows synchronize changes active directory.

the first time use it, gives objects want (based on filter), , gives synchronization token. store token storage. next time come synchronize, provide class token knows have , gives difference. please see example in referenced msdn reference.

there things need know when using api. recommend read first. this link contains information need aware of.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -