Click here to Skip to main content
15,905,877 members
Home / Discussions / C#
   

C#

 
GeneralRe: debug console application Pin
Dave Kreskowiak5-Sep-12 12:35
mveDave Kreskowiak5-Sep-12 12:35 
QuestionC# execute console application Pin
dcof5-Sep-12 5:39
dcof5-Sep-12 5:39 
AnswerRe: C# execute console application Pin
Eddy Vluggen5-Sep-12 5:54
professionalEddy Vluggen5-Sep-12 5:54 
AnswerRe: C# execute console application Pin
glennPattonWork35-Sep-12 5:59
professionalglennPattonWork35-Sep-12 5:59 
GeneralRe: C# execute console application Pin
Shameel5-Sep-12 6:27
professionalShameel5-Sep-12 6:27 
GeneralRe: C# execute console application Pin
glennPattonWork35-Sep-12 22:07
professionalglennPattonWork35-Sep-12 22:07 
AnswerRe: C# execute console application Pin
PIEBALDconsult5-Sep-12 6:06
mvePIEBALDconsult5-Sep-12 6:06 
GeneralRe: C# execute console application Pin
dcof5-Sep-12 7:52
dcof5-Sep-12 7:52 
GeneralRe: C# execute console application Pin
PIEBALDconsult5-Sep-12 8:20
mvePIEBALDconsult5-Sep-12 8:20 
AnswerRe: C# execute console application Pin
jschell5-Sep-12 11:38
jschell5-Sep-12 11:38 
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 

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.