Solved

Allow Local User to Log On FTP

Posted on 2016-11-14
8
47 Views
Last Modified: 2016-11-15
Running IIS on a Windows Server 2012 R2 box. A developer is writing an app that is trying to log on to one of the FTP sites using a local account on the server. Since the site is configured for domain authentication, to log on using this local account you have to specify <servername>\<accountname> as the user.

Is another way to do this without having to hard code the server name, but still keep domain authentication? We'd like to be able to move this app without it being dependent on a specific server name.
0
Comment
Question by:Brian B
  • 4
  • 2
  • 2
8 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 total points
ID: 41887513
Often a dot instead of the server name works for local authentication. Sometimes I can use a "x" instead. I can't tell if that works for FTP, though.
1
 
LVL 43

Expert Comment

by:Davis McCarn
ID: 41887750
Have you tried using the built-in variable USERDOMAIN?
You would use it in the form of %USERDOMAIN%\<username> as part of the login and you can check what you should get by running SET in a CMD window.
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 41887860
You can't use that remotely, FTP itself does not perform environment variable substitution. If you do in a cmd window, your local entry is used, which is useless for remote.
0
 
LVL 23

Assisted Solution

by:Brian B
Brian B earned 0 total points
ID: 41888085
Thanks for the answers. I did find that using .\<username> works when testing on the server directly, but I have found that sometimes fails in other situations when "." translates to the name of the machine running the client instead of the server.

I was just wondering if there was some setting within IIS itself that would make this work better, but it doesn't sound promising.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 68

Assisted Solution

by:Qlemo
Qlemo earned 500 total points
ID: 41888228
There might be a setting to prefer local authentication over domain authentication in FTP / IIS, but if it is an all-or-nothing one, i.e. domain authentication would require the domain name to be supplied.
1
 
LVL 43

Expert Comment

by:Davis McCarn
ID: 41888255
If they are logging into the same domain, my first post applies:
"Have you tried using the built-in variable USERDOMAIN?
 You would use it in the form of %USERDOMAIN%\<username> as part of the login and you can check what you should get by running SET in a CMD window. "
0
 
LVL 68

Expert Comment

by:Qlemo
ID: 41888318
Davis, they do not want to use a domain account for this user, but for everybody else.
0
 
LVL 23

Author Comment

by:Brian B
ID: 41888434
Thanks for the info. Davis, as Qlemo pointed out, using an environment variable won't work in this situation, so I had to correct my original acceptance. Sorry about that.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Registering DLL 5 43
Delphi and Access based Enumeration 9 44
sql 2012 cluster  SSRS cluster aware 2 25
IIS8 IP Address and Domain Restrictions 17 43
Every now and then, Microsoft does something that totally impresses me. It doesn't happen often, but in this case I must say I am thoroughly impressed with Windows Server Backup. One of the long time issues with Windows Backup has been the ability t…
Resolve DNS query failed errors for Exchange
In this Micro Tutorial viewers will learn how to restore single file or folder from Bare Metal backup image of their system. Tutorial shows how to restore files and folders from system backup. Often it is not needed to restore entire system when onl…
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now