Any good examples/references implementing ACLs via SQL?
Asked Answered
R

2

9

I currently have a web-application that implements a rudimentary form of ACL using UNIONs in mysql, but it's somewhat limited, and doesn't necessarily scale that well

I'm interested in any alternative ACL algorithms that could be implemented efficiently in SQL.

Thanks!

Raymonderaymonds answered 19/5, 2010 at 18:7 Comment(0)
S
5

I've used this document as a model for implementing row level security in a Sql Server based CRM system. In my implementation, rows are made available to a given user based on their Active Directory group memberships.

The performance was surprisingly good when appropriately indexed.

http://msdn.microsoft.com/en-us/library/cc966395.aspx

Sheol answered 19/5, 2010 at 18:14 Comment(3)
I'll have a look at translating this logic to more generic mysql... but thanks!Raymonderaymonds
No one came up with an answer that's suitable for mysql but I think this should give me enough to build my own solution, which I will post here when I do for the benefit of the community.Raymonderaymonds
@Raymonderaymonds How's that coming along? :PProg
I
0

Here is a solution for unix like file permissions in sqlite, which I wrote. I do not know however how performant it ist:

https://github.com/orgesleka/unix-acl-sql

Iowa answered 1/11, 2018 at 8:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.