Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 20 Jun 2008 02:49:04 -0700,    group: microsoft.public.platformsdk.security        back       


Credentials dialog in a network provider   
Hi,
1. In NPAddConnection3, do I need to create and display a credentials dialog 
for the user? Or returning WN_BAD_PASSWORD is enough?
2. If indeed I am the one that has to create the dialog, is there any 
default credentials dialog that I can use?

Thank you very much!
Josef
date: Fri, 20 Jun 2008 02:49:04 -0700   author:   Josef

RE: Credentials dialog in a network provider   
Hi,

MSDN suggests that you never return codes like ERROR_LOGON_FAILURE, 
WN_BAD_PASSWORD or WN_ACCESS_DENIED in NPAddConnection3. Instead, it says 
that this function should "continue asking the user for valid credentials 
until the user either supplies them or presses a cancel button." .
In order to display a credential dialog, you can use the function 
CredUIPromptForCredentials  defined in Credui.dll . 

Cheers,
-- 
Mounir IDRASSI
IDRIX
http://www.idrix.fr

to reach : mounir_idrix_fr (replace the underscores with the at and dot 
characters respectively)


"Josef" wrote:

> Hi,
> 1. In NPAddConnection3, do I need to create and display a credentials dialog 
> for the user? Or returning WN_BAD_PASSWORD is enough?
> 2. If indeed I am the one that has to create the dialog, is there any 
> default credentials dialog that I can use?
> 
> Thank you very much!
> Josef
date: Sat, 21 Jun 2008 16:31:00 -0700   author:   Mounir IDRASSI am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us