Programmatically kill user connection/log user off server. 
Author Message
 Programmatically kill user connection/log user off server.

I need to be able to kill a user's connection the the server.  That is, I
need to log them off the server.  This is not the PDC, but a member server.
The user is most likely a member of a global group who has rights to access
the server.  I can find lots of samples to tell me who is logged on and how
to log on a user, but nothing to log off a user.

I see this problem approached by enumerating the users within the specific
group(s) and logging them off.  But how do I log them off.

David



Tue, 21 Jan 2003 03:00:00 GMT  
 Programmatically kill user connection/log user off server.
David:

You can do a NetSessionEnum and then a NetSessionDel to end a session
between a client & server. However, this doesn't mean that the user has been
logged off as it's equivalent to disconnecting from a network share. The
user can always restablish that connection at a later time after you have
terminated the session. Also, the security token given to that user when
they logged onto the domain is not lost because you performed this
operation - it remains intact.

Marc


Quote:
> I need to be able to kill a user's connection the the server.  That is, I
> need to log them off the server.  This is not the PDC, but a member
server.
> The user is most likely a member of a global group who has rights to
access
> the server.  I can find lots of samples to tell me who is logged on and
how
> to log on a user, but nothing to log off a user.

> I see this problem approached by enumerating the users within the specific
> group(s) and logging them off.  But how do I log them off.

> David



Tue, 21 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How do i make a server program that will log and log off other users

2. Closing Connection not logging off user

3. Disconnecting/logging off user from server (domain)???? URGENT

4. Logging off user remotely from server.

5. Code to kill off Current Users

6. Code to kill off current users

7. Logging off users

8. Logging Users off an Access Database

9. compacting, force user to log off

10. Unable to log a user off in VBA

11. Logging Users Off The System

12. Logging off Users Automatically For Backups

 

 
Powered by phpBB® Forum Software