Re: Password Filter implementation
From: William DePalo [MVP VC++] (willd.no.spam_at_mvps.org)
Date: 09/06/05
- Previous message: Amdi Nielsen: "Password Filter implementation"
- In reply to: Amdi Nielsen: "Password Filter implementation"
- Next in thread: Amdi Nielsen: "Re: Password Filter implementation"
- Reply: Amdi Nielsen: "Re: Password Filter implementation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 5 Sep 2005 20:24:08 -0400
"Amdi Nielsen" <ani04@scan-soft.d_remove_k> wrote in message
news:%23DEdK9lsFHA.760@TK2MSFTNGP14.phx.gbl...
> I want to create my own password filter, and I have tried to implement it
> in a DLL as specified by Microsoft.
> When I try to install the PassWord filter by:
> 1. Enabling Local Security "Password must meet complexity requirements".
> 2. Copy DLL "MyFilter.dll" to c:\Windows\System32
> 3. Adding name of filter "MyFilter" to "Notification Packages" in
> Registry.
> 4. Reboot computer
> the filter is not working - it dosn't seem to be installed at all.
At the command prompt type
dumpbin /exports YourPasswordFilterName.dll
Take a look at the names of the functions which are exported. You need to
have these (undecorated) names
InitializeChangeNotify
PasswordChangeNotify
PasswordFilter
The functions' signatures and calling conventions used must be exactly as
described in the documentation.
The first function must return a BOOL value of TRUE. If it does not the
other two won't be called.
Does your filter meet all of those requirements?
> I have tried to create my own DLL from scratch, and I have tried several
> samples from the internet, but I allways had to make some changes to the
> code to make it compile. I also tried the old sample from MS.
Did you try the one in the Platform SDK's directory
Samples\security\PasswordFilters\PassFilt
It has been two years or so, but as I recall the MS sample worked fine for
me on XP.
> Or if anybody have an idea what the showstopper is.
Is there any change that your code raises an exception?
And just by the way, the LSA uses its own special string format that is
UNICODE encoded but neither the familiar BSTR nor null terminated type.
Regards,
Will
- Previous message: Amdi Nielsen: "Password Filter implementation"
- In reply to: Amdi Nielsen: "Password Filter implementation"
- Next in thread: Amdi Nielsen: "Re: Password Filter implementation"
- Reply: Amdi Nielsen: "Re: Password Filter implementation"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|