ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 28th, 2004, 09:43 AM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
Question help with windows user login

i am asked to develop an application similar to a project management tool. there will be a form on the intranet where users will go and check some of the tasks they have completed. since everybody uses their windows login to use their machine, i am asked to retrieve the login information and submit to the page without them entering it manually.
is there a way to get the user login information to a machine by using some cf tags ?
thanks for the help in advance

Reply With Quote
  #2  
Old October 28th, 2004, 10:34 AM
bocmaxima's Avatar
bocmaxima bocmaxima is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2004
Location: Tucson, Sonora
Posts: 1,322 bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level)bocmaxima User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 Days 17 h 46 m 5 sec
Reputation Power: 22
Send a message via AIM to bocmaxima
No, because you have to hook into Active Directory and that's almost impossible because of security issues.
The easiest way to do this is on the server side. Uncheck inherit permissions, pull "Everyone" off read permission on the files you want protected and then manually put the people you want back on with read permission.

Hope that helps.

Reply With Quote
  #3  
Old October 28th, 2004, 11:28 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
The only way this might work is if you use IIS as the web server and enable NTLM authentication. But even then I think it still asks you to log in. Beyond that you could look into using .NET passport or something similar.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #4  
Old October 28th, 2004, 11:31 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
Actually, you might be able to get the user name of the logged in user with #cgi.auth_user#. Of course you can't get their password this way, but at least you know that Windows user account was logged in and you could go from there.

Reply With Quote
  #5  
Old October 28th, 2004, 11:33 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
Another approach alltogether would be to force them to log in once, but then set a cookie that lets the application "remember" them for future visits.

Reply With Quote
  #6  
Old October 28th, 2004, 11:48 AM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
Question

thanks a lot guys. unfortunately, there won't be any login to the form. ideally, the user turns on his/her pc, logs into the Windows OS, launches the IE, locates the form, checks the checkbox next to his/her division and then hits submit. we do have IIS as the web server
but i am not sure what 'enable NTLM authentication' means.
i think they want to keep track of who is working hard in certain divisions. that's why they don't want to display a seperate login page instead go with the windows OS user login. so, what i understand so far is it's impossible to get the windows login. am i correct?

Reply With Quote
  #7  
Old October 28th, 2004, 01:10 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
Correct, I don't think it's possible. Note that it's not possible with ANY applicaiton server, this isn't specific to CF.

The best you could hope for would be a system where they only log in one time - ever - and then a permanent cookie is placed in their browser that allows them to get into the app without having to log in and keep track of who they are that way.

Reply With Quote
  #8  
Old October 28th, 2004, 03:21 PM
FALCONSEYE FALCONSEYE is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 377 FALCONSEYE Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 16 h 57 m 14 sec
Warnings Level: 15
Number of bans: 1
Reputation Power: 0
thank u sir!

Reply With Quote
  #9  
Old October 28th, 2004, 07:22 PM
jimmart jimmart is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 3 jimmart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Use cffile and file info generated at login time.

Assuming that your users are logging into a server you can use a batch program to create a file to verify login. Then use ColdFusion to read the file.

Create a file somewhere on your server (IE logins.txt).
Give users write permissions to that file.

Then run a batch program with the following commands:

ipconfig|find "IP Address">>drive:\path\logins.txt
echo %USERNAME%">>drive:\path\logins.txt

With ColdFustion, use CGI.REMOTE_ADDR to get the workstation IP and cffile to read the file, find the IP and get the username.

With a little more batch file work, you can even create a file with the workstation IP as the name so parsing ligins.txt is not required.

If this solution will not work for you or you need additional info, please email me.

Reply With Quote
  #10  
Old October 28th, 2004, 08:05 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
The only problem with that is that it requires that people always connect from the same computer (with the same IP address). It also isn't really authentication because anyone else using the computer or spoofing the IP address would be granted access as if they were the real user. This may or may not be a concern depending on the app and on the environment. In a DHCP environment, for example, this wouldn't work.

If you want to take this route you don't even have to parse a text file if you don't want to, you could store the IP addresses and the corresponding users in a database and query it when people access the application.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > help with windows user login


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway