Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8149827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:55:44+00:00 2026-06-06T14:55:44+00:00

We have an older VB6 application that used to run under various user’s accounts.

  • 0

We have an older VB6 application that used to run under various user’s accounts. We had to move it to a ‘public’ machine where multiple users use the same account, which is logged in automatically.

Is there a way to pop-up the official windows authentication form, have the users enter their credentials and pass me back a status weather or not authentication occurred or failed?

I could have the users enter in their username/password into a form created by myself and use the attached code to validate authentication. The problem is that this just looks sketchy to begin with, and I’d rather not have potential access to users passwords.

Here is the code I can use to authenticate a user:

on error resume next
strUserName = "username"
strPassword = "password"
strADsPath = "WinNT://domainname"
iFlags = "0"

' bind to the ADSI object and authenticate Username and password 
Set oADsObject = GetObject(strADsPath)
strADsNamespace = left(strADsPath, instr(strADsPath, ":"))

set oADsNamespace = GetObject(strADsNamespace)
Set oADsObject = oADsNamespace.OpenDSObject(strADsPath, "domainname\" & strUserName, strPassword, 0)

If not (Err.number = 0) Then
    MsgBox(strUserName + " Failed.")
Else
    MsgBox(strUserName + " Authenticated.")
End If

I am hoping for something like thus:

if (AuthenticateUser() <> true)
    MsgBox(strUserName + " Failed.")
Else
    MsgBox(strUserName + " Authenticated.")
End If
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:55:45+00:00Added an answer on June 6, 2026 at 2:55 pm

    You could try a small stub executable that just runs the main one with ShellExecute() and the "runas" verb/operation. This should cause windows to prompt for the username/password to run as. This may limit the access they have interact with other applications though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an older web application that uses a MySQL Database (MYISAM). I noticed
I have a toolbar developed under older versions of Windows that is largely cut
We have a legacy VB6 application that uses Crystal Reports XI to generate printed
I have an application written in VB6 that writes data to a spreadsheet. I'm
I have a VB6 application that still references some old VB5 libraries (dll, vbr,
I have an older VB6 project that I'm trying to add unit tests for.
I have an older application (written in Delphi 6) that has to be ported
I have an older application that consistently crashes on 10.7. It appears to be
I have an older ASP.NET MVC application that uses classic web forms views. As
I have some older (broken) code that has a join using a *= table1.ID

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.