sabre-io / dav

sabre/dav is a CalDAV, CardDAV and WebDAV framework for PHP
http://sabre.io
BSD 3-Clause "New" or "Revised" License
1.51k stars 345 forks source link

Authentication Windows Mount #972

Open bgauthier opened 7 years ago

bgauthier commented 7 years ago

Hello, I have my own php document / file system that I wish to share using sabre dav on a windows machine using a network drive. Everything works except for the authentication part. I am not quite sure how to implement this.

What I would like is for windows to ask me for a user name and password when mounting the network drive that I could then validate on the PHP side to determine what files are allowed for the user. Is there a documentation / tutorial on how to accomplish this?

DeepDiver1975 commented 6 years ago

owncloud uses sabredav and it can be mounted in windows see https://doc.owncloud.org/server/latest/user_manual/files/access_webdav.html#mapping-drives-with-the-command-line

On the php side this comes down to standard basic authentication.

let me know if this helps.