473,404 Members | 2,137 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,404 software developers and data experts.

Can MS Access display the user authentication that its backend SharePoint requires?

Brilstern
208 100+
This question is similar to @twinnyfo's question here, I am trying to access a database that has some credentials requirements due to the backend SharePoint linked tables.

The database links to 6 tables that sit on SharePoint that uses a smartcard to verify access, specifically the card and pin. After you authenticate, the site becomes available. When you access the database without first logging into the SharePoint site, it freezes, which I assume is it waiting for some kind of credentials as it tries to authenticate to the SharePoint site.

The SharePoint site uses the same credentials the windows box used to login with, but it does not support using the authenticated session from windows, rather creates its own session with the same credentials.

My question: Can I call the user interface that SharePoint does to authenticate, so that the database does not first require the user to authenticate to the SharePoint site?
Nov 16 '18 #1

✓ answered by twinnyfo

Stevan,

I don’t know if this is an answer, but I have encountered similar problems when trying to save items to a SP library from Access. In order for the Access system to connect directly with SP Libraries, one must first connect to that library (i.e. simply go to that library via SP—or in my case, navigate to that library using WIndows Explorer to make the connection). Then Access can send items to that Library.

I would “think” that if the user was connected to that SP site and then opened the Access DB that things would work as expected. It’s an extra step, I know, but I think it has to do with how SP authenticates (and then times out) in connecting other system services to its libraries.

Again, don’t know if this is an “answer” or simply my workaround. SP must access the user’s system in some way to authenticate, I just don’t know enough about that aspect to speak intelligently about it.

13 2143
twinnyfo
3,653 Expert Mod 2GB
Stevan,

I don’t know if this is an answer, but I have encountered similar problems when trying to save items to a SP library from Access. In order for the Access system to connect directly with SP Libraries, one must first connect to that library (i.e. simply go to that library via SP—or in my case, navigate to that library using WIndows Explorer to make the connection). Then Access can send items to that Library.

I would “think” that if the user was connected to that SP site and then opened the Access DB that things would work as expected. It’s an extra step, I know, but I think it has to do with how SP authenticates (and then times out) in connecting other system services to its libraries.

Again, don’t know if this is an “answer” or simply my workaround. SP must access the user’s system in some way to authenticate, I just don’t know enough about that aspect to speak intelligently about it.
Nov 17 '18 #2
Brilstern
208 100+
Hey twinnyfo (hope all is well!)

Yeah, I came to the same conclusion. If the user opens the SP portal via a web browser first, there are no hiccups and the MS Database works as it should, obviously authenticating with the session credentials already initiated by the user. Although slightly annoying, it's not the worst work-around. What I would really like to explore is; force the MS Database to request user authentication in lieu of the SP portal page on open. But per our discussion, not really sure on how to approach it.
Nov 19 '18 #3
twinnyfo
3,653 Expert Mod 2GB
I know I am way outside my wheelhouse, here, but even if you could access information in the Active Directory, listing all your authenticated users, I think you can only engage those protocols once you actually try to access SharePoint. It seems like a silly workaround, I know, to access the SharePoint page prior to the DB taking you there.

I look at it similarly to share drives (mainly because I use my SP libraries to save files (like a share drive). If I save something to my share drive, because all my users (and me) have permissions in AD on that drive/folder, I can save files there. "One would think" that trying to save something to SharePoint would work the same way if a user had permissions in AD for a particular SP Page/folder/library.

I understand what MS is trying to prevent, but in my opinion, permissions are permissions....

Sorry I can't be of more hepp!
Nov 19 '18 #4
Brilstern
208 100+
Lol, it is all good.

Unfortunately my situation is even more complex. Although the SP uses the same smart card for creds, it doesn't use the same AD structure or accounts as the domain. It is a multi-domain SP. So I am in the "must open browser" first bucket... I tried programmatically opening the SP portal from the first form open in my DB (prior to any forms that query data); but it doesn't authenticate properly, and then the user manually has to refresh the login page and then they get the cred prompt. Didn't really make the work-around any easier.
Nov 19 '18 #5
twinnyfo
3,653 Expert Mod 2GB
HAHAHAHAHAH!!!!

Sorry, I know it's really not funny!


HAHAHAHAHAHA!

You gotta love Microsoft!
Nov 19 '18 #6
Brilstern
208 100+
Haha, well at least I can laugh with you! :)

Got to love it...
Nov 19 '18 #7
Brilstern
208 100+
twinnyfo,

Revisited this today out of curiosity and made "some" progress. I created a public function that refreshes the linked tables, and ran it as part of my AutoExec.

Exhibit A:
Expand|Select|Wrap|Line Numbers
  1. Public Function TableRelinkSample()
  2.       CurrentDb.TableDefs("<TableName>").RefreshLink
  3. End Function
But... this is a design function and opens the database in design mode. So now I am at a crossroads on how to get out of design mode to avoid the below error. Any thoughts? Still researching this right now.

"The database has been places in a state by user 'Admin' on machine 'XXX' that prevents it from being opened or locked."
Dec 19 '18 #8
twinnyfo
3,653 Expert Mod 2GB
Stevan,

Whenever I publish changes to my DB, I change the links from a local "working" copy of the data to the network "official" data. The DB has been compiled already, so I wonder why you are getting this error.

I just now tested using a SharePoint List and came up with no errors, using a compiled (.accde) DB with no errors.

Would you not be able to run this connecting activity "in the background" when someone is headed toward using the SP list?
Dec 19 '18 #9
Brilstern
208 100+
Hey twinnyfo,

Update #2

So... I (don't make fun of me) usually avoid splitting my databases... but I decided to for many reasons, to include updating the tables without getting this error.

To address your thoughts.

When a user opens the (now front end) database, it:

opens a flash form for 3 seconds and closes
opens a user access agreement prompt, user clicks ok, prompt closes
opens a home form (switchboard) which is where the user has a lot of buttons to manage data on all the tables (buttons open forms)

Pre-RefreshLink function; the database would lock up trying to open the home form if the user had not opened SharePoint to the site that stores the linked tables.

Post-RefreshLink function; the SharePoint authentication form pops up and forces the user to authenticate then closes prior to opening the home form

Not sure why, but refreshing the link on the tables forces the front end into exclusive mode.

Good thing: I can give each user new front end and then I don't have to worry about it.

Preference: update tables on back end and not have front end go into exclusive mode.

Due to continuous updates, I have not been compiling, as we are still building out how we use the database on a day to day basis.
Dec 19 '18 #10
Brilstern
208 100+
So I just educated myself...

using backend... smart; for this effort, does nothing

The SharePoint tables are not "in" the backend caused they are linked to the SharePoint. (Duh, I somehow wasn't thinking about that)

So now I am back to my original problem.

How would I force the front end to refresh the links to the SharePoint tables each time the database is opened to ensure they are authenticated, without them opening the front end (or their copy) in exclusive mode?
Dec 19 '18 #11
Brilstern
208 100+
So... The problem might have been something to do with caching./?

I did this:

Access Options -> Current Database -> Caching Web Service and SharePoint Tables.
Uncheck all.

And the problem no longer exists.

Thoughts?
Dec 19 '18 #12
twinnyfo
3,653 Expert Mod 2GB
YOU

ARE

A

GENIUS

!!!!

I have no clue!

:-)
Dec 19 '18 #13
Brilstern
208 100+
Haha, not quite..

So. In the end, for those reading, the solution to the orginial issue of authenticating to SharePoint:

Expand|Select|Wrap|Line Numbers
  1. CurrentDb.TableDefs("<TableName>").RefreshLink
Do this as part of your AutoExec to ensure that the user has authenticated prior to connecting to online datasets.

To avoid design mode/exclusive access:

Expand|Select|Wrap|Line Numbers
  1. Access Options -> Current Database -> Caching Web Service and SharePoint Tables. 
  2. Uncheck all.
Hope this helps the next reader!
Dec 19 '18 #14

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tony wilsxn | last post by:
Hi... Bigtoach at http://www.bigtoach.com/ had a nice user authentication script. My system died. I lost the script. Http://www.bigtoach.com/ is down. If you have this Bigtoach user...
2
by: Carl J. Hixon | last post by:
I am setting up a web site and have questions about security. I would like to use a forum script like phpBB, I would also like to use a CMS package like Mambo, and a file sharing system. Since I...
1
by: Rhett | last post by:
Hello,EveryBody! I'm troubled by a design problem, Hoping that you'll save me out! The Situation is: We have two project of code A and B.A is our reusable code base, B is for specified for...
2
by: Frank Esser | last post by:
Hello, I have got a specific question on user authentication. My customers usually use their workstations all together as a kind of public terminal. This means one of the users in the team...
1
by: Sean C. | last post by:
Helpful folks, We have been having an intermittent and completely unreproducable problem concerning user authentication on Windows 2000: SQL1403N The username and/or password supplied is...
2
by: Benny Ng | last post by:
Hi,all, Is many developers used the intrinsic forms authentication to do the user authentication module? many likes this //..... "FormsAuthentication.RedirectFromLoginPage( txtUsername.Text,...
3
by: Jonnie | last post by:
I want to build a secure user authentication page that uses mySQL to verify user, password, and access rights, where admins see everything and full acess, while others see only links and pages...
4
by: semi_evil | last post by:
I found a nice example of ebay login using PHP and cURL at http://curl.haxx.se/libcurl/php/examples/ Is this technique applicable to sites that authenticate users using a browser-opened dialog?...
4
by: mattmao | last post by:
Greetings everyone. I am a college student studying in the University of Technology, Sydney. PHP is not in my studying plan, I am taking subjects about J2EE in this semester. However I do...
1
by: whiteyoh | last post by:
Hi All, I have just started learning java. I have a good understanding of UML 2. What i am trying to do is to make a small user authentication applet. I have completed all of the relevant...
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: 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...
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.