Results 1 to 12 of 12
  1. #1
    IncidentalProgrammer is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2014
    Location
    Texas
    Posts
    156

    Database Login Using Windows ID - Citrix and Thin Clients

    Hi, all!



    I'm currently buidling a database in Access 2007, which will have its back-end stored in SQL Server 2012. The project has ballooned from something that just my small department woulduse, to something that's going to end up including tools used around the office. NOW I find out we have some people on "thin clients". Here's the trouble:

    I have programmed two ways to login: 1) standard, manual login with name and password, 2) button to login using Windows ID (compares the ID to the user table). My boss REALLY likes the 2nd option for security reasons, but we're thinking it's not going to work on these thin clients.

    Basically, the thin clients can get online, go to Citrix, login, and access just what they need to do their work, and apparently they don't have Windows IDs. I just looked at one though, and when the user hit the Start button (within Citrix), it showed her name, just like mine does.

    Does anyone know how to do a Windows ID type login for Citrix users that don't have Windows IDs? Is there a way to make Access check Citrix for a user ID?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I had apps running on Citrix for a while and I was still able to grab a windows login. Among other things I used it to make sure each user was running their own copy of the front end.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    IncidentalProgrammer is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2014
    Location
    Texas
    Posts
    156
    Citrix in and of itself isn't the problem, because the login does work fine on mine. The issue is going to be the thin clients, who don't have Windows IDs. I talked to one of the girls with a thin client, and she said she doesn't even have to log in to the computer itself, and all the desktop will do is let her get to the Citrix website, and she logs into just Citrix. So there's no Windows ID on on the computer, itself. Her name shows up in Citrix when she hits the Start button, but that's it.

    I do have some code to clone the front end when people access it, I'm just not able to use it until I split the database, and I'm not ready to split it quite yet.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    There may be different ways of setting Citrix up, but our people were also using thin clients and still logged into the network, though perhaps it was wrapped into the Citrix login. They got email and such which required a network login.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    Terminal Services / Citrix is a deployment technique and doesn't affect Windows. The Access front end file cannot be located on the physical thin device - it must be located in their virtual desktop - and it will be running on a full Windows OS there. From the Access perspective nothing changes. Each user must have its own, exclusive Access front end file - and these all link to the single common Access back end file. The Access front end file does not know (or care) that the end user is getting to the Front End via terminal services technology. One can pull the same Active Directory ID regardless of deployment technique.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I would reinforce the comment "Each user must have its own, exclusive Access front end file". Don't put a file on the server at "C:\Whatever\AppName.accde" and assume that because Citrix theoretically gives each person their own copy of it you'll be okay. Unless something has changed, they don't truly get their own copy when they run it. I had twitchy issues until I made sure each person ran their own by putting them in subfolders:

    C:\Whatever\pbaldy\AppName.accde
    C:\Whatever\JoeBlow\AppName.accde
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  7. #7
    IncidentalProgrammer is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2014
    Location
    Texas
    Posts
    156
    In regards to the individual front ends per user, I did find some code a while back that is supposed to clone the front end whenever someone opens it, so that should take care of that.

    After a thorough round of testing, I found that NOBODY was able to log in, but me. I've since fixed the module that pulls the ID, and isolated what I believe to be the only remaining issue. The DLookup that's supposed to compare that ID to the user table is only looking at the first row in the user table, so it's only letting me in. When I switched names around and put mine in the next row down, it wouldn't let me in. Does anyone know why it would do that?

    I'll post the DLookup here, when I can. As of right now, Citrix has been kicking me out all morning, so I can't really get into the database. (And because my life is full of irony like that, there's a Citrix advertisement in the banner over this box, as I type. Go figure.)

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Does the DLookup() have a criteria? Doesn't sound like it, and it needs one.

    DLookup Usage Samples

    That's context sensitive advertising at its best!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    IncidentalProgrammer is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2014
    Location
    Texas
    Posts
    156
    Well, that'll do it! Still very new to this stuff, and missed a criteria. Those are good examples, but I'm at a loss as to how to compare it to the name returned by the other module. Here's what I've got:
    Code:
          'Call GetUserName module to login via Windows.
        GetUserName.fOSUserName     'Compare Windows login to user table.
        If fOSUserName = DLookup("UserID", "tblUser") Then
          'Close login form & open switchboard.
         DoCmd.Close acForm, "frmLogin", acSaveNo
         DoCmd.OpenForm "Switchboard"
    Am I at least on the right track?

    And yeah, I wish they'd put as much work into the product, as they do into their advertising! I felt bad for the IT guy this morning, bless his heart; I'll probably be able to hear him yelling all the way from the bowels of the IT office, if he gets one more email from me about Citrix today. LOL

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Along the lines of

    If DCount("*", "tblUser", "UserID = '" & fOSUserName & "'") > 0 Then
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #11
    IncidentalProgrammer is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2014
    Location
    Texas
    Posts
    156
    That fixed it! You are a miracle-worker. Thank you!!!

  12. #12
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 17
    Last Post: 06-06-2013, 05:52 PM
  2. Using Windows Login..
    By Stephanie53 in forum Access
    Replies: 5
    Last Post: 05-30-2013, 12:29 PM
  3. Windows User Login Information
    By MintChipMadness in forum Programming
    Replies: 6
    Last Post: 08-07-2012, 05:47 PM
  4. Replies: 3
    Last Post: 05-31-2012, 02:49 PM
  5. Replies: 1
    Last Post: 10-27-2011, 01:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums