Results 1 to 2 of 2
  1. #1
    johnp6262 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2011
    Posts
    1

    How to identify the Windows User Login name when using Sentillion SSO

    I have logic scattered around a db that tracks the user's window ID and time stamps when certain items are changed on the DB.
    this works fine, i use the FOSusername as described below:



    Code:
    Private Declare Function apiGetUserName Lib "advapi32.dll" Alias _
                                            "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
    Function fOSUserName() As String
    ' Returns the network login name
       Dim lngLen As Long, lngX As Long
       Dim strUserName As String
       strUserName = String$(254, 0)
       lngLen = 255
       lngX = apiGetUserName(strUserName, lngLen)
       If (lngX > 0) Then
          fOSUserName = Left$(strUserName, lngLen - 1)
       Else
          fOSUserName = vbNullString
       End If
    End Function


    This works great, but we recently began using Sentillion Single Sign on on some workstations - this basically has a user 'Sentillion' logged onto the workstation and folks can swipe an RFID badge and log onto the pc. Their user sort of sits on top of the sentillion user.


    Now when my DB stamps the user ID, it shows the id of sentillion, not the user who is logged on over sentillion.

    Is there a different set of logic needed to get around this and show the user's ID not the Sentillion ID? I have tried the environ("username"), but that shows 'Sentillion' too.



    Has anyone used Sentillion and is there a work around so it shows the true user id, not Sentillion?

    Thanks for any suggestions -
    Last edited by RuralGuy; 10-27-2011 at 03:09 PM. Reason: Added Code Tags

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Have you talked to Sentillion?

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

Similar Threads

  1. HELP>Access 2010 User Login Form Code.
    By zaaimanm in forum Programming
    Replies: 5
    Last Post: 10-22-2012, 07:28 PM
  2. Replies: 3
    Last Post: 09-22-2011, 03:35 PM
  3. Display user's database or record after login
    By stoey in forum Programming
    Replies: 13
    Last Post: 09-15-2011, 11:18 AM
  4. Login and user levels
    By seanog2001 in forum Forms
    Replies: 0
    Last Post: 10-27-2009, 05:13 AM
  5. Using lbl file to identify user
    By lynchoftawa in forum Access
    Replies: 1
    Last Post: 06-08-2009, 08:18 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