Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Network Authentication Login


hello everyone, I am new here and have searched the forums for solution to my problem but can not seem to find it. I did find one but it's not a workable solution.

I am new to Visual Basic and still learning. I'm learning VB6 using SP 6. Now I am taken VB classes now but working on a home project to get my self more using to using VB and also learn other stuff the the classe doesnt cover.

The program that I am writing is going to access an MS database on a linux server (Samba) over the network. The folder is shared and only 1 user can access it (only 1 username). When I try to access the database on that file, VB is giving me an error stating that I do not have access to that file.

I know the username and password but does not know how or where to begin on passing the username and password to that network authentication dialog to log in the program in for access to that database.

If possible please direct me to where I can find out how to solve this issue, thanks in advance.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Network Login Authentication
I was recently asked if it would be possible to use the Network domain username and password (Windows login) in Access 2000/Access 2002/Access 2003? If so, How would this be occomplished?

Basiclly, i want to take the Windows Login (Domain) username and password and implement it into an Access application. Is this possible? If so, How?

Network Login Authentication Problem
Hey! could someone provides me a code that s permanently mapped on a particular server/client. Coz I want to implement a program that should automatically access a file on a network, but my problem is I couldn't access on it coz thr's a password and username. Plzzzzz. hellp??? vry important.

I have a code com'n from this forum also, bt still dosn't work.

The path/file that m going to access s: \192.168.2.10samplefile.extension
- username: Administrator
- password: password
The O.S is Windows 2K.

here's the code!!!!!!!



VB Code:
'General Declarations section of your formPrivate Declare Function WNetAddConnection Lib "mpr.dll" Alias "WNetAddConnectionA" _(ByVal lpszNetPath As String, ByVal lpszPassword As String, ByVal lpszLocalName As String) As LongPrivate Declare Function WNetCancelConnection Lib "mpr.dll" Alias "WNetCancelConnectionA" _(ByVal lpszName As String, ByVal bForce As Long) As LongConst WN_SUCCESS = 0 ' The function was successful.Const WN_NET_ERROR = 2 ' An error occurred on the network.Const WN_BAD_PASSWORD = 6 ' The password was invalid.  Function AddConnection(MyShareName As String, MyPWD As String, UseLetter As String) As Integer    On Local Error GoTo AddConnection_Err    AddConnection = WNetAddConnection(MyShareName, MyPWD, UseLetter)AddConnection_End:    Exit FunctionAddConnection_Err:    AddConnection = Err    MsgBox Error$    Resume AddConnection_EndEnd Function Function CancelConnection(DriveLetter As String, Force As Integer) As Integer    On Local Error GoTo CancelConnection_Err    CancelConnection = WNetCancelConnection(DriveLetter, Force)CancelConnection_End:    Exit FunctionCancelConnection_Err:    CancelConnection = Err    MsgBox Error$    Resume CancelConnection_EndEnd Function  'usage example: Private Sub Form_Load()    'KPD-Team 1999    'URL: [url]http://www.allapi.net/[/url]    'E-Mail: [email]KPDTeam@Allapi.net[/email]     'to add a connection call by:    Call AddConnection(<SharePath>, <Password>, <DriveLetter>)    'To cancel a connection type:    Call CancelConnection(<SharePath, <Force>)End Sub

Login Authentication Through Winsovk
i've build a client server application.
thera are two kind of client, member and guest.the member's usernames and passwords is saved in database Ms.Access in the server.
How to make the authentication through winsock where member insert username and password and guest can insert their name and it is saved in database ???

Login Using Windows Authentication
Anyone have any great ideas on how to incorporate a login from using the network or Windows login information to authenticate against? ie if my login info was username: p and passsword: q, I want to be able to enter that same information into the login screen of my vb6 program and have it authenticated the same way the network/windows login is authenticated. I know I can get the user and the computer but that really ins't what I need, I also know about checking a table or file, but again, not what I am looking for. Any suggestions, code showing how to implement is appreciated.

Login Using Windows Authentication
sorry for hijacking this thread..

I'm operating a internet cafe. i have a management software (ecafepro) to control all the pc like locking, unlock, restart, shutdown and etc. It have a user login page which can login and verify to the program server (ecafepro server). Currently i'm thinking to add a linux SAMBA file server and map a network drive/harddisk space whenever there is user login using the ecafepro.

linux SAMBA file server will need windows login username and password to match the SAMBA login username and password. So i'm thinking whether can I RESET the windows user login using the user login from ecafepro??


Thanks & best regards,
Max.

Login Windows Authentication ****
I get an error from this piece of code that the mpr.dll doesn't have an entrypoint WNetVerifyPasswordA. I have no idea how to solve this. suggestion would be welcome.

Option Explicit

Declare Function GetUserName Lib "advapi32.dll" Alias _
"GetUserNameA" (ByVal lpBuffer As String, _
nSize As Long) As Long

Private Declare Function WNetVerifyPassword Lib "mpr.dll" Alias _
"WNetVerifyPasswordA" (ByVal lpszPassword As String, _
ByRef pfMatch As Long) As Long

Public Function GetWindowsLoginUserID() As String
Dim rtn As Long
Dim sBuffer As String
Dim lSize As Long

sBuffer = String$(260, Chr$(0))
lSize = Len(sBuffer)
rtn = GetUserName(sBuffer, lSize)
If rtn Then
sBuffer = Left$(sBuffer, lSize)

'Reformat string
If InStr(sBuffer, Chr$(0)) Then
sBuffer = Left$(sBuffer, InStr(sBuffer, Chr$(0)) - 1)
End If

GetWindowsLoginUserID = sBuffer
Else
'Error!
GetWindowsLoginUserID = ""
End If

End Function

Public Function VerifyWindowsLoginUserPassword _
(ByVal Password As String) As Boolean
Dim rtn As Long, Match As Long
rtn = WNetVerifyPassword(Password, Match)
If rtn Then
VerifyWindowsLoginUserPassword = False
Else
VerifyWindowsLoginUserPassword = (Match <> 0)
End If
End Function


Form load

txtLogin.Text = GetWindowsLoginUserID

end sub

Private Sub command1_click()

If VerifyWindowsLoginUserPassword(txtPW.Text) Then
MsgBox "Pwd OK"
Else
MsgBox "Wrong Pwd"
End If

end sub

Windows Authentication Login
Hi everyone,

I have a doubt in ASP and SQL server login.

I'm an application which involves above integration.

Customer requires windows authentication login instead of sql auth.
it is working fine with sql authentication but not with windows auth.

Do u have any soln.

Warm Regards
Raju R

Login Form Authentication Problem
I have a user name and password textfield on a form. How do I use these fields in an SQL query? ie SELECT userid from customer where username = txtUserName.

This query is in the record source. Does it need to go anywhere else?

I am using the MS ADO data control component.
TxtUserName is a textfield. This is a ADO(DC) linked database.

Any help appreciated

Visual Sourcesafe Login Authentication
Hello

I am trying to use visual sourcesafe for the first time. i am not sure how the system authenticates VSS.

is the authentication carried out on the local machine where some sort of license file exists or does it need to authenticate with a central server.

at the moment i can see the following screen

Visual SourceSafe Login

i types in my intranet username for the username
and intranet password for the password

it is pointing to database common. when i click on browse the path it provides is

C:program FilesMicrosoft Visual Studio

the checkbox "open this database next time i run Visual SourceSafe" is checked.

when i click ok it says user "foouser" not found

interestingly enough when i input the username as "guest" and try the password "guest" it says

"invalid password" which leads me to beleive it is trying to authenticate from some place, if you guys tell me if it is a central server, i can catch hold of my IT administrator and request him to give me a password or account+ password

Connecting To A Database Using NT Login Authentication
Hi,

I need that my app connects to a SQL Database using a different NT Login that the one is logged on currently on my PC, how do I define that I want to connect using a different NT login?

Can I achieve this by using a special parameter in the StringConnection property

Thanks in advance

Browser Window Authentication/login
Hi All,

Hope this hasn’t come up before – I have searched several times on vbCity, but still haven’t found what I’m looking for. I found this topic http://vbcity.com/forums/topic.asp?tid=5308 but it doesn’t appear to work for my application.

I am using VB via the ShellExecute API to open a browser window and point it to a secure address that needs authentication (username and password).

What I would like to do is somehow pass the login details to the browser window, so it will be automatically logged in.

I tried passing the values like this
Code:http://username;password@www.dummy.com/secure.htm

http://www.dummy.com/secure.htm?user=dummy&pswd=dummy

but these don’t seem to work (I changed the ':' to a ';' to stop the smiley appearing). I know it can be done via winsock or the WinHttpRequest object, but how would it be done with a simple browser window?

Does anyone know how to auto-login a browser window?
Is there a way of sending a browser window the authentication data?

Thanks

VB Code For User Login And Password Authentication
Hi,

Any help with this problem is much appreciated..

I have a login page connected to an Access database. I need the code that will scan the database for the username and password combination and accept it.

I think I need a loop, or movenext and compare, but as I'm a complete noob with VB the variations Ive tried won't work and I've been banging my head against the wall!

Thanks for your time.

Automatically Login To A Protected Site (Using Authentication Dialog) Like Routers...
Hi - first time posting at this forum:wave: ,

i want to make a simple application - i tried to search the forum but nothing found...

Automatically Login to a Protected Site (Using Authentication Dialog) like routers... or protected directory (.htaccess)

Well as i am saying - i would like to connect with simple way like from address bar or making vb program (i have many wifi aps and i want to control them from a program in vb using webbrowser or winhttp)

i know that at ftp you can write at address bar of ie:
Quote:




ftp://username:password@site






old days i think that you can use it too for http:// but - many times i tried and get nothing... :-(

So i am familiar with VB 6 / winhttp / webbrowser controls and if someone can help me with this prob i have will be cool!!!!

Thanx in advance


ps: @ moderators - i didn;t know acctually where to post this thread - i hope it will be at right section...

Automic Authentication To Network?
Hello,
i want to make Automic Authentication to network program.
When the program run,it must be logon to another machine in the network.

How can i do that?

Best Regards

Automated VPN/Network Share Authentication
My client has requested the ability to automatically synchronise two datasets located at different sites over VPN.

My current design is to establish the VPN connection automatically and browse the network share to locate the database and commence the synchronisation. However, im unsure how to establish a VPN connection in code and to automate the username/password authentication without the need for the user to enter the details. The emphasis on the design is "no user interaction" therefore I cannot think of a design workaround if this is not possible.

Any help in this matter would be greatly appreciated

Network: Win95 User Authentication
I have the attached code, but it seems to work for WIN2000 and UP only. Is there a way around this to authenticate win95 users ?

Stupid Question? SQL Server DSN - NT Authentication - Network ID Change?
We have a VB Appln running in client machines.

DSN's are set to Windows NT authentication.

But is SQL Server, Mangers (Supervisors) are given DELETE permission. So they can delete a record.

The problem here is the supervisor can only delete a record thro VB application only if he logins Windows. We need him to delete the record by logging on to just VB application (Not Windows Login) on the client machine.

How do you do that? That is changing the Windows login ID thro appln or If question looks really absurd pls suggest any other way to DELETE from client machine.

Login ID's On Network
how do I get all of the computer login ID's on the network? If possible, how do I retrieve that info & match the logins to computer names?

Network Login
I forget where I get this code, but I need it to pull the Network Login instead of the time. I think it is found in HKEY_USERS instead of HKEY_CURRENT_USER, but I'm not sure.


Code:


Private Declare Function RegOpenKeyA Lib "ADVAPI32.DLL" _
(ByVal hKey As Long, ByVal sSubKey As String, _
ByRef hkeyResult As Long) As Long

Private Declare Function RegCloseKey Lib "ADVAPI32.DLL" _
(ByVal hKey As Long) As Long

Private Declare Function RegSetValueExA Lib "ADVAPI32.DLL" _
(ByVal hKey As Long, ByVal sValueName As String, _
ByVal dwReserved As Long, ByVal dwType As Long, _
ByVal sValue As String, ByVal dwSize As Long) As Long

Private Declare Function RegCreateKeyA Lib "ADVAPI32.DLL" _
(ByVal hKey As Long, ByVal sSubKey As String, _
ByRef hkeyResult As Long) As Long

Private Declare Function RegQueryValueExA Lib "ADVAPI32.DLL" _
(ByVal hKey As Long, ByVal sValueName As String, _
ByVal dwReserved As Long, ByRef lValueType As Long, _
ByVal sValue As String, ByRef lResultLen As Long) As Long


Sub UpdateRegistryWithTime()
RootKey = "hkey_current_user"
Path = "softwaremicrosoftoffice9.0excelLastStarted"
RegEntry = "DateTime"
RegVal = Now()
LastTime = GetRegistry(RootKey, Path, RegEntry)
Select Case LastTime
Case "Not Found"
Msg = "This routine has not been executed before."
Case Else
Msg = "This routine was lasted executed: " & LastTime
End Select
Msg = Msg & Chr(13) & Chr(13)

Select Case WriteRegistry(RootKey, Path, RegEntry, RegVal)
Case True
Msg = Msg & "The registry has been updated with the current date and time."
Case False
Msg = Msg & "An error occured writing to the registry..."
End Select
MsgBox Msg, vbInformation, "Registry Demo"
End Sub

Private Function GetRegistry(Key, Path, ByVal ValueName As String)

Dim hKey As Long
Dim lValueType As Long
Dim sResult As String
Dim lResultLen As Long
Dim ResultLen As Long
Dim x, TheKey As Long

TheKey = -99
Select Case UCase(Key)
Case "HKEY_CLASSES_ROOT": TheKey = &H80000000
Case "HKEY_CURRENT_USER": TheKey = &H80000001
Case "HKEY_LOCAL_MACHINE": TheKey = &H80000002
Case "HKEY_USERS": TheKey = &H80000003
Case "HKEY_CURRENT_CONFIG": TheKey = &H80000004
Case "HKEY_DYN_DATA": TheKey = &H80000005
End Select


If TheKey = -99 Then
GetRegistry = "Not Found"
Exit Function
End If

If RegOpenKeyA(TheKey, Path, hKey) <> 0 Then _
x = RegCreateKeyA(TheKey, Path, hKey)

sResult = Space(100)
lResultLen = 100

x = RegQueryValueExA(hKey, ValueName, 0, lValueType, _
sResult, lResultLen)

Select Case x
Case 0: GetRegistry = Left(sResult, lResultLen - 1)
Case Else: GetRegistry = "Not Found"
End Select

RegCloseKey hKey
End Function

Private Function WriteRegistry(ByVal Key As String, _
ByVal Path As String, ByVal entry As String, _
ByVal value As String)

Dim hKey As Long
Dim lValueType As Long
Dim sResult As String
Dim lResultLen As Long

TheKey = -99
Select Case UCase(Key)
Case "HKEY_CLASSES_ROOT": TheKey = &H80000000
Case "HKEY_CURRENT_USER": TheKey = &H80000001
Case "HKEY_LOCAL_MACHINE": TheKey = &H80000002
Case "HKEY_USERS": TheKey = &H80000003
Case "HKEY_CURRENT_CONFIG": TheKey = &H80000004
Case "HKEY_DYN_DATA": TheKey = &H80000005
End Select


If TheKey = -99 Then
WriteRegistry = False
Exit Function
End If


If RegOpenKeyA(TheKey, Path, hKey) <> 0 Then
x = RegCreateKeyA(TheKey, Path, hKey)
End If

x = RegSetValueExA(hKey, entry, 0, 1, value, Len(value) + 1)
If x = 0 Then WriteRegistry = True Else WriteRegistry = False
End Function


Sub TestIt()
RootKey = "hkey_current_user"
Path = "softwaremicrosoftoffice9.0commonautocorrect"
RegEntry = "path"
MsgBox GetRegistry(RootKey, Path, RegEntry), vbInformation, _
Path & "RegEntry"
End Sub
I am very new with the regisrty. Eventually I am going to track each user that modifies the document and track it with their network login.

Mike

Network Map Login
Hello,
I want to to connect an another machine that shared for the network.
But my xp doesnot have save passrod and does not connect to network map automic.

Network map like : \mainmachinesharedfolder

What should i do for that?

please help me!

Network Login
Hi,

Does anyone know if you can programmatically read the network login of a user using VB?

I need to know the user logged on.

Is this specific to each version of windows or type of network?

Regards
rotsey

How To Get Network Login Name
I know how to get the Windows User Name like so:

Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" _
(ByVal lpBuffer As String, nSize As Long) As Long

BUT how can i get the Network (NT 4.0 Server) Login Name?

Thanx in advance.

Rami

How To Login Network Using VB
How to login computer network using vb code.

Network Login ID?
Do anybody knows how to get the ID that user key in
to log into the network?

I heard from somebody that this is different from the
'Windows' login. What is the differences?

Thanks

Login Into Network
Hi.
I need to check the user login, and verify he has the permission to use the net.
What I need is to send User name and password to some api (or any other program) and get true/false, or just open the net login form.
Help me please...


Smile, Shmulik. (-;

How To Capture The Network Login Id
Hi there,

The company has WIndowNT/Window 2000 and network daemon login account for everyone.

I need to capture that login ID/UserId for my MS excel VBA application, in order to check for security access. I have tried Application.UserName but it is not registered in Ms excel. What other way to get the login id.

Please help.
Thanks,
Kosin

Login Other Computer In Network
Hi All,
Please help me !
I have issue. In VB I want to login other computer in network by username and password.But I can't do that , Please help me

Example : In my net I have one compter with IP 192.1.1.20
Usename : greatful
Pass : 123456

In which way I can login it (in Vb)

Anyone has any suggestion, please let me know !

Thanks alot

Login Network Question
Hey there

I;m not too sure on how to go about this, i have a client server application, my question is

1) how do i request time-out, if my server is shut down...
2) Lets say my client side is packaged, how do i write a code whereby i could set the server port and ip and one point... using command prompt...

Is there any sample codes out there for this

thank you very much for helping me out,
Have a nice day!

User Network Login
how I can get a list of all Network Users
into my VB Application either as an array or
a list box or any thing else.

I wish to provide a tool where a user could
select another user's login name from the
list provided and send a mail to him.

Thanks!

Windows Network Login
Hello, I am trying doing writing a program as a project for my visual basic class. I am having problem logining in to a network place using the program I wrote.

VB program is going attempt to access file on remote server (linux or windows through samba) for reading and writing. The file is a database MS access. However the folder it self is protected with a username and password.

Is there a way for me to enter the username and password to the authentication box automatically using the VB program, any help would appretiate and thanks in advance.

Coderli

Network Specified - Login Problem
hi, i got problem to login on network using vb 6.0...

this is the situation.. i need to connect from this pc to another pc to get the connection of database, filesharing, and so on

however some computer have a windows network protection... that need to login before can continue to access to that computer...

e.g.

i type [\192.168.1.19] on run(start menu).. some of the pc will need to key-in the username and password before access to the pc..

does anyone know any code to login using vb... now always connect manual before let my program run...

hope someone can answer my question........ thank you first

edit:

i have find on this forum... didn't have any answer that i want.... hope someone can reply me.. thanks again



Edited by - dyth on 8/2/2005 12:15:49 AM

Auto-Network Login In Windows 98
Does anybody know how to get rid of the network login window that appears each time you start windows? Programs such as Tweak Manager can do it, but since I do not have neither Win98 or WinMe I can't test it!

So, does anybody know what registry values I have to edit?

Backup Database To Network Using SA Login
I need to backup my database to the network. The problem is that I will be doing this while logged in as SA. Is there anyway to get SQLServer to use an actual NT login to attach to the network drive.

Currently I get an Access Denied error from the OS. I am assuming that this is because SQL is trying to use SA on my domain and that user doesn't exist in the domain


Thanks in advance

Computer Names && Login ID On Network
How would I go about getting all of the login ID's from a workgroup matched up with their respective computer names?

VB6: How To Get (LAN) Network Sharing Folder Login Dialog Box?
 I am struggling how to bring out network login Dialog when connecting to a sharing LAN computer. In Explorer,Clicking a folder of a LAN sharing computer,XP/Win9x will pop up a dialog box to prompt me to fill in user name and password.My question is how to bring out this dialog through VB? API WNetAddConnection3 seems no function.(I don't want to use
MAP drive Windows)
    Example like doing a mini Foldertree using Treeview, With a click on the node,if the target computer used Password protection,Program should show up a "connect to xxx" dialog.But I have no idea how to bring out this dialog box.

Private Sub Command1_Click()
Dim udtNetResource As NETRESOURCE
Dim lngWNetApiResultCode As Long
Dim strPassWord As String
Dim strUserName As String
  

With udtNetResource
.dwScope = RESOURCE_GLOBALNET
.dwType = RESOURCETYPE_DISK
.dwDisplayType = RESOURCEDISPLAYTYPE_SHARE
.dwUsage = RESOURCEUSAGE_CONNECTABLE
.lpLocalName = vbnullstring
.lpRemoteName = "\Planning2D"
End With
  

strPassWord = vbNullString
strUserName = vbNullString
  

lngWNetApiResultCode = _
WNetAddConnection3(Me.hWnd, _
udtNetResource, _
strPassWord, _
strUserName, _
CONNECT_UPDATE_PROFILE Or _
CONNECT_INTERACTIVE Or _
CONNECT_PROMPT)

If lngWNetApiResultCode = NO_ERROR Then
debug.Print "Successful"
ElseIf lngWNetApiResultCode = ERROR_CANCELLED Then
debug.Print "cancelled"
Else
debug.Print "Failed"
End If
End Sub

Private Sub Command2_Click()
Dim lngWNetApiResultCode As Long
Dim strLocalName As String

strLocalName = vbnullstring

lngWNetApiResultCode = _
WNetCancelConnection2(strLocalName, _
CONNECT_UPDATE_PROFILE, _
False)

If lngWNetApiResultCode = NO_ERROR Then
Debug.Print "Cut OK"
Else
Debug.Print "Failed to Cut"
End If
End Sub
  

bas module:

Type NETRESOURCE
dwScope As Long
dwType As Long
dwDisplayType As Long
dwUsage As Long
lpLocalName As String
lpRemoteName As String
lpComment As String
lpProvider As String
End Type
  

Declare Function WNetAddConnection3 Lib "mpr.dll" _
Alias "WNetAddConnection3A" _
(ByVal hwndOwner As Long, _
lpNetResource As NETRESOURCE, _
ByVal lpPassword As String, _
ByVal lpUserName As String, _
ByVal dwFlags As Long) As Long

Declare Function WNetCancelConnection2 Lib "mpr.dll" _
Alias "WNetCancelConnection2A" _
(ByVal lpName As String, _
ByVal dwFlags As Long, _
ByVal fForce As Long) As Long

 Const RESOURCETYPE_DISK = &H1
 Const RESOURCE_GLOBALNET = &H2
 Const RESOURCEDISPLAYTYPE_SHARE = &H3
 Const RESOURCEUSAGE_CONNECTABLE = &H1
 Const CONNECT_UPDATE_PROFILE = &H1
 Const CONNECT_INTERACTIVE = &H8
 Const NO_ERROR = 0&
 Const ERROR_CANCELLED = 1223&
 Const CONNECT_PROMPT As Long = &H10
  

How Do We Access Network Folders In PCs That Need Password Login? #Resolved, Thanks#
Hello there everywan ^_^ My first post here in the community ^_^

Here's the scenario:

We're deploying a system in a company that has a win2k server, and we have to put our ms access mdb in one of its shared folder.

Our original plan is to access the folder from remote machines using GetFolder("\servernamepathname") but this presents us an error, since we need to provide login name and password before we can access folders from the server >_<

Anywan out there know how do we automate this in VB code?

Thankies a lot



Edited by - amao on 1/15/2006 10:46:07 PM

Windows Authentication VS SQL Server Authentication.
Hi Gurus,

I have a simple VB - SQL Server 2000 application which uses a connection string to connect to the database.

following is the scenarios:

1. when pass connection string with valid sql user id and password, it connects successfully
2. If I am logged in as a valid windows NT user, and don't provide any userid and pwd to the connectin string, it connects.

But when I logged in as a valid windows user, and i pass an invalid SQL userid and password to the SQL server, the ADO still logs me in to the application, by ignoring the invalid userid passed through the connection string. It seems to be logging me in based on my windows NT user id.
I don't want this to happen. I want the SQL server to give first preference to the userid provided in the connection string. But I want to do it without changing the SQL server security to 'Standard security. Is there any way that i can force the ADO to use the SQL server authentication, when the user id passed to the connection string is not the same as the windows NT user id.

Thanks !

Web Site Auto-login Post (login And Password)
Hi, I'm building a small project and I'm hitting a brick wall. I would like to build a small VB app to post the user name and password to sites (http and https) such as yahoo mail, ebay, etc... I've been looking at inet and wininet and not having much luck.

If any one has code examples on how to do this or simular that I could view that would be great.

thanks and have a great day.

Login A User To Windows (known Password, Known Name, Just Do The Login)
I think the title says all about it... I just need a simple code ( Login(Username as String, Passwort as String) ) that does the Windows Login.

When the computer boots up, a form appears and by just klicking a button a user should be logged in. Thats all i need

Sending Login/password To Internet Browser Login/password Box
Once a browser has visited a URL that my program told it to visit how can i make my program enter in the login/password for that url if one comes up. How could it enter the login/pass for netscape and IE browsers.

Thanks in advance for your help.

Authentication
I want to use authentication for my program so that when ever a user runs my program, it checks through internet, and i should have option to outdate the program through the internet. I have a webserver, but I'm not familiar to the code which i should use for something like this.

Authentication
Is it possible to validate a password supplied by a user on a windows NT4.0 or 2K domain server?

Or

would it be possible to validate the password against the client who should be logged in with the same user name?

I already using a API call can get the currently logged in user.
so all that is left to do is to ask windows to validate it for me.

I am using VBA but i can use VB 5 / 6.

Is this possible

Thanks in advance

Authentication
I am trying to authenicate a user on a windows 9.x platform to save me updateing two database NT Sam database and my own

so in effect I want to prompt a user to login to my program and verify that they actually can log in and are registered and also to retrieve some group membership details if possible but not essential.
The reason is that the user list will probably end up being a few hundred and I dont want to have to maintain this list manually.

Thanks in advance

Web Authentication
I am trying to login to a web site using Winsock but i am not able to get any response from the site
this is the code i am using to login


Code:
Private Sub cmdLogin_Click()
Call DisableAll
lblStatus.Caption = "Logging In..."
Winsock1.RemoteHost = "test.authorize.net"
Winsock1.RemotePort = 443
Winsock1.Connect
End Sub
Private Sub Form_Initialize()
InitCommonControls
End Sub
Private Sub Winsock1_Connect()
PostData = "MerchantLogin=Test&Password=Test"
Winsock1.SendData "POST" & " /ui/themes/anet/Logon.aspx?sub=signin HTTP/1.1" & vbCrLf & _
"Host: test.authorize.net" & vbCrLf & _
"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13" & vbCrLf & _
"Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5" & vbCrLf & _
"Accept-Language: en-us,en;q=0.5" & vbCrLf & _
"Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" & vbCrLf & _
"Accept - Encoding: gzip , deflate" & vbCrLf & _
"Keep-Alive: 300" & vbCrLf & _
"Connection: keep-alive" & vbCrLf & _
"Referer: https://test.authorize.net/ui/themes/anet/Logon.aspx?sub=signinMerchantLogin=Test&Password=Test" & vbCrLf & _
"Content-type: application/x-www-form-urlencoded" & vbCrLf & _
"Content-Type: application/x-www-form-urlencoded" & vbCrLf & _
"Content-Length: " & Len(PostData)
PageSource = vbNullString
End Sub


but i don't get anything in Winsock1_DataArrival it just do nothing after successfully login to site

i have also tested on other login site it work fine

this is the info i get from Firefox Addon


Code:
https://test.authorize.net/ui/themes/anet/Logon.aspx?sub=signin

POST /ui/themes/anet/Logon.aspx?sub=signin HTTP/1.1
Host: test.authorize.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://test.authorize.net/ui/themes/anet/logon.aspx
Cookie: stoken=_QoCnESBalNW6cHDwUT%24BB8bcTmvtOcHMY%24b9%24aAcGQA; rwizard=6
Content-Type: application/x-www-form-urlencoded
Content-Length: 32
MerchantLogin=Test&Password=Test
HTTP/1.x 200 OK
Server: Microsoft-IIS/5.0
Date: Wed, 02 Apr 2008 13:54:17 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 8813



can anybody tell me how can i login using this info?

Sql Authentication I Need Help &lt;&lt;&lt;
i got a problem guys how can i make sql server authentication to have a password and login ,, it set to default in windows authentication , that i had like to change

NT Authentication
any one know how to pass a user name and password to a logon
server for authentication regardless of the user logged on to the
machine checking?

I have attached a sample project that works only if the current
user you are checking is logged on to the machine you are checking
from.

Thanks,
Jason

Authentication Through PDC
Setting up a Program to lock out users in our WAN from getting out to the internet. I want them to authenticate their username and password through the PDC. Can anyone help?

- SQL Authentication -
What's the recommended form of SQL Authentication?
There's two types right? Integrated and SQL?

I have a COM object that has all the SQL code in it to access a database on my machine but when called from an asp page - the component tries to access the database with the IUSER account.

If anyone is using MSDE, do you know how to change the type of SQL authent. ? Any ideas are welcome.

Thanks in advance

NT Authentication
Hi, All.

How can I use NT authentication logon, to my application.

I can only get user logon with domain, that problem is how can i verifying
Logon password again.

thank's,

Jordan Sparta

> mailto: email@removed
>

Copyright © 2005-08 www.BigResource.com, All rights reserved