Click here to Skip to main content
15,896,368 members
Home / Discussions / C#
   

C#

 
QuestionSerial Port security? Pin
glennPattonWork35-Sep-12 5:34
professionalglennPattonWork35-Sep-12 5:34 
SuggestionRe: Serial Port security? Pin
Eddy Vluggen5-Sep-12 5:57
professionalEddy Vluggen5-Sep-12 5:57 
GeneralRe: Serial Port security? Pin
glennPattonWork35-Sep-12 6:03
professionalglennPattonWork35-Sep-12 6:03 
Questionextract form Pin
farhad34505-Sep-12 3:28
farhad34505-Sep-12 3:28 
AnswerRe: extract form Pin
Ravi Bhavnani5-Sep-12 3:36
professionalRavi Bhavnani5-Sep-12 3:36 
AnswerRe: extract form Pin
Ingo5-Sep-12 3:49
Ingo5-Sep-12 3:49 
AnswerRe: extract form Pin
Abhinav S5-Sep-12 4:00
Abhinav S5-Sep-12 4:00 
QuestionAddAccessRule to Directory for Usergroups of another Domain Pin
Ingo5-Sep-12 2:25
Ingo5-Sep-12 2:25 
Well,

I'm working on a software which should give rights for usergroups to a directory that is on a fileshare. The usergroup is handled in a domain on a foreign ad-server

I can create groups on this ad-server.
I can read rights of the fileshare.
I can set rights to local groups or groups of my own ad-server

But I can't give rights to groups of this other ad-server with his own domains. When I try there comes the error, that he don't know the group.
I tried to get the SecurityIdentifier and another error occurs: it says that it's not possible to translate the account.

I've tried it that way:
C#
NTAccount account = new NTAccount("domain\\group");
SecurityIdentifier secId = (SecurityIdentifier)account.Translate(typeof(SecurityIdentifier));


This works for group of my own domain (or ad-server) but not for the foreign. Has anyone an idea what to do?

By, the way, I tried to change the Thread-User, what seems to work, but no difference:
string[] roles = { "managers", "executives" };
Thread.CurrentPrincipal = new GenericPrincipal(new GenericIdentity(user, pwd), roles);

------------------------------
Author of Primary ROleplaying SysTem

How do I take my coffee? Black as midnight on a moonless night.
War doesn't determine who's right. War determines who's left.


modified 5-Sep-12 9:05am.

QuestionProperty grid problem Pin
Soni_moni5-Sep-12 2:02
Soni_moni5-Sep-12 2:02 
QuestionRe: Property grid problem Pin
Eddy Vluggen5-Sep-12 5:33
professionalEddy Vluggen5-Sep-12 5:33 
QuestionHelp about SocketAsyncEventArgs Pin
wanli_gao4-Sep-12 22:28
wanli_gao4-Sep-12 22:28 
AnswerRe: Help about SocketAsyncEventArgs Pin
Richard MacCutchan4-Sep-12 23:56
mveRichard MacCutchan4-Sep-12 23:56 
AnswerRe: Help about SocketAsyncEventArgs Pin
Pete O'Hanlon5-Sep-12 1:16
mvePete O'Hanlon5-Sep-12 1:16 
QuestionCore Foundations of .Net (2956B) Pin
Member 93770754-Sep-12 22:22
Member 93770754-Sep-12 22:22 
AnswerRe: Core Foundations of .Net (2956B) Pin
Richard MacCutchan4-Sep-12 23:58
mveRichard MacCutchan4-Sep-12 23:58 
AnswerRe: Core Foundations of .Net (2956B) Pin
Ravi Bhavnani5-Sep-12 3:40
professionalRavi Bhavnani5-Sep-12 3:40 
Questioncase based reasoning Pin
Dharani Balusamy4-Sep-12 18:46
Dharani Balusamy4-Sep-12 18:46 
AnswerRe: case based reasoning Pin
Pete O'Hanlon4-Sep-12 21:23
mvePete O'Hanlon4-Sep-12 21:23 
JokeRe: case based reasoning PinPopular
Peter_in_27804-Sep-12 21:51
professionalPeter_in_27804-Sep-12 21:51 
GeneralRe: case based reasoning Pin
Pete O'Hanlon4-Sep-12 22:03
mvePete O'Hanlon4-Sep-12 22:03 
GeneralRe: case based reasoning Pin
Shameel5-Sep-12 4:26
professionalShameel5-Sep-12 4:26 
GeneralRe: case based reasoning Pin
Pete O'Hanlon5-Sep-12 4:36
mvePete O'Hanlon5-Sep-12 4:36 
QuestionLinq2Sql cannot add an entity Pin
kenajelencres4-Sep-12 15:07
kenajelencres4-Sep-12 15:07 
QuestionRe: Linq2Sql cannot add an entity Pin
Eddy Vluggen4-Sep-12 21:45
professionalEddy Vluggen4-Sep-12 21:45 
AnswerRe: Linq2Sql cannot add an entity Pin
kenajelencres4-Sep-12 22:34
kenajelencres4-Sep-12 22:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.