Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / February 2008



Tip: Looking for answers? Try searching our database.

Can LDAP return your windows NT username?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GuyPhempoompanitch - 28 Feb 2008 22:14 GMT
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.
Ian Skinner - 28 Feb 2008 22:38 GMT
> 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.
GuyPhempoompanitch - 29 Feb 2008 14:12 GMT
Thank you.  That is exactly what I was looking for.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.