Page 1 of 1

Entering UNC paths does not prompt for username/password

Posted: 23 Nov 2015 21:21
by ksarnelli
Since I've been seeing a lot of threads lately about people not being able to access password protected network paths I figured I would chime in. I've never been able to connect to most password protected network shares unless I first try to access them in Windows Explorer (which does prompt me).

I've tried the suggestions in all of the other threads with no success.


Notable items:
- I have Network Server Caching disabled in Features
- If I save the credentials in Windows Credential Manager XY can connect without any problems, but for security reasons I cannot do this on most shares.
- I only connect to network shares by entering UNC paths directly in the address bar.
- The issue *does* happen with a fresh install.


The error I get is:
Could not find: \\server_or_ip\share
Probably the server is currently not available.


If i use:

Code: Select all

logon "\\server_or_ip\share";
XY does prompt me for credentials and then I am able to access the share.


I have attached a screenshot of:

Code: Select all

exist "\\server_or_ip\share";
when the error occurs.

Thanks!

Re: Entering UNC paths does not prompt for username/password

Posted: 23 Nov 2015 22:51
by admin
The number 53 means "Path not found". It should be number 5 ("Path found but access denied") to pop the login prompt.

Please try this line (with your path, of course) to see if XY can pop a login prompt for the path:

Code: Select all

logon "\\server\share";

Re: Entering UNC paths does not prompt for username/password

Posted: 23 Nov 2015 22:54
by ksarnelli
admin wrote:The number 53 means "Path not found". It should be number 5 ("Path found but access denied") to pop the login prompt.
I guess that's the problem then :P

The path definitely exists, but requires authentication. Windows Explorer prompts for authentication and the XY logon command does as well.

Re: Entering UNC paths does not prompt for username/password

Posted: 23 Nov 2015 22:55
by ksarnelli
admin wrote:The number 53 means "Path not found". It should be number 5 ("Path found but access denied") to pop the login prompt.

Please try this line (with your path, of course) to see if XY can pop a login prompt for the path:

Code: Select all

logon "\\server\share";
Did that already, see my original post :)

Re: Entering UNC paths does not prompt for username/password

Posted: 23 Nov 2015 23:00
by admin
ksarnelli wrote:
admin wrote:The number 53 means "Path not found". It should be number 5 ("Path found but access denied") to pop the login prompt.

Please try this line (with your path, of course) to see if XY can pop a login prompt for the path:

Code: Select all

logon "\\server\share";
Did that already, see my original post :)
Oh, are you clever! :tup:

Well, what to do now? Should I also pop the login prompt on 53??? Hmmm... :eh:

Re: Entering UNC paths does not prompt for username/password

Posted: 23 Nov 2015 23:02
by ksarnelli
Not sure if this will help but here is the

Code: Select all

exist "\\server_or_ip\share";
using the same UNC path after logging in with WE (or logon "\\server_or_ip\share"; from XY).

Re: Entering UNC paths does not prompt for username/password

Posted: 23 Nov 2015 23:06
by highend
A login prompt for a path that doesn't exist (at least that's what the return value says)? *doh*

Re: Entering UNC paths does not prompt for username/password

Posted: 23 Nov 2015 23:12
by ksarnelli
highend wrote:A login prompt for a path that doesn't exist (at least that's what the return value says)? *doh*
Actually, I believe that's essentially what WE does when you attempt to access a share on an online server that restricts share enumeration to authenticated users. It prompts you and then tells that the share/folder does not exist once you successfully authenticate, since it has no way of knowing before it is authenticated.

The trick is to only prompt the user in the above condition.

Re: Entering UNC paths does not prompt for username/password

Posted: 23 Nov 2015 23:18
by ksarnelli
ksarnelli wrote:
highend wrote:A login prompt for a path that doesn't exist (at least that's what the return value says)? *doh*
Actually, I believe that's essentially what WE does when you attempt to access a share on an online server that restricts share enumeration to authenticated users. It prompts you and then tells that the share/folder does not exist once you successfully authenticate, since it has no way of knowing before it is authenticated.

The trick is to only prompt the user in the above condition.

I just tested the above scenario in WE with a non-existent share on one of these servers and it did in fact work exactly like that:

- Enter \\server\non_existent_share in address bar in WE
- Got prompted for username/password
- Entered credentials
- Got error from WE: "Windows cannot access \\server\non_existent_share "

On the next try with the same path ( \\server\non_existent_share) it generates the error right away since the credentials are cached.

Re: Entering UNC paths does not prompt for username/password

Posted: 24 Nov 2015 09:04
by admin
OK, thanks for digging into the logic of this. I will add 53 support experimentally.

Re: Entering UNC paths does not prompt for username/password

Posted: 24 Nov 2015 15:43
by ksarnelli
admin wrote:OK, thanks for digging into the logic of this. I will add 53 support experimentally.
I tested a few scenarios and the changes in 16.00.0109 are actually working great so far. I'll let you know if any issues come up. Thanks Don! :mrgreen: