Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On my current project we use local accounts, but I'm pushing to move to using a read-only replica LDAP server within that zone to map back to. This means that a subset of passwords and accounts would be known to be the same inside the DMZ as in the back end, but as that's already more likely to be the case by manual intervention, I don't consider it to be a risk personally, or at least, a risk worth facing. A DMZ specific domain wouldn't be disasterous either (again with only read only boxes in the DMZ itself...)
That's what I am working on doing right now, I think I want to make the replicas read only but I am not sure quite how to make sure of this, is it updateref or something to prevent writes to the replicas when clients connect or do I just use acls to deny writes to all clients on the replica slapd configs?
Having an entire ldap server read only without any room for manoeuvre makes things conceptually very simple, with much less chance of abuse. You can easily just run a vm with the master server on an internal system and shut it down when not in use.
Distribution: Fedora 22, Debian 8, Centos 6/7 for servers
Posts: 101
Rep:
Quote:
Originally Posted by humbletech99
That's what I am working on doing right now, I think I want to make the replicas read only but I am not sure quite how to make sure of this, is it updateref or something to prevent writes to the replicas when clients connect or do I just use acls to deny writes to all clients on the replica slapd configs?
it will something like:
access to *
by uid=dmzuser,dc=linux,dc=com read
Which is the last ACL of slapd.conf anyway
The syntax is incorrect but you get the idea
acid_kewpie, have you used ldap for pam/nss configuration? You need to have one account that can read entries, although you can tighten it a little, but you still need read for a general user otherwise your directory would be read only to all which would suck big time, especially for a DMZ.
You still need an account for nss/pam, otherwise your whole directory is anonymously read enabled (bad). Of course write access is denied to all, hence the read bit at the end of the mentioned acl example.
One problem is the number of inept guides to openldap out there, which has led me to read a huge amount of documentation from multiple sources to piece it all together.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.