SAMBA: Blocking access to subdirectories per IP address
I have been recently asked to block access to certain directories based on ip address.
For example: The same user:
- should have an access to directory A if he is connecting from x.x.x.x IP address, but he shouldnt have an access to directory B from that IP address
- should have an access to directory B if he is connecting from y.y.y.y IP address, but he shouldnt have an access to directory A from that IP address
Is it possible to implement that scenario in Samba?
In apache it's easy by putting few <Location X> sections with a few directives, but I couldn't find any relevent configuration example in SAMBA.