Click here to Skip to main content
16,022,846 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi ,
i want to set a permission in active directory and user control for one ou and all sub ou's under this ou.to authenticated user's for read permission.can u please tell me how can i implement this using ldap query in c# in my console application.

thanks..
Posted

Hello

If you know the commands of setting permission and ... (CMD Command) or if you can create a batch file,

then:

C#
Process.Start(@"Command or Batch file path");


Maybe these links help:

http://technet.microsoft.com/en-us/library/cc778084%28WS.10%29.aspx[^]

http://activedirectorytools.net/dsquery[^]

http://serverfault.com/questions/67716/active-directory-batch-editing-home-folders[^]
 
Share this answer
 
v2
Comments
ninad from cybermediasoft 15-Feb-12 2:53am    
can u please elaborate ldap query for me????i want to do this for particular ou and sub ou's under it.
Shahin Khorshidnia 15-Feb-12 15:46pm    
I don't know it's query because I'm not a MCSE or a Network engineer, but I just know Process.Start("Query"); is for running MSDOS Commands or batch files. Maybe the links above, help you.
 
Share this answer
 
Comments
ninad from cybermediasoft 15-Feb-12 4:40am    
can u please provide me an code example for setting a security permission(i.e) Authenticated user to allow read permission for OU and all child OU's under it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900