Solved

FTP access with Basic Authentication

Posted on 1998-08-13
9
189 Views
Last Modified: 2010-04-09
I am using IIS 3.0 on a NT4.0 box with both the webroot and the FTP directory set for Basic Authentication, I access the home page via NT login box, with a <A HREF="ftp://198.253.13.155">FTP</A> tag, except after a sucessful login, I get a "User anonymous cannot log in" when I click on the link, why?
0
Comment
Question by:mgfranz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 12

Expert Comment

by:Otta
ID: 1845317
Use:  ftp://userid:password@NSIP5.NOSC.MIL

to specify the 'userid' and 'password' to be used,
since the default values: 'anonymous' and 'guest'
are not being accepted by the FTP-server on 'NSIP5.NOSC.MIL'.

Or, reconfigure the FTP-server to accept 'anonymous/guest'.

0
 
LVL 18

Author Comment

by:mgfranz
ID: 1845318
I cannot change the FTP access to anonymous, and I do not know of a way to pass a users login and password to the browser, except maybe a perl script
0
 
LVL 12

Expert Comment

by:Otta
ID: 1845319
The URL passes the 'userid' and the 'password' to the browser.
These values are checked by the FTP-server.
They are *NOT* related to the ID/password known by the
user of the web-browser software.

If the URL omits the 'userid' and 'password' fields,
then the FTP-server uses 'anonymous' and 'guest',
and then generates the error-message which you are reporting.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 18

Author Comment

by:mgfranz
ID: 1845320
Does the browser care about using the IP address, or does it have to be the resolved name.  I use <A HREF="ftp://userid:password@198.253.13.155">FTP</A> and  <A HREF="ftp://userid:password@NSIP5.NOSC.MIL and it returns the same error.  I tried this on both Netscape 4.03 and IE 3.2
0
 
LVL 12

Expert Comment

by:Otta
ID: 1845321
The browser attempts DNS-lookups, if the URL
contains a 'FQDN' (Fully Qualified Domain Name),
and just omits DNS-lookups,
when the URL contains an IP-address.

You *should* get *identical* error-messages,
because both URLs connect to the *same* host.

So, the values for 'userid' and 'password' are *NOT* valid.
You need to get the system-administrator (of the host
which is running the FTP-server, to validate any
'userid/password' combinations which you intend to cite, in a URL.
0
 
LVL 18

Author Comment

by:mgfranz
ID: 1845322
Ahhh, thats the problem, this machine is not registered with the DNS due to the cost of registering it, (the Navy charges even it's own hosts for everything).  I guess I'll just have to write a Perl script.
Wait a minute, since I am the sysadmin guy, I am responsible for all logins and access.  Plus, if the userid:password combinations were incorrect, the user would not be able to log onto the home.htm...?

0
 
LVL 12

Expert Comment

by:Otta
ID: 1845323
Wait a minute.  :-)

If you are the administrator of the FTP-server,
you can either "open" the server,
to allow the usage of 'anonymous/guest',
or you can define _valid_ 'ID/Password' combinations,
and use these values in the URL.
These ID/Password combinations can (and should)
be different from the ID/Password combinations
which are used to login to the Domain.

Also, the machine *IS* registered with the DNS.
How do you think that I transformed the IP-address you gave
into the FQDN ?

Think about each "authentication",
and the different ID/Password combinations used at each step.
0
 
LVL 18

Author Comment

by:mgfranz
ID: 1845324
whew... this is getting long, I could enable anonymous, but I was directed to turn it off, again, navy.mil.  I don't think the different login:passwd combo will work either.  there has got to be a way to pass the browser authenticated info to the ftp proxy!
0
 
LVL 12

Accepted Solution

by:
Otta earned 100 total points
ID: 1845325
Coding the URL as 'ftp://userid:password@hostname' is the
easy way to pass ID/password information to the FTP-server.

Of course, JavaScript can be used as a string-manipulation
language, in order to build this string.

Alternately, the FTP-server can be "customized"
to only offer "service" to a set of FQDNs or IP-addresses.

Since some person (using "client" is more Politically-Correct,
but, in this case confusing) has logged-in to a Domain,
you know the range of FQDNs and IP-addresses
which are "owned" by that Domain, correct?

Is it time to take a step "backwards",
and for you to describe, in more detail,
what you are trying to achieve?
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Clear input text 15 32
Validating Date 4 37
Display Flex does not Wrap Items 2 40
Undefined variable with $_POST in PHP 5 31
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

736 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