473,386 Members | 1,766 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,386 software developers and data experts.

Is it possible to "remember" log in credentials? (Many MDB's sharing one MDW)

Maybe I'm missing something obvious, but if I several MDB's that use
the same secure workgroup MDW file and the user logs into one of them
is there a way through code that I can open other databases using
his/her credentials that were validated when the first database was
opened? (I want to open a new physical instance of Access, not a
ADOX connection or DAO workspace. Basically trying to avoid making
them put in their User Name and Password more than once.)

I've noticed that I can simulate the shortcut by using the shell
command and send the user name in the command line parameter, but I
don't know of any way to send their password so they still get
prompted for that...

Thanks in advance...

Mike
Nov 13 '05 #1
9 2609
"Mike Von Stein" <mv*******@yahoo.com> wrote in message
news:c9**************************@posting.google.c om...
Maybe I'm missing something obvious, but if I several MDB's that use
the same secure workgroup MDW file and the user logs into one of them
is there a way through code that I can open other databases using
his/her credentials that were validated when the first database was
opened? (I want to open a new physical instance of Access, not a
ADOX connection or DAO workspace. Basically trying to avoid making
them put in their User Name and Password more than once.)

I've noticed that I can simulate the shortcut by using the shell
command and send the user name in the command line parameter, but I
don't know of any way to send their password so they still get
prompted for that...


If the password were easily retrievable from code what good would it be?

Once in your primary application you could prompt them for it again with
your own form and store it as a variable. Then at least you would not need
to have them enter it more than twice. Once to get in initially and then
again where you can save it.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
On 15 Jun 2004 23:40:44 -0700, mv*******@yahoo.com (Mike Von Stein)
wrote:

Look up the Access command line parameters in the help file. In
addition to /user, you will also find /pwd.

-Tom.
Maybe I'm missing something obvious, but if I several MDB's that use
the same secure workgroup MDW file and the user logs into one of them
is there a way through code that I can open other databases using
his/her credentials that were validated when the first database was
opened? (I want to open a new physical instance of Access, not a
ADOX connection or DAO workspace. Basically trying to avoid making
them put in their User Name and Password more than once.)

I've noticed that I can simulate the shortcut by using the shell
command and send the user name in the command line parameter, but I
don't know of any way to send their password so they still get
prompted for that...

Thanks in advance...

Mike


Nov 13 '05 #3
mv*******@yahoo.com (Mike Von Stein) wrote in message news:<c9**************************@posting.google. com>...
Maybe I'm missing something obvious, but if I several MDB's that use
the same secure workgroup MDW file and the user logs into one of them
is there a way through code that I can open other databases using
his/her credentials that were validated when the first database was
opened? (I want to open a new physical instance of Access, not a
ADOX connection or DAO workspace. Basically trying to avoid making
them put in their User Name and Password more than once.)

I've noticed that I can simulate the shortcut by using the shell
command and send the user name in the command line parameter, but I
don't know of any way to send their password so they still get
prompted for that...


While there is a way to retrieve the user id there's no way to
retrieve the password entered at the Access logon screen. What you
could do to save the login is to make a separate unsecured 'starter'
application that does nothing but collect the user id and password
from the user in a logon screen of your own design, caches those
values in a variable, and then starts your primary application using
the stored logon information. This could all be transparent to the
user since the logon information would only need to be entered once.
You could extend this 'starter' application to be a menu of available
applications. When a user clicks on a menu item to start a particular
application the starter app simply tries to start the selected app
using the cached logon information.

Bruce
Nov 13 '05 #4
mv*******@yahoo.com (Mike Von Stein) wrote in message news:<c9**************************@posting.google. com>...
Maybe I'm missing something obvious, but if I several MDB's that use
the same secure workgroup MDW file and the user logs into one of them
is there a way through code that I can open other databases using
his/her credentials that were validated when the first database was
opened? (I want to open a new physical instance of Access, not a
ADOX connection or DAO workspace. Basically trying to avoid making
them put in their User Name and Password more than once.)

I've noticed that I can simulate the shortcut by using the shell
command and send the user name in the command line parameter, but I
don't know of any way to send their password so they still get
prompted for that...

Thanks in advance...

Mike


kind of a hack but I have a procedure that you pass the path of the
new database you want to open, shell out to the new database, and then
close the current database

Private Sub OpenProgram(strProgram As String)
On Error GoTo error_handler

Dim strUser As String
Dim strPathToAccess As String

'get the path to access exe

strPathToAccess = SysCmd(acSysCmdAccessDir) & "MSACCESS.exe "

'grab the current user
strUser = Application.CurrentUser

'and test if auditor or tca
Shell (strPathToAccess & strProgram _
& "/wrkgrp " & """C:\Path\workgroup.mdw""" & "
/user " & strUser & " /pwd password"), vbMaximizedFocus
Application.Quit

Exit Sub

error_handler:
MsgBox Err.Description
Exit Sub

End Sub
Nov 13 '05 #5
"Dan Morgan" <us****@yahoo.com> wrote in message
news:fe**************************@posting.google.c om...
mv*******@yahoo.com (Mike Von Stein) wrote in message news:<c9**************************@posting.google. com>...
kind of a hack but I have a procedure that you pass the path of the
new database you want to open, shell out to the new database, and then
close the current database

Private Sub OpenProgram(strProgram As String)
On Error GoTo error_handler

Dim strUser As String
Dim strPathToAccess As String

'get the path to access exe

strPathToAccess = SysCmd(acSysCmdAccessDir) & "MSACCESS.exe "

'grab the current user
strUser = Application.CurrentUser

'and test if auditor or tca
Shell (strPathToAccess & strProgram _
& "/wrkgrp " & """C:\Path\workgroup.mdw""" & "
/user " & strUser & " /pwd password"), vbMaximizedFocus
Application.Quit

Exit Sub

error_handler:
MsgBox Err.Description
Exit Sub

End Sub


But how do you know the password to pass?

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

Nov 13 '05 #6
mv*******@yahoo.com (Mike Von Stein) wrote in message news:<c9**************************@posting.google. com>...
Maybe I'm missing something obvious, but if I several MDB's that use
the same secure workgroup MDW file and the user logs into one of them
is there a way through code that I can open other databases using
his/her credentials that were validated when the first database was
opened? (I want to open a new physical instance of Access, not a
ADOX connection or DAO workspace. Basically trying to avoid making
them put in their User Name and Password more than once.)

I've noticed that I can simulate the shortcut by using the shell
command and send the user name in the command line parameter, but I
don't know of any way to send their password so they still get
prompted for that...

Thanks in advance...

Mike


kind of a hack but I have a procedure that you pass the path of the
new database you want to open, shell out to the new database, and then
close the current database

Private Sub OpenProgram(strProgram As String)
On Error GoTo error_handler

Dim strUser As String
Dim strPathToAccess As String

'get the path to access exe

strPathToAccess = SysCmd(acSysCmdAccessDir) & "MSACCESS.exe "

'grab the current user
strUser = Application.CurrentUser

'and test if auditor or tca
Shell (strPathToAccess & strProgram _
& "/wrkgrp " & """C:\Path\workgroup.mdw""" & "
/user " & strUser & " /pwd password"), vbMaximizedFocus
Application.Quit

Exit Sub

error_handler:
MsgBox Err.Description
Exit Sub

End Sub
Nov 13 '05 #7
"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote in message news:<io******************@news04.bloor.is.net.cab le.rogers.com>...
"Dan Morgan" <us****@yahoo.com> wrote in message
news:fe**************************@posting.google.c om...
mv*******@yahoo.com (Mike Von Stein) wrote in message

news:<c9**************************@posting.google. com>...

kind of a hack but I have a procedure that you pass the path of the
new database you want to open, shell out to the new database, and then
close the current database

Private Sub OpenProgram(strProgram As String)
On Error GoTo error_handler

Dim strUser As String
Dim strPathToAccess As String

'get the path to access exe

strPathToAccess = SysCmd(acSysCmdAccessDir) & "MSACCESS.exe "

'grab the current user
strUser = Application.CurrentUser

'and test if auditor or tca
Shell (strPathToAccess & strProgram _
& "/wrkgrp " & """C:\Path\workgroup.mdw""" & "
/user " & strUser & " /pwd password"), vbMaximizedFocus
Application.Quit

Exit Sub

error_handler:
MsgBox Err.Description
Exit Sub

End Sub


But how do you know the password to pass?


I have two workgroup files. Once the user has authenticated as a user
with a password against one workgroup file, I log them into the next
instance of access as the same user using the second workgroup file
and a hidden password. The group and user structure is the same in
both mdw's. One downside is they can't change their password once
they have moved from one database to another.
Nov 13 '05 #8
Security bug in A97 allows you to do this under special circumstances.
Otherwise.... the command line parameter for password is /pwd

(david)
"Mike Von Stein" <mv*******@yahoo.com> wrote in message
news:c9**************************@posting.google.c om...
Maybe I'm missing something obvious, but if I several MDB's that use
the same secure workgroup MDW file and the user logs into one of them
is there a way through code that I can open other databases using
his/her credentials that were validated when the first database was
opened? (I want to open a new physical instance of Access, not a
ADOX connection or DAO workspace. Basically trying to avoid making
them put in their User Name and Password more than once.)

I've noticed that I can simulate the shortcut by using the shell
command and send the user name in the command line parameter, but I
don't know of any way to send their password so they still get
prompted for that...

Thanks in advance...

Mike

Nov 13 '05 #9
Thanks for the input. I guess I was hoping for "integrated" security
once the user was authenticated which just doesn't exist so I'll have
to try the options mentioned.

Mike
Nov 13 '05 #10

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

Similar topics

15
by: Hal Robertson | last post by:
I have created a rather complicated series of html forms for a data entry wizard In my mozilla browser, every time I submit each form along the process, it asks me if I want to remember the...
3
by: laredotornado | last post by:
Hello, I have a simple login script. I have the pages login.php login_response.php login_success.php login_failure.php What I want to do is have a checkbox on the login.php page where if...
4
by: gencode | last post by:
In asp.net 2.0 there is a Login Control, but I dont want the option to remember the person, is there anyway to hide the"remember me checkbox" I could not see one, Thanks, Ed,
3
by: Rob R. Ainscough | last post by:
I'm looking for some pointers or sample code I can go thru that implements a "Remember Me" feature for a user's login credentials. I'd don't want to use the "login" control provided by VS 2005 and...
2
by: Dan | last post by:
Hi, I use the logon control for logging into the application. When logging and checking the option "remember me next time" and then closing the browser without to press any logout button which...
2
by: André | last post by:
Hi, When clicking on "remember me" when logging, the user asks for not to have to log in next time he visits the site. Now, on one side, i read it is recommended to logout properly (clicking...
1
by: Abdo Haji-Ali | last post by:
Greetings, I'm using the ASP.NET membership model in my site and everything works perfectly, locally. However when I uploaded my site (To my host which is GoDaddy), and ran it remotely the...
1
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hello The site I am working on redirects the user to a "session timed out" page when: - the user's session has expired AND - the user action results in a postback to the server I then...
1
by: bh | last post by:
I am using a built-in login control on a form, and have set the "DisplayRememberMe" property to false. It correctly does not display that checkbox on the login form; however, after...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.