Re: autentification problem
Re: autentification problem
- Subject: Re: autentification problem
- From: "Glenn L. Austin" <email@hidden>
- Date: Mon, 2 Feb 2009 07:53:06 -0800
Well, an "acceptable" URL would be something like "smb://serveraddr/sharename/path/to/file
" to be valid.
The original address was a Windows-only server/file (NMB) path. It's
not a URL, nor it is even close to anything that is "working." It is
no different than C:\\path\to\file.
On Feb 2, 2009, at 4:47 AM, Valentin Dan wrote:
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
_______________________________________________
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