Results 1 to 2 of 2

Thread: Domain Login

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Colchester, UK
    Posts
    3

    Domain Login

    I need to login to another domain from my current one from VB 6.0.
    As the secondary domain has a different password and username from the primary I cannot piggy back on the primary logon.

    At the moment I can't seem to do it using netapi32.dll 'logonuser'

    (though I CAN logon to my current domain i.e. true returned from
    'logonuser')
    I have set my profile to act as part of operating system

    What would be ideal, would be to display the Windows standard
    login form, so the password details could be saved. Does anyone know how to do this from VB??
    or can any body shine any light on logonuser's inability
    to access another domain

  2. #2
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774
    http://www.mvps.org/vbnet/code/network/netconnect.htm

    That is a link to a sample that connects to network resources.

    Maybe it can work with Domains as well ? Not sure...just throwing out an idea to look into.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width