smb URL syntax brain teaser
Simo Sorce
simo.sorce at polimi.it
Tue Mar 20 08:42:45 GMT 2001
Simply some characters must be escaped or passed as spaces in url (eg
%20).
In passwords, nearly every character is accepted, as \/""%@#:;, etc....
so escaping is a must anyway.
On Mon, 19 Mar 2001, Allen, Michael B (RSCH) wrote:
> Regarding the smb URL syntax finalized on this list.
> The syntax cannot be parsed. This is because the
> password is not traversable(it can contain any sequence
> you might look for) and an '@' according to the CIFS
> specification is a valid path character.
>
> Take this example:
>
> smb://user:p@a/ss@server/share/path/to/t@e/file
>
> The target is to parse as:
>
> userinfo user:p at a/ss
> server server
> share share
>
> but there is no possible way to prevent this:
>
> userinfo user:p
> server a
> share ss at server
>
> or this:
>
> userinfo user:p at a/ss at server/share/path/to/t
> server e
> share file
>
> Right now my parser assumes the '@' sign cannot appear
> in a filename or path. Anyone have an ingenious way
> around this problem?
>
> Thanks,
> Mike
>
>
>
>
>
--
Simo Sorce - Linux Systems Consultant
E-mail: simo.sorce at polimi.it
Tel: +39 0348 7149179 - Fax: +39 02 700442399
-----------------------------------------------------------------
Be happy, use Linux!
More information about the samba-technical
mailing list