LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-23-2009, 10:27 AM   #1
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
How do you manage your DMZ server accounts?


I'd just like to know what you use for user account management on your DMZ servers?

Do you use the same authentication realm as internally?

Do you use a different authentication realm, perhaps only for the DMZ?

Do you use local accounts?
 
Old 07-23-2009, 12:45 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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...)
 
Old 07-23-2009, 12:53 PM   #3
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
I use LDAP
 
Old 07-24-2009, 04:04 AM   #4
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
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?
 
Old 07-24-2009, 05:35 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 07-30-2009, 11:27 PM   #6
cam34
Member
 
Registered: Aug 2003
Distribution: Fedora 22, Debian 8, Centos 6/7 for servers
Posts: 101

Rep: Reputation: 16
Quote:
Originally Posted by humbletech99 View Post
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
 
Old 07-31-2009, 03:17 AM   #7
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
yes I've used a lot of acls and have done something similar but I've also set the readonly on as well, defense in depth and all that...
 
Old 07-31-2009, 03:12 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
is that a generic user account for all admins? I really really hope not...
 
Old 08-04-2009, 03:57 AM   #9
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
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.
 
Old 08-04-2009, 06:07 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I'd only have an account for replication purposes within the DMZ LDAP, there should be no write access to anyone else.
 
Old 08-04-2009, 06:13 AM   #11
humbletech99
Member
 
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What should I use to manage accounts on XAMPP? SimbaSpirit Linux - Newbie 3 02-07-2008 09:22 PM
need package to manage mail domains and accounts sneakyimp Linux - Software 16 10-25-2007 08:36 PM
LXer: Manage user accounts with Tivoli Identity Manager LXer Syndicated Linux News 0 05-30-2007 05:01 AM
Using LDAP to create and Manage Linux Accounts BBQ_Matt Linux - Networking 2 06-20-2005 04:20 PM
Software to Manage Email Accounts. Ampex Linux - Software 5 01-25-2004 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration