Nt username

This is a discussion on Nt username within the Cold Fusion forums in Application Servers & Tools category; emmim44 wrote: > And that path would be ??? Whatever executable you are trying to run on your server....

Go Back   Application Development Forum > Application Servers & Tools > Cold Fusion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
Reply

 

LinkBack Thread Tools Display Modes
  #11  
Old 08-28-2008, 05:55 PM
Ian Skinner
Guest
 
Default Re: Nt username

emmim44 wrote:
> And that path would be ???


Whatever executable you are trying to run on your server.
Reply With Quote
  #12  
Old 08-29-2008, 12:27 AM
BKBK
Guest
 
Default Re: Nt username

How to get nt username using CF?

http://livedocs.macromedia.com/coldf...s/00000301.htm, then cfntauthenticate.username or result.username


Reply With Quote
  #13  
Old 08-29-2008, 09:14 AM
emmim44
Guest
 
Default Re: Nt username

That requires an username and password, and I am looking to retrieve the nt username of a client whoever runs my page....
Reply With Quote
  #14  
Old 08-30-2008, 02:58 AM
BKBK
Guest
 
Default Re: Nt username

I see now that you want Coldfusion to give you a Windows username. My
suggestion is indeed of little use to you. Coldfusion is only aware of
usernames that were logged in within a Coldfusion context.

You should do it in a Windows context. Ian Skinner's cfexecute suggestion
would then be, in my opinion, the best method.




Reply With Quote
  #15  
Old 09-02-2008, 11:50 AM
emmim44
Guest
 
Default Re: Nt username

It is not a good help so far...
Reply With Quote
  #16  
Old 09-02-2008, 11:53 AM
Azadi
Guest
 
Default Re: Nt username

try harder.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Reply With Quote
  #17  
Old 09-02-2008, 12:11 PM
tclaremont
Guest
 
Default Re: Nt username

If the suggestions provided so far are not working for you, then I suspect that the problem is between the keyboard and the chair.
Reply With Quote
  #18  
Old 09-02-2008, 03:07 PM
emmim44
Guest
 
Default Re: Nt username

<cfexecute name="u" arguments="C:/cmd echo %username%"></cfexecute>

I dont think that will work... One thing I am afraid is it might not give the username of the client who execute my page...
Reply With Quote
  #19  
Old 09-02-2008, 04:08 PM
Ian Skinner
Guest
 
Default Re: Nt username

emmim44 wrote:
> <cfexecute name="u" arguments="C:/cmd echo %username%"></cfexecute>


No, I suspect that will give the user name ColdFusion is running under,
if anything at all.

Is this over a well defined intranet or are you trying something over
the entire world wide web internet?

On a well defined intranet where the systems can see each other there is
some type of net state utility that can give some details from a
computer with the IP address, which can be found in the CGI scope. At
least there is on a Windows machine and network.

I know I once used this to have a intranet web page show the machine
name of a logged in user to aid our help desk. The ColdFusion code used
<cfexecute...> to run a DOS command that retrieved the machine name
across the corporate's Windows network. They could ask Mary Jane Von
Der Longname to look in the corner of the intranet home page to find out
their machine name easily and quickly.

Since otherwise only 1% of the users would know this without detailed,
step-by-step, walk-through instructions. And many of the remaining 99%
would still fail even with such instructions.
Reply With Quote
  #20  
Old 09-02-2008, 05:17 PM
emmim44
Guest
 
Default Re: Nt username

It is a intranet environment... not external web...
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:02 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.