473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Customize DSN Login Screen

Hi Gurus

The scenario
A MS Access frontend application with Oracle Backend (Linked Tables).
The Database UserID and password is not stored and each user has a
unique UserID and password. There is no common database UserID and
password.

Each time the user logs in, the DSN UserID and Password screen is
displayed. It has three input box and they are
Service Name (it displays the DSN name by
default but editable)
UserID
Password

Requirement:
Is there any way of customizing the DSN login screen which gets
displayed when the user uses the application for the first time?

As mentioned earlier, the application uses linked tables with the
password not stored and there is no common login for the database using
which the UserID/Password can be authenticated in the backend. Also the
UserID/Password is authenticated in the backend and not in the
frontend.

Thanx in advance.

Regards
Bala

Nov 19 '06 #1
3 2431
G'day Bala
Is there any way of customizing the DSN login screen which gets
displayed when the user uses the application for the first time?
First, is it sufficient for the application to know that it's being
used for the first time on a particular pc? In most cases, it may well
be, as generally one user only uses one pc. If that's the case, there
are two things you could do:

1. Create your own 'system' table with a field that gets tagged once a
user has successfully logged into the application.

2. Create a registry entry that does the same as (1) above.

If, however, it really MUST be on a per user basis, you may need to
look at a Windows API call to get the username of the user who has
logged in to the pc, and then record the fact that this user logged in
successfully using the methods above.

HTH

Nov 20 '06 #2
Hi Max

Thanx for the response mate. It is appreciated.

It is going to be one user per PC but the requirement is each time the
user logins into the application the user must enter the
UserID/Password.

Generally there would be a single common login to the Database and all
the User Authentication is done in the frontend through custom roles
etc..

In this case the frontend is an open application but the each User has
his/her own backend login UserID/Password.

The frontend application as got linked Oracle tables through DSN. The
password is not stored since each user as got his/her own unique
UserID/Password.

Whenever the user clicks on any Forms/Reports which need to retrieve
Data from the table for the first time (since the user as opened the
Application), the DSN displays it own login screen for the user to
input UserID/Password. This screen acts on its own.

What I need is to control this screen and display customized message if
the User inputs invalid UserID/Password. Also I need to hide the
textbox with DSN name which is also editable.

Is there any API to control the DSN related Login screen?
or
Is there anyway to use a custom login screen and pass on the input
UserID and Password (other than using TransferDatabase) to MS Access
linked tables so that the DSN doesn't throwup its own login screen.

Thanx and have a great day.

Regards
Bala

Nov 21 '06 #3
"bala" <ba*****@gmail.comwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
It is going to be one user per PC but the requirement is each time the
user logins into the application the user must enter the
UserID/Password.
[snip]
The frontend application as got linked Oracle tables through DSN. The
password is not stored since each user as got his/her own unique
UserID/Password.
[snip]
What I need is to control this screen and display customized message if
the User inputs invalid UserID/Password. Also I need to hide the
textbox with DSN name which is also editable.
In my main corporate app I prompt the user at startup for their UserName and
Password required to access our IBM ISeries database (UDB400). I then take
those credentials and use them to attempt a simple passthrough query that
retrieves the system time.

If that succeeds I know the credentials are good and then run a code procedure
that loops through all table links and passthrough queries that go against that
server appending the user name and password to the connect string property.

This way the user is prompted only once per session.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Nov 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve | last post by:
I am new to .Net and Visual Studio, I have a login form and my main application form. When I login I want to call the application form, and dispose of the login. I have tried doing something...
14
by: deko | last post by:
The below code dials a phone number when the subform datasheet cell containing the number is double clicked. The problem is that the dialer application (c:\windows\dialer.exe) pops up windows on...
1
by: Gianmaria | last post by:
Hi, i'm workin on a deployment project... i added two custom screen to make some tasks. 1) I need that user insert a serial number for my setup.. next i check the validity of this serial by a...
6
by: Marty | last post by:
What is the best way do a login screen? I have the Main() method in my login screen. After iit checks the userid and password the OK button loads the main application form but the next line is...
0
by: JIM.H. | last post by:
Hello, My connection string in config.web: <appSettings> <add key="connStr" value="workstation id=myServer;packet size=4096;user id=MyUser;data source=MYSERVER;persist security info=True;initial...
9
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I am using the authentication and authorization mechanism, which its timeout is set to 60 minutes. My application consists of 2 frames - a...
1
by: leovega | last post by:
Hello, My aplication starts with a simple login window (login_page.aspx). Once the login/password is validated I redirect to an html which contains 3 frames. (mywebsite.html) The web site I...
10
by: =?Utf-8?B?UmljaGFyZCBCeXNvdXRo?= | last post by:
Hi In my app I have a SplashScreen, a login form and a main form. On launching the app, I'd like to show the SplashScreen while reading config files and attempting a database connection. I show...
4
by: Gaz | last post by:
I am having a bit of a problem getting my application to work properly. RIght here is my problem... WHen my C# windows app loads up the start form, i create a new thread and show the splash...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.