Jump to content

script to open file an auto re-enter same user credentials?


This topic is 3590 days old. Please don't post here. Open a new topic instead.

Recommended Posts

it is possible to have a button that links to open file network database and auto entry the same user login and password?

we have about 10 users, and they have to re enter manually the login and pass when they open new file from button link.

Link to comment
Share on other sites

If the file you have open has an account name and password that you are logged in with and you open another file, FileMaker will attempt to pass these credentials to the file being opened. If there is a match, then the login process for that file automatic and the user never sees a dialog to connect with username and password.

 

Open File... script step should be sufficient for what you want to do.

 

If the credentials do not have an exact match, then the user will be presented with a dialog, BUT if the File Options are setup to automatically login with an account name and password, then you will not see the login dialog appear and the file will be opened with the account name and password stored in the File Options.

 

You could then execute a script from your parent file that performs and execute script step in the new file and passes the credentials (providing you have stored them in some manner) as a script parameter to the new file, where it is then parsed out and then you just use the Relogin script step to change the connected account on that file.

Link to comment
Share on other sites

 

 

You could then execute a script from your parent file that performs and execute script step in the new file and passes the credentials (providing you have stored them in some manner

 

Oy!  NO!!

 

Don't ever store user credentials as part of data.  Use the FM security schema, don't bypass it.  Any bypass typically leads to compromised security and more attack angles.

Link to comment
Share on other sites

As a best practice I agree. However, scripting user account creation etc. in a separation model requires you to capture it in variables for at least the short time it is needed before purging it.

Link to comment
Share on other sites

That's where External Authentication shines; it removes the need for scripted account creation altogether.

 

Yes that is great as long as External Authentication is an available option. Not everyone has an Open Directory or Active Directory server handy for this type of thing.

Link to comment
Share on other sites

Yes that is great as long as External Authentication is an available option. Not everyone has an Open Directory or Active Directory server handy for this type of thing.

 

You don't need Active Directory or Open Directory for external authentication.

 

It also works with local accounts on the FMS machine if neither AD or OD is available.

Link to comment
Share on other sites

You don't need Active Directory or Open Directory for external authentication.

 

It also works with local accounts on the FMS machine if neither AD or OD is available.

 

This is why I love this board. :)  Nothing but good happens when knowledgeable people come together to share information.  I will look into this option more. Thanks Wim!

Link to comment
Share on other sites

After looking again, I remember looking through the documentation before and being a confused on the Local account options once I started to really dig in to the instructions beyond the summaries.

 

After a quick search however, I found this helpful info from Soliant which is a bit easier to follow.

 

http://www.soliantconsulting.com/blog/2009/02/using-local-os-accounts-for-filemaker-external-authentication

 

When using cloud based FM servers, is this is even an option?

Link to comment
Share on other sites

 

When using cloud based FM servers, is this is even an option?

 

Depends on the hosting provider and your choices there.  If you are co-locating your server then you own it and can do anything with it that you like.  Same if you pay for a dedicated server.

If you are sharing space on a multi-tenant server then you may not have the option to create accounts and groups on the server's OS.

Link to comment
Share on other sites

This topic is 3590 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.