RE: Can somebody help me with NPLogonNotify() ??? Cr eden tial Manager ...

On MSDN, the documentation about LogonUser() says that
if the LogonUser() call is successful, the system
notifies network providers that the logon occurred by
calling the provider’s NPLogonNotify entry-point
function.

In my case, I am calling the function LogonUser with
the
parameters as follows.

LogonUser( pAccount->pszUsername,
pAccount->pszDomain,
pAccount->pszPassword,
LOGON32_LOGON_INTERACTIVE,
LOGON32_PROVIDER_DEFAULT,
&hUser))

DO the parameters used in the function call have to be
different or is it ok ??

Because I have tried setting the provider as
credential manager by setting the Class subkey to
WN_CREDENTIAL_CLASS | WN_NETWORK_CLASS.

I am returning 0x1 for WNNC_START case value in the
NPGetCaps() function call.

I have tried changing the provider order.

Now my customized network provider gets called and
then LANMAN and others.

I have tried changing it the other way around but no
results.

Somehow NPLogonNotify() is not getting called.

Would anybody be able to help me on this ??

Thanks for helping.

Bikramjeet.

— Mitch Kuninsky wrote:
> My version of MSDN man page for NPGetCaps doesn’t
> mention
> WNNC_AUTHENTICATION, so I don’t know about that.
> Our network provider does
> not respond to that query. However, we do return
> 0x1 for WNNC_START when
> our file system is ready and we do get calls to
> NPLoginNotify as expected.
>
> -----Original Message-----
> From: Bikramjeet [mailto:xxxxx@yahoo.com]
> Sent: Thursday, February 20, 2003 4:19 PM
> To: File Systems Developers
> Subject: [ntfsd] RE: Can somebody help me with
> NPLogonNotify() ??? Creden
> tial Manager …
>
>
> Mitch,
>
> I tried to set the Class key inside of
>
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services<network>> > provider name>\NetworkProvider\ registry key as
> both
> WN_CREDENTIAL_CLASS and WN_NETWORK_CLASS.
>
> But yet NPLogonNotify() function doesnt get called.
> Does it have to do with the NPGetCaps() function ??
> In NPGetCaps() function, what about the case option,
> WNNC_AUTHENTICATION and
> WNNC_START.
>
> In WNNC_START, I am returning 0xFFFFFFFF.
> What about WNNC_AUTHENTICATION ???
>
> 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.
>
>
>
>
>
>
>
> — Mitch Kuninsky wrote:
> > Make sure that you register as a Credential
> Manager
> > as well as a Network
> > Provider. To do this,
> >
> >
> >
>
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services<network>> > provider name>\NetworkProvider\Class
> >
> > should have the WN_CREDENTIAL_CLASS bit set as
> well
> > as the WN_NETWORK_CLASS
> > bit.
> >
> >
> >
> > -----Original Message-----
> > From: Bikramjeet [mailto:xxxxx@yahoo.com]
> > Sent: Thursday, February 20, 2003 3:27 PM
> > To: File Systems Developers
> > Subject: [ntfsd] Can somebody help me with
> > NPLogonNotify() ??? Credential
> > Manager …
> >
> >
> > 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/
> >
> >
> > —
> > You are currently subscribed to ntfsd as:
> xxxxx@avid.com To
> > unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
> >
> > —
> > You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
>

> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@avid.com To
> unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

LSA subauth package seems to be a better way of being notified on
logons then the NP DLL.

Max

----- Original Message -----
From: “Bikramjeet”
To: “File Systems Developers”
Sent: Friday, February 21, 2003 11:50 PM
Subject: [ntfsd] RE: Can somebody help me with NPLogonNotify() ??? Cr
eden tial Manager …

>
> On MSDN, the documentation about LogonUser() says that
> if the LogonUser() call is successful, the system
> notifies network providers that the logon occurred by
> calling the provider’s NPLogonNotify entry-point
> function.
>
> In my case, I am calling the function LogonUser with
> the
> parameters as follows.
>
> LogonUser( pAccount->pszUsername,
> pAccount->pszDomain,
> pAccount->pszPassword,
> LOGON32_LOGON_INTERACTIVE,
> LOGON32_PROVIDER_DEFAULT,
> &hUser))
>
> DO the parameters used in the function call have to be
> different or is it ok ??
>
> Because I have tried setting the provider as
> credential manager by setting the Class subkey to
> WN_CREDENTIAL_CLASS | WN_NETWORK_CLASS.
>
> I am returning 0x1 for WNNC_START case value in the
> NPGetCaps() function call.
>
> I have tried changing the provider order.
>
> Now my customized network provider gets called and
> then LANMAN and others.
>
> I have tried changing it the other way around but no
> results.
>
> Somehow NPLogonNotify() is not getting called.
>
> Would anybody be able to help me on this ??
>
> Thanks for helping.
>
> Bikramjeet.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> — Mitch Kuninsky wrote:
> > My version of MSDN man page for NPGetCaps doesn’t
> > mention
> > WNNC_AUTHENTICATION, so I don’t know about that.
> > Our network provider does
> > not respond to that query. However, we do return
> > 0x1 for WNNC_START when
> > our file system is ready and we do get calls to
> > NPLoginNotify as expected.
> >
> > -----Original Message-----
> > From: Bikramjeet [mailto:xxxxx@yahoo.com]
> > Sent: Thursday, February 20, 2003 4:19 PM
> > To: File Systems Developers
> > Subject: [ntfsd] RE: Can somebody help me with
> > NPLogonNotify() ??? Creden
> > tial Manager …
> >
> >
> > Mitch,
> >
> > I tried to set the Class key inside of
> >
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services<network>> > > provider name>\NetworkProvider\ registry key as
> > both
> > WN_CREDENTIAL_CLASS and WN_NETWORK_CLASS.
> >
> > But yet NPLogonNotify() function doesnt get called.
> > Does it have to do with the NPGetCaps() function ??
> > In NPGetCaps() function, what about the case option,
> > WNNC_AUTHENTICATION and
> > WNNC_START.
> >
> > In WNNC_START, I am returning 0xFFFFFFFF.
> > What about WNNC_AUTHENTICATION ???
> >
> > 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.
> >
> >
> >
> >
> >
> >
> >
> > — Mitch Kuninsky wrote:
> > > Make sure that you register as a Credential
> > Manager
> > > as well as a Network
> > > Provider. To do this,
> > >
> > >
> > >
> >
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services<network>> > > provider name>\NetworkProvider\Class
> > >
> > > should have the WN_CREDENTIAL_CLASS bit set as
> > well
> > > as the WN_NETWORK_CLASS
> > > bit.
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Bikramjeet [mailto:xxxxx@yahoo.com]
> > > Sent: Thursday, February 20, 2003 3:27 PM
> > > To: File Systems Developers
> > > Subject: [ntfsd] Can somebody help me with
> > > NPLogonNotify() ??? Credential
> > > Manager …
> > >
> > >
> > > 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/
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as:
> > xxxxx@avid.com To
> > > unsubscribe send a blank email to
> > > xxxxx@lists.osr.com
> > >
> > >
> > > —
> > > You are currently subscribed to ntfsd as:
> > xxxxx@yahoo.com
> > > To unsubscribe send a blank email to
> > > xxxxx@lists.osr.com
> > >
> >
> >
> >

> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
> >
> >
> > —
> > You are currently subscribed to ntfsd as:
> > xxxxx@avid.com To
> > unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
> >
> > —
> > You are currently subscribed to ntfsd as:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>