How do I Compile Password Filter



Bob Voss
07-09-2005, 11:51 PM
I made a minor modification to the sample password filter from the SDK,
compiled ut and copied it to the system32 folder on both of our Windows 2003
DCs.. I added the dll name to the end of the Notification Packages registry
key value on on both. The filter does not seem to be called when I change a
password. The group policy for complex passwords is disabled because I
don't want to use the built-in rules. One set up instructions says to
enable this, but other postings from MSFT say it is not needed.

I'm not a 'C' programmer, so I may have compiled it incorrectly. I
installed Visual C++ from Visual Studio 6 but ended up using the command
line "nmake /f makefile" to compile it. I set the environment variable
TARGETOS=WINNT for the makefile to work.

Was this the correct procedure? Is there anything else that must be done?
TIA

Joe Richards [MVP]
07-09-2005, 11:51 PM
I am sorry, I can't help with the compiling as I don't use Visual Studio.
However how do you know whether or not it is being called? Have you configured
any trace statements in the code to output that your function has been called?

Look at

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/outputdebugstring.asp

in combination with sysinternals dbgview to verify your function is being entered.

joe



--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net


Bob Voss wrote:
> I made a minor modification to the sample password filter from the SDK,
> compiled ut and copied it to the system32 folder on both of our Windows 2003
> DCs.. I added the dll name to the end of the Notification Packages registry
> key value on on both. The filter does not seem to be called when I change a
> password. The group policy for complex passwords is disabled because I
> don't want to use the built-in rules. One set up instructions says to
> enable this, but other postings from MSFT say it is not needed.
>
> I'm not a 'C' programmer, so I may have compiled it incorrectly. I
> installed Visual C++ from Visual Studio 6 but ended up using the command
> line "nmake /f makefile" to compile it. I set the environment variable
> TARGETOS=WINNT for the makefile to work.
>
> Was this the correct procedure? Is there anything else that must be done?
> TIA
>
>

Bob
07-09-2005, 11:51 PM
It appears the filter does not take effect until after a reboot of the
server.

"Bob" <bvoss.abcd@abcd.tsts.com> wrote in message
news:c6qdnUVf6JhZcBnfRVn-tw@netexpress.net...
>I made a minor modification to the sample password filter from the SDK,
>compiled ut and copied it to the system32 folder on both of our Windows
>2003 DCs.. I added the dll name to the end of the Notification Packages
>registry key value on on both. The filter does not seem to be called when
>I change a password.

Joe Richards [MVP]
07-09-2005, 11:51 PM
That is correct, the DLL will not be loaded by LSASS until it is rebooted.

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net


Bob wrote:
> It appears the filter does not take effect until after a reboot of the
> server.
>
> "Bob" <bvoss.abcd@abcd.tsts.com> wrote in message
> news:c6qdnUVf6JhZcBnfRVn-tw@netexpress.net...
>
>>I made a minor modification to the sample password filter from the SDK,
>>compiled ut and copied it to the system32 folder on both of our Windows
>>2003 DCs.. I added the dll name to the end of the Notification Packages
>>registry key value on on both. The filter does not seem to be called when
>>I change a password.
>
>
>


How do I Compile Password Filter