Hi ALL,
Currently I am working on customizing the
authentication DLL, GinaDLL.
I have customized GinaDLL to the point where the user
account gets created on the local machine and the user
gets authenticated against the LDAP server where all
the accounts are stored.
Now along with logging onto the Windows XP
workstation, the students would also log on the Novell
server by using the Novell client.
Now, at boot time MPR calls all the network providers
in order as specified in the registry and logs onto
the workstation.
To bypass novell client dialog box, what I am trying
to do is pass the novell username and password through
the MPR so that novell client dialog box doesnt come
up asking again for the novell username and password.
So I am making use of NPLogonNotify() function in my
network provider which supports credential manager
functions.
But somehow the function NPLogonNotify() function
doesn’t get called.
The network provider dll gets loaded but
NPLogonNotify() function doesnt get called.
Can anybody help me in this matter ???
Thanks.
Bikram.
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
Bikramjeet,
The MPR calls functions of a NP DLL only by their ordinary numbers.
You need to add following into your DEF file to export your NPLogonNotify
entry point:
NPLogonNotify @500
As Mitch said, you have to add a value named “Class” to the registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\
Services<providername>\NetworkProvider
This"Class" value should have the WN_CREDENTIAL_CLASS bit set.
Look at the MSDN for more details.
Best Regards,
Valeriy Glushkov
> I am exporting the NPLogonNotify() function inside of
> .DEF file.
> But I am exporting by function name and not by ordinal
> name.
>
> What could be the problem since I am not yet able to
> get NPLogonNotify() function call working.
>
> Thanks.
>
> Bikramjeet.
>
Not true, the ordinal is irrelevant (at least, I don’t specify it
explicitly in my .def file, and my NPLogonNotify gets exported with
ordinal 3, which is certainly not == 500).
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Valeriy Glushkov
Sent: Thursday, February 20, 2003 2:46 PM
To: File Systems Developers
Subject: [ntfsd] RE: Can somebody help me with
NPLogonNotify() ??? Credential Manager …
Bikramjeet,
The MPR calls functions of a NP DLL only by their ordinary numbers.
You need to add following into your DEF file to export your
NPLogonNotify entry point:
NPLogonNotify @500
As Mitch said, you have to add a value named “Class” to the
registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\
Services<providername>\NetworkProvider
>
> This"Class" value should have the WN_CREDENTIAL_CLASS bit set.
>
> Look at the MSDN for more details.
>
> Best Regards,
> Valeriy Glushkov
>
> > I am exporting the NPLogonNotify() function inside of
> > .DEF file.
> > But I am exporting by function name and not by ordinal
> > name.
> >
> > What could be the problem since I am not yet able to
> > get NPLogonNotify() function call working.
> >
> > Thanks.
> >
> > Bikramjeet.
> >
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nryan.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Nicholas,
All the NT-related docs I have (DDKs, SDK, MSDN, etc) don’t have any
info about ordinals for a NP DLL.
But the NP DLL samples in nulmrx and smbmrx include DEF-files with
ordinal numbers. For what purposes ??
So I guess these ordinals are obsolete for the Win NT latest versions.
I could find some info about NP DLL ordinals in Win98 DDK.
Win 98 DDK says in <\Related Driver Documentation\Windows 95
Documentation\Design Guide\Networking\Function Summary>:
| NPGetCaps must be exported by name. Its presence is used by the MPR
| to identify a DLL as a valid NP. All other NP entrypoints are loaded
| by the MPR using their ordinals. An NP may export those entrypoints
| by ordinal only in order to reduce the size of the NP DLL file.
So Nicholas, you are right.
It looks like NT always uses symbolic names to call NP DLL functions and
simple ignores ordinals.
Best regards,
Valeriy Glushkov
----- Original Message -----
From: “Nicholas Ryan”
To: “File Systems Developers”
Sent: 21 02 2003 1:06
Subject: [ntfsd] RE: Can somebody help me with NPLogonNotify() ???
Credential Manager …
> Not true, the ordinal is irrelevant (at least, I don’t specify it
> explicitly in my .def file, and my NPLogonNotify gets exported with
> ordinal 3, which is certainly not == 500).
>
> - Nicholas Ryan
>
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Valeriy
Glushkov
> > Sent: Thursday, February 20, 2003 2:46 PM
> > To: File Systems Developers
> > Subject: [ntfsd] RE: Can somebody help me with
> > NPLogonNotify() ??? Credential Manager …
> >
> >
> > Bikramjeet,
> >
> > The MPR calls functions of a NP DLL only by their ordinary numbers.
> >
> > You need to add following into your DEF file to export your
> > NPLogonNotify entry point:
> > NPLogonNotify @500
> >
> > As Mitch said, you have to add a value named “Class” to the
> > registry key: HKEY_LOCAL_MACHINE\System\CurrentControlSet<br>> > Services<providername>\NetworkProvider
> >
> > This"Class" value should have the WN_CREDENTIAL_CLASS bit set.
> >
> > Look at the MSDN for more details.
> >
> > Best Regards,
> > Valeriy Glushkov
> >
> > > I am exporting the NPLogonNotify() function inside of
> > > .DEF file.
> > > But I am exporting by function name and not by ordinal
> > > name.
> > >
> > > What could be the problem since I am not yet able to
> > > get NPLogonNotify() function call working.
> > >
> > > Thanks.
> > >
> > > Bikramjeet.
> > >
> But the NP DLL samples in nulmrx and smbmrx include DEF-files with
ordinal numbers. For what purposes ??
I personally kept the ordinals in my NP DLL to be the same as in the
sample. This can be important, I would not assume that they are not
important. If it would be so, then .DEF would not contain the ordinals
for them.
Max