2 Replies Latest reply on Feb 29, 2008 6:12 AM by GuyPhempoompanitch

    Can LDAP return your windows NT username?

    GuyPhempoompanitch
      I'm trying to get my NT username to automatically display, and ultimately, avoid duplicate login screens for each app. I just want to return the username, without the user having to do anything. Is this possible?

      Thanks.
        • 1. Re: Can LDAP return your windows NT username?
          Level 7
          GuyPhempoompanitch wrote:
          > I'm trying to get my NT username to automatically display, and ultimately,
          > avoid duplicate login screens for each app. I just want to return the
          > username, without the user having to do anything. Is this possible?
          >
          > Thanks.
          >

          I'm not sure exactly what you are trying to do. Do want the user name
          from the ldap record? If so that is simply the samAccountName
          attribute. But you do need some unique identifier, such as
          samAccountName, to get the individual record to get its samAccountName
          user name.

          If you want to do use identification behind the scenes without the human
          user providing their identification through some type of form. This can
          be done. Provide your application is running on a Windows Server, using
          a Windows Web Server connecting to a user over a Windows Network Domain
          who has a Windows OS and is using a Windows Browser. Then you can set
          the website to use 'Windows Integrated Security' which will populate the
          'cgi.auth_user' variable with the user name that the user used to login
          to the domain. You can this use this value to grab the user's Active
          Directory LDAP record.

          • 2. Re: Can LDAP return your windows NT username?
            GuyPhempoompanitch Level 1
            Thank you. That is exactly what I was looking for.