Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a WebDAV server running on a linux server through Apache, which I am then attempting to map on a windows machine.

The mapping works fine, I provide my credentials and it logs me in, but the windows machines are unable to remember my credentials and I am forced to hit the "Login" button every time I open a new document, as well as when the machine is turned on or woken up from sleep mode. On machines running anything lower then Windows 7, I am also forced to manually type my username and password into the login box for every resource used in a document (such as images in a word document and similar).

My apache setup uses Digest authentication with the following config;

    Alias /group /home/webdav/group
    <Location /group>
            DAV On
            AuthType Digest
            AuthName "group"
            AuthUserFile /home/webdav/users/group-password
            Require valid-user
    </Location>

I don't think the config is the reason for this odd behavior, but more that windows is unable to automatically respond to requests for login credentials (and in the situation with the machines running Vista and lower that they can't even save them for some odd reason).

share|improve this question
    
I seem to recall something about older versions of Windows never sending credentials automatically to a destination that isn't on the local domain for security reasons. I have no source for this, just a thought is all. –  SimonJGreen Mar 6 '12 at 12:42

2 Answers 2

May be mapping to a network drive can help?

net use x: "http://server.net:80/folder" /persistent:yes /User:<user> <password>

Note, that Windows XP doesn't support mapping to root directly, only to subfolders

share|improve this answer

Manually adding the credentials to Credential Manager has worked for me in the past, on Vista and XP systems, when the system 'loses' credentials on a logoff/reboot. Windows 7 seems to do a much better job of automagically caching them, which may explain why the problem isn't observed there.

XP: KB306541
Vista/7: http://windows.microsoft.com/en-US/windows7/What-is-Credential-Manager

If you want something scriptable, you can try: http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/e91769eb-dbce-4e77-8b61-d3e55690b511/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.