RE: Once again Vista logon (ICredentialProvider)
From: gf (gf_at_discussions.microsoft.com)
Date: 11/24/05
- Next message: Stephan Keil: "Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA"
- Previous message: Valery Pryamikov: "Re: Crypto API using RC2 instead of RC4?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 24 Nov 2005 07:41:06 -0800
Excuse me, I am new to COM and I didn't register correctly my component.
Now it's done my DLL is loaded but everytime "DllGetClassObject () ()" is
called, everytime the RID is the IClassFactory RID => "QueryInterface ()"
never affect a ICredentialProvider object ! None of "ICredentialProvider"
method is called.
Same questions : do I need to implement another interface
(ICredentialProviderCredential) or a Logon UI or a Cred UI ?
P. S. : for information, register a component is to create a registre key
"{<component GUID>}" under "HKEY_CLASSES_ROOT", under which create a key
"InprocServer32" under which create a value "ThreadingModel" (type : REG_SZ,
value : "Apartment") and set the default value to the DLL name.
"gf" wrote:
> Hi all,
> I'm implementing the ICredentialProvider interface to replace my GINA. I
> implemented very simply that interface with tracing into text file each
> method, compiled the DLL, placed it in "\Windows\system32" and create a
> registry key under
> "HKLM/Software/Microsoft/Windows/CurrentVersion/Authentication/Credential
> Providers", rebooted computer but my DLL isn't loaded, and my text file is
> empty.
>
> Have I forgotten something ? Must I implement another interface
> (ICredentialProviderCredential) or a Logon UI or a Cred UI ?
>
> "wolf777" wrote:
>
> > So meanwhile I found the solution myself :-)
> >
> > If there is anybody interested - look at this key in the registry:
> > HKLM/Software/Microsoft/Windows/CurrentVersion/Authentication/CredentialProviders
> >
> > You will find there Microsoft "Password" and "SmartCard" providers and just
> > create a key which name is your provider GUID in the same manner as MS does.
> >
> > Would be great to read it in the SDK :-) And one more tip - when you compile
> > ICredentialProviderCredential implementation, you should add Platform SDK
> > library "Uuid.lib" to your project, otherwise you will get unresolved
> > external errors.
> >
> > This beta development is a real adventure though :-D
> >
> > "wolf777" wrote:
> >
> > > Hi all,
> > >
> > > thanks to help from this community I could finally implement an early
> > > version of Vista Credential Provider, which generally means to implement the
> > > ICredentialProvider using Windows Longhorn Professional SDK Beta 1.
> > >
> > > I built the dll, added some trace-to-file calls to know what actually
> > > happens, registered the dll in Vista and rebooted the computer.
> > > Unfortunatelly, this doesn't work (according to the log, the DLL is only
> > > loaded and unloaded, no method is called).
> > >
> > > My question is: Which steps must I take, to make winlogonUI start using my
> > > dll? I am quite new to COM and windows shell, so I maybe ommit some basic
> > > step... Intuitively, I would expect that one should be able to set somewhere
> > > which credential provider shall be used for logon, as there can be multiple
> > > such provider dlls registered. Is there for example some section in the
> > > registry, where I should put some entries pointing to my dll?
> > >
> > > Thank you in advance, I really appreciate your help which already allowed me
> > > to get so far :-)
- Next message: Stephan Keil: "Re: CryptAcquireContext _sometimes_ fails with NTE_PROVIDER_DLL_FA"
- Previous message: Valery Pryamikov: "Re: Crypto API using RC2 instead of RC4?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|