mattyb_53 Posted December 6, 2007 Share Posted December 6, 2007 HI, Im trying to implement my own file browser and im having issues with security on a windows system. Suppose a User on a domain (win 2003) is not allowed access to a folder. How would I be able to implement similar security in PHP? I want to be able to list the contents of a folder, but hide the folders and files that a user is not allowed to see. Is this possible? Ive been googling all day! Quote Link to comment https://forums.phpfreaks.com/topic/80400-simple-file-browser/ Share on other sites More sharing options...
teng84 Posted December 6, 2007 Share Posted December 6, 2007 yes ... you might use database to list all the user allowed and not allowed pr session .. Quote Link to comment https://forums.phpfreaks.com/topic/80400-simple-file-browser/#findComment-407658 Share on other sites More sharing options...
mattyb_53 Posted December 6, 2007 Author Share Posted December 6, 2007 Hm, id really like to be able to pick up some permissions from the domain though. For example, if I set a user (in windows) to have read permission, then show the folder. If that user is not on the list then do not show them. any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/80400-simple-file-browser/#findComment-407669 Share on other sites More sharing options...
mattyb_53 Posted December 6, 2007 Author Share Posted December 6, 2007 Lemme perhaps re-phrase the thing.. A user logs into the application, and their username is the same as their domain controller username. They can manage the files sitting on the file share, and files and folders have certain permissions. So windows shows/hides, allows/denies access based on windows domain permissions. Now my app is web based. I want to take the username (used to log in) and list the files in say the root directory. if that user is not allowed read access to a folder in that directory..then hide it. is there a way to get the windows permissions on a folder? I know Chmod is a little screwy and doesnt work well in windows Quote Link to comment https://forums.phpfreaks.com/topic/80400-simple-file-browser/#findComment-408344 Share on other sites More sharing options...
Eiolon Posted December 6, 2007 Share Posted December 6, 2007 Lookup using LDAP with PHP. Also, are you using IIS? You can manage permissions for users/groups in IIS for folders and files. Quote Link to comment https://forums.phpfreaks.com/topic/80400-simple-file-browser/#findComment-408348 Share on other sites More sharing options...
mattyb_53 Posted December 10, 2007 Author Share Posted December 10, 2007 Hm, I like PHP as its quick efficient and so forth. But I cant believe there isnt a way of displaying files from a directory based on your Windows Active Directory permissions. All i need is a way to prevent users from seeing files and folders they wouldnt normally see on a network share. !! ??? :'( Quote Link to comment https://forums.phpfreaks.com/topic/80400-simple-file-browser/#findComment-410746 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.