I’m writing an app that I need to have users logon to the domain,
Users can be running Win98,NT,2000 or ME.
Where do I begin?
I’ve tried LogonUser (UserLogon??) but it just keeps returning invalid
login.
By the way, I have no admin priviledges on the network nor access to
them.
Thanks
John Bullock
xxxxx@lincom-asg.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> I’m writing an app that I need to have users logon to the domain,
Why do you need such facility?
If you’re writing a client-server app with a security integrated with NT’s -
then the following can help:
- use DCOM
- use the correct impersonation level - Identify or Impersonate.
- on the client, ask the user to enter a username/password
- pass them to CoSetProxyBlanket (in the structure) on the server’s object
instance.
- if the user does not enter username or password - then do not call
CoSetProxtBlanket, the current user’s credentials will be used.
- on the server, call CoImpersonateClient, then extract the current user SID
via the security APIs (GetTokenInformation and such), then call
CoRevertToSelf
- in the Impersonate case (not Identify) you can even postpone calling
CoRevertToSelf and access the files and other secure objects on the server
being under impersonation. Not so with Identify - the only thing you will be
able to do under impersonation in Identify case is to query the current user
SID.
This thing will automatically use all NT4’s and w2k’s domain/AD facilites
and Kerberos.
Max
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You should refer to LogonUser() description from Platform SDK.
http://msdn.microsoft.com/library/psdk/winbase/accclsrv_9cfm.htm
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
From the documentation on LogonUser:
Requirements
Windows NT/2000: Requires Windows NT 3.51 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Advapi32.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.
My problem is that I am working on a Win98 machine, I cannot control
this, if I could I would already be running NT/2000. Also, many of the
users of my application may be running Window 9x.
There must be an easy way to get a logon dialog similar to the domain
login when I log in to the domain for authentication. I just want to
know how?
Thanks
John Bullock
xxxxx@mail.org wrote:
You should refer to LogonUser() description from Platform SDK.
http://msdn.microsoft.com/library/psdk/winbase/accclsrv_9cfm.htm
You are currently subscribed to ntdev as: xxxxx@lincom-asg.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com