Click here to Skip to main content
15,913,361 members
Home / Discussions / C#
   

C#

 
QuestionConnecting to MSDE with Visual studio C# Pin
kourvoisier28-Nov-05 11:43
kourvoisier28-Nov-05 11:43 
AnswerRe: Connecting to MSDE with Visual studio C# Pin
Christian Graus28-Nov-05 12:16
protectorChristian Graus28-Nov-05 12:16 
QuestionPassing a struct from c# to c in vs.net Pin
spellman28-Nov-05 11:14
spellman28-Nov-05 11:14 
QuestionIs there any other way to open a web page than Process.Start? Pin
Anthony Mushrow28-Nov-05 11:05
professionalAnthony Mushrow28-Nov-05 11:05 
Questionwindows default currency symbol Pin
Shahin7728-Nov-05 10:55
Shahin7728-Nov-05 10:55 
AnswerRe: windows default currency symbol Pin
leppie28-Nov-05 12:35
leppie28-Nov-05 12:35 
QuestionNull Reference Exception COM Objects Pin
thepolishguy28-Nov-05 10:34
thepolishguy28-Nov-05 10:34 
QuestionExtracting user's password for alternate authentication Pin
tantiboh28-Nov-05 10:18
tantiboh28-Nov-05 10:18 
I'm trying to use the CrystalDecisions assembly to access Crystal Reports. To do this, I need to get the user's authentication information so I can authenticate into Crystal Reports itself. I want to do this with the user's windows authentication so the user is saved the trouble of having to log in.

Here's where I'm putting the information:

<br />
CrystalDecisions.Shared.ConnectionInfo crConnectionInfo = new CrystalDecisions.Shared.ConnectionInfo;<br />
<br />
crConnectionInfo.ServerName = "ServerName";<br />
crConnectionInfo.DatabaseName = "DBName";<br />
crConnectionInfo.UserID = "UserID";<br />
crConnectionInfo.Password = "Password";<br />


ServerName and DBName are key values in my web.config file, so they're easy. Getting the current user's UserID from System.Security is also pretty straightforward. What I can't find is a way to extract the password from somewhere.

I realize there may be security in place specifically to prevent exactly what I'm trying to do, but has anybody come across a way to do it? Perhaps finding the user's object on the AD? Perhaps pulling it from Windows somewhere? Perhaps a way to pass a security token to Crystal Reports?

Thanks for your help!
AnswerRe: Extracting user's password for alternate authentication Pin
Colin Angus Mackay28-Nov-05 11:13
Colin Angus Mackay28-Nov-05 11:13 
QuestionText Colors and Outline Pin
Pende28-Nov-05 10:12
Pende28-Nov-05 10:12 
AnswerRe: Text Colors and Outline Pin
Christian Graus28-Nov-05 10:35
protectorChristian Graus28-Nov-05 10:35 
QuestionConditional compilation for 1.1 and 2.0 Pin
Roger Alsing28-Nov-05 9:58
Roger Alsing28-Nov-05 9:58 
AnswerRe: Conditional compilation for 1.1 and 2.0 Pin
Mark DeVol29-Nov-05 11:15
Mark DeVol29-Nov-05 11:15 
QuestionNeed a best possible solution/advice Pin
pavanbabut28-Nov-05 8:43
pavanbabut28-Nov-05 8:43 
AnswerRe: Need a best possible solution/advice Pin
Dan Neely28-Nov-05 9:32
Dan Neely28-Nov-05 9:32 
GeneralRe: Need a best possible solution/advice Pin
pavanbabut28-Nov-05 9:48
pavanbabut28-Nov-05 9:48 
QuestionHosted controls in a User Control Pin
Leyu28-Nov-05 8:41
Leyu28-Nov-05 8:41 
QuestionGarbage Collection Question (How to Prevent) Pin
CarolAnnLove28-Nov-05 8:24
CarolAnnLove28-Nov-05 8:24 
AnswerRe: Garbage Collection Question (How to Prevent) Pin
Judah Gabriel Himango28-Nov-05 9:12
sponsorJudah Gabriel Himango28-Nov-05 9:12 
QuestionStill stuck: Button, Numeric UpDown, and Paint Event Pin
...---...28-Nov-05 6:40
...---...28-Nov-05 6:40 
AnswerRe: Still stuck: Button, Numeric UpDown, and Paint Event Pin
KaptinKrunch28-Nov-05 7:34
KaptinKrunch28-Nov-05 7:34 
AnswerRe: Still stuck: Button, Numeric UpDown, and Paint Event Pin
Judah Gabriel Himango28-Nov-05 7:34
sponsorJudah Gabriel Himango28-Nov-05 7:34 
GeneralRe: Still stuck: Button, Numeric UpDown, and Paint Event Pin
...---...28-Nov-05 13:14
...---...28-Nov-05 13:14 
QuestionCreating custom control.. dunno how to create click event Pin
2hdass28-Nov-05 6:10
2hdass28-Nov-05 6:10 
AnswerRe: Creating custom control.. dunno how to create click event Pin
Judah Gabriel Himango28-Nov-05 7:37
sponsorJudah Gabriel Himango28-Nov-05 7:37 

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.