Re: ACI to allow group to access one attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2018-02-22 at 12:17 +0100, Angel Bosch wrote:
> hi,
> 
> I need one specific attribute to be hidden for anyone but one group.
> 
> I've tested this one:
> 
>      (targetattr = "myCustomAttr") (version 3.0; acl "deny all but
> admins"; deny (all) groupdn !=
> "ldap:///cn=admins,ou=Groups,dc=company,dc=global";;)
> 
> and seems to work. 
> 
> Is this the right way to do it?

A better way to write this is:

(targetattr = "mycustomattr")(version 3.0; acl "allow admins
mycustomattr"; allow (all) groupdn =
"ldap:///cn=admins,ou=Groups,dc=company,dc=global";;)

That's a better rule.

> Can I face any side effects?

So if you apply the "allow" rather than the deny rule here, and a "non-
admin" user can read mycustomattr, that indicates a bug in your acl's.

I have some posts about this which might help:

https://fy.blackhats.net.au/blog/html/2015/07/04/Unit_testing_LDAP_acis
_for_fun_and_profit.html?highlight=aci

This is a very common "anti-pattern" I see, and it creates huge
security issues. If you find with the "allow" version that this is
happening, check your other rules! 

Hope that helps, 

> 
> regards,
> 
> abosch
> 
> 
> -- 
> _______________________________________________
> 389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to 389-users-leave@lists.fedoraproject.o
> rg
-- 
Thanks,

William Brown
_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux