IIS 7 and Above
Webdav for multiple users
Last post May 25, 2012 10:06 AM by tarzan_055
May 10, 2012 12:52 PM|tarzan_055|LINK
May 10, 2012 03:14 PMemail@example.com|LINK
Use NTFS permissions to limit access in the file/folder structure.
May 11, 2012 08:21 AM|tarzan_055|LINK
thats not an option mate coz am talking about hundreds of users.
I already used this link to configure the FTP service.
is there a way to user the same way to fix the Webdav
May 16, 2012 03:54 AM|Lloydz|LINK
As far as I could think of, there'e no other way for webdav to implement this. You may consider use scripts to create these folders and set corresponding permissions.
May 16, 2012 03:01 PM|tarzan_055|LINK
May 17, 2012 03:27 AM|Lloydz|LINK
In this case, you can use powershell scripts to configure the settings. Do an traversal of subfolders, pick up the names which is user related, convert the name as the real user name(e.g domain user), then add corresponding permission for the user to the
May 18, 2012 06:12 PM|tarzan_055|LINK
I will get back to you on the solution you suggested and i will wait for a simpler one on this forum.
May 24, 2012 08:11 PMfirstname.lastname@example.org|LINK
I'm not sure there is any easier solution, WebDAV isn't designed to control the security, that's up to Windows. Scripting this is a viable solution, and likely the one with the least management after the fact.
May 25, 2012 10:06 AM|tarzan_055|LINK
i solved it by using .Net. i made an ASP.net web page and put the following code on it
Private Sub CreateWebdav_authering(ByVal vdirname As String)
Dim serverManager As ServerManager = New ServerManager
Dim config As Configuration = serverManager.GetApplicationHostConfiguration
Dim authoringRulesSection As ConfigurationSection = config.GetSection _
("system.webServer/webdav/authoringRules", "Default Web Site/" & vdirname)
authoringRulesSection("allowNonMimeMapFiles") = True
Dim authoringRulesCollection As ConfigurationElementCollection = authoringRulesSection.GetCollection
Dim addElement As ConfigurationElement = authoringRulesCollection.CreateElement("add")
addElement("roles") = vdirname
addElement("path") = "*"
addElement("access") = "Read, Write, Source"
the vdirname is the virtual directory name. i put a login page which authenticates against LDAP and when the user authenticated it passes the username as the vdirename and it activates the webdav authering rule.
regards to all