Home All Groups Group Topic Archive Search About

A twist to "Logon User at Domain"

Author
16 Feb 2007 12:33 PM
Radek.Jedrasiak
Hi all,

  just scanned the postings and i'm alittle suprised. There seams to
be no  way,
to make a user logon/authenticate at a domain WITHOUT the user making
his username
AND PASSWORD available to the application initiating the logon/
authentication process....

Is that right?
I'm refering to

CredUIPromptForCredentials function

which "publishes" the password of the application the invoking it.

Any hint how to initiate the authentication process in a way which
does
not make password readable to the invoking appliction?

I really hope i'm just missing something, and it's not by design....

TIA
br
Radek

Author
16 Feb 2007 3:19 PM
Joe Kaplan
If the user is already logged in to Windows, then you can just use their
security token directly.  Otherwise, perhaps you can explain what you are
trying to do.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
<Radek.Jedras***@gmail.com> wrote in message
Show quoteHide quote
news:1171629185.547619.184480@t69g2000cwt.googlegroups.com...
> Hi all,
>
>  just scanned the postings and i'm alittle suprised. There seams to
> be no  way,
> to make a user logon/authenticate at a domain WITHOUT the user making
> his username
> AND PASSWORD available to the application initiating the logon/
> authentication process....
>
> Is that right?
> I'm refering to
>
> CredUIPromptForCredentials function
>
> which "publishes" the password of the application the invoking it.
>
> Any hint how to initiate the authentication process in a way which
> does
> not make password readable to the invoking appliction?
>
> I really hope i'm just missing something, and it's not by design....
>
> TIA
> br
> Radek
>
Author
18 Feb 2007 4:31 PM
Radek.Jedrasiak
On Feb 16, 4:19 pm, "Joe Kaplan"
<joseph.e.kap***@removethis.accenture.com> wrote:
Show quoteHide quote
> If the user is already logged in to Windows, then you can just use their
> security token directly.  Otherwise, perhaps you can explain what you are
> trying to do.
>
> Joe K.
>
> --
> Joe Kaplan-MS MVP Directory Services Programming
> Co-author of "The .NET Developer's Guide to Directory Services Programming"http://www.directoryprogramming.net
> --<Radek.Jedras***@gmail.com> wrote in message
>
> news:1171629185.547619.184480@t69g2000cwt.googlegroups.com...
>
>
>
> > Hi all,
>
> >  just scanned the postings and i'm alittle suprised. There seams to
> > be no  way,
> > to make a user logon/authenticate at a domain WITHOUT the user making
> > his username
> > AND PASSWORD available to the application initiating the logon/
> > authentication process....
>
> > Is that right?
> > I'm refering to
>
> > CredUIPromptForCredentials function
>
> > which "publishes" the password of the application the invoking it.
>
> > Any hint how to initiate the authentication process in a way which
> > does
> > not make password readable to the invoking appliction?
>
> > I really hope i'm just missing something, and it's not by design....
>
> > TIA
> > br
> > Radek- Hide quoted text -
>
> - Show quoted text -

Yes, the user is logged in already, but at a different domain.

This is a vpn scenario: user starts his machine and logs in with his
local user name.
Later he connects via vpn to a company network.
With this connection in place he can start an application which needs
his
company-domain identity.

This works already, we are able to authenticate the user in the
company domain,
BUT only by presenting him a login dialog (Windows api) and ** passing
over ** the info he provides (user name / password)
to the DomainControler for authentication ....

The point is: is there a way to do this, without enabling the
application to "read" users login info ?

thanks for reading ;)

cheerio
Radek
Author
18 Feb 2007 10:32 PM
Joe Kaplan
You could have the user run the application with "Run As..." so that Windows
would start the program under a different security context and your app
wouldn't be doing the impersonation.  That brings it outside of your
application.  Otherwise, no.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
Show quoteHide quote
>
> Yes, the user is logged in already, but at a different domain.
>
> This is a vpn scenario: user starts his machine and logs in with his
> local user name.
> Later he connects via vpn to a company network.
> With this connection in place he can start an application which needs
> his
> company-domain identity.
>
> This works already, we are able to authenticate the user in the
> company domain,
> BUT only by presenting him a login dialog (Windows api) and ** passing
> over ** the info he provides (user name / password)
> to the DomainControler for authentication ....
>
> The point is: is there a way to do this, without enabling the
> application to "read" users login info ?
>
> thanks for reading ;)
>
> cheerio
> Radek
>
>