• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: autentification problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: autentification problem


  • Subject: RE: autentification problem
  • From: "Valentin Dan" <email@hidden>
  • Date: Mon, 2 Feb 2009 07:47:53 -0500
  • Thread-topic: autentification problem

It does sound like a lot of fun ... but I'm working so I'll live it to
someone else who can afford to play around :)

One more thing, I don't really care about hacking Firefox or Safari ...
I just tried them out to see if my app is dumb or other apps have
problems too :)

_______________________________________________________________________
Valentin Dan, Software Engineer                 Direct: +1 905 886 1833
ext.3047
Email: email@hidden                 Office: +40 356-710158
Masstech Group Inc.                              Fax:    +40 256-220912
http://www.masstechgroup.com

THIS MESSAGE IS INTENDED ONLY FOR THE ADDRESSEE. IT MAY CONTAIN
PRIVILEGED OR CONFIDENTIAL INFORMATION.ANY UNAUTHORIZED DISCLOSURE IS
STRICTLY PROHIBITED.IF YOU HAVE RECEIVED THIS MESSAGE IN ERROR, PLEASE
NOTIFY US IMMEDIATELY SO THAT WE MAY CORRECT THE RECORDS. PLEASE THEN
DELETE THE ORIGINAL MESSAGE. THANK YOU.



-----Original Message-----
From: Andrew Farmer [mailto:email@hidden]
Sent: Monday, February 02, 2009 12:56 PM
To: Valentin Dan
Cc: Cocoa Developers
Subject: Re: autentification problem

On 02 Feb 09, at 02:32, Valentin Dan wrote:
> I have paths like: \\10.1.1.11\SomeFolder\FileName.jpg
> <file:///\\10.1.1.11\SomeFolder\FileName.jpg> . I tested the path on
> Windows in InternetExplorer and it pops up a Login dialog. After
> authentication the picture is loaded and all further requests are ok.
> How can I get this behavior on Mac (Firefox / Safari / any other
> browser)?

Short version: You can't.

<file:///\\10.1.1.1\SomeFolder\FileName.jpg> isn't a valid file: URI;
the fact that it works in Internet Explorer on Windows is more by
mistake than by design. You can create smb://share/path URIs that
ALMOST work similarly, but they aren't recognized by the URL Loading
framework or by Firefox.

If you're feeling particularly adventurous, you can try writing your
own NSURLProtocol subclass to handle these types of URIs natively.
However, note that:

  1. Your code doesn't affect other applications, so Safari (and other
browsers) won't gain the benefit of your subclass without ugly hacks.

  2. Your code won't affect Firefox at all, because it uses its own
URL loading framework.

  3. Samba is ugly code. Massively, incredibly ugly. It is not fun to
work with. However, you'll probably have to dig deep into it to
implement this sort of thing. Have fun.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: autentification problem
      • From: "Glenn L. Austin" <email@hidden>
References: 
 >autentification problem (From: "Valentin Dan" <email@hidden>)
 >Re: autentification problem (From: Andrew Farmer <email@hidden>)

  • Prev by Date: RE: autentification problem
  • Next by Date: OpenGL export is messed up
  • Previous by thread: Re: autentification problem
  • Next by thread: Re: autentification problem
  • Index(es):
    • Date
    • Thread