LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-22-2011, 02:35 PM   #1
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Rep: Reputation: 23
CentOS 6 ldap setup question


Is it possible to have an Scientific Linux 6.1 (64 bit) server running the ldap from the channel to handle multiple domains (for spam appliances to query for valid email addresses).

Sorry I meant Scientific Linux 6.1 64 bit

I have been reading several online howto/guides and I have not been successful.


For example there are about 15 domains, can 1 ldap server be utilized to store the email addresses.

ISP domain abc.com (alias domain abc123.com)

dedicated domains:
abcefg.com
city-something.org
anotherdomain.com
ect...

I am a bit lost on really how to go about this, any tips/advice would be great. As it seems getting ldap on a Linux distro functioning is challenging.

Last edited by rhbegin; 11-22-2011 at 02:38 PM. Reason: trying to setup on Scientific Linux 6.1
 
Old 11-23-2011, 02:30 AM   #2
War3zWad|0
Member
 
Registered: Sep 2011
Location: Houston, TX
Distribution: openSuSE, Fedora, CentOS, Debian,, and others
Posts: 84

Rep: Reputation: Disabled
Quote:
Originally Posted by rhbegin View Post
Is it possible to have an Scientific Linux 6.1 (64 bit) server running the ldap from the channel to handle multiple domains (for spam appliances to query for valid email addresses).

Sorry I meant Scientific Linux 6.1 64 bit

I have been reading several online howto/guides and I have not been successful.


For example there are about 15 domains, can 1 ldap server be utilized to store the email addresses.

ISP domain abc.com (alias domain abc123.com)

dedicated domains:
abcefg.com
city-something.org
anotherdomain.com
ect...

I am a bit lost on really how to go about this, any tips/advice would be great. As it seems getting ldap on a Linux distro functioning is challenging.

The answer to your question is YES. It's not going to be fun or easy, at least in my experience, but it is possible. I have personally setup LDAP that handled 7 different domains with out any issues. Now I was also using openSuSE 11.3 because it uses Novell's YaST System Management Tool and setting up LDAP with Mail support is some what straight forward in YaST.

I will give this as a tip, the one thing that most everyone forgets is to establish correct ACL's. I know I did the first 4 or 5 times I setup an LDAP Network. The key is to allow everyone to authenticate but only allow authenticated users to be able to read or view any LDAP entries. You may also want to look into using 389DS (389 Directory Service) which at one point had an install rpm in the Fedora Repo, that is if you want to use a RHEL based distro.

Here are a couple of How-To's from Novell for openSuSE and SLES/SLED based systems:
http://en.opensuse.org/SDB:LDAP_server

http://www.linuxtopia.org/online_boo...ldap_yast.html

http://tldp.org/HOWTO/LDAP-HOWTO/ <-- good example for installing and configuring from source


It's going to take some work to get all the pieces to work correctly.
.
 
Old 11-23-2011, 01:39 PM   #3
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Original Poster
Rep: Reputation: 23
Thank you for the reply, I will explore the options, I am starting to think it may be easier with OpenSuSE Linux possibly.

*** Did you use 32 bit or 64 bit???

This may be a dumb question does it matter what domain you start with in your config?

Like this example:

abc.com (is the main isp domain name) and (abc123.com) is an alias domain name

then the others are all hosted domains like
efg.com
xyz.com
bee.org
ect..
ect..


You are correct it is going to be some work.

Thank you again, the tips/advice were great!


Last edited by rhbegin; 11-23-2011 at 01:55 PM. Reason: Did you use 32 bit or 64 bit?
 
Old 11-24-2011, 03:21 AM   #4
War3zWad|0
Member
 
Registered: Sep 2011
Location: Houston, TX
Distribution: openSuSE, Fedora, CentOS, Debian,, and others
Posts: 84

Rep: Reputation: Disabled
I have used both 32bit and 64bit. I first started with 32bit only because that was the OS I had installed already. There should be no difference between the 2 no matter what system you use. For the second C3DC(Community College Cyber Defense Challenge) I attended, we used openSuSE 11.3 32bit as the box they gave us to use would not support 64bit. My team placed 7th overall(22 teams) and we were complimented on our LDAP setup, and to be honest at the time I had taught myself how to setup and use basic authentication with LDAP 2 weeks before the competition as the guy that was suppose to do that backed out.

To answer your second question you will always start out setting up your LDAP or for that fact your MS-DS using your TOP Domain, in your case abc.com as the primary. Then you would setup any subsequent domain as a "Slave" or "Child" of the primary. Basically this is what you would see if you where to make a "Tree" of your hierarchy of what you wanted to do:


abc.com(abc123.com) <-- Primary or Top Level (dc=abc,dc=com -- root of structure)
|
-------------------------------------
|............|............|.........|
efg.com......xyz.com......bee.org...mno.info
|............|............|.........|

Alternatively you could also add to your Primary something like so:

abc.com(abc123.com) <-- Primary or Top Level (dc=abc,dc=com -- root of structure)
|
---------------------
|............|.........|
People Servers Domains <-- (ou=domains,dc=abc,dc=com)
|............|.........|
---.........---........|
.......................|
-------------------------------------
|............|...........|..........|
efg.com...xyz.com.....bee.org....mno.info <-- (cn=mno.info,ou=mno,dc=abc,dc=com)
|............|...........|..........|

(I hate it when systems remove "White Space" as it kills my pretty trees)

You would set up each "Sub-Domain"/"Add-on Domain" as an Organizational Unit to the Root Domain, or you could even make an OU called Domains then place those Domains under that OU. This would then allow you to segregate out each Domain a little further. It all depends on what you are looking to accomplish in the end. Do you want Security over Complexity, or do you want to follow the following K.I.S.S. (Keep it simple stupid) rule of thumb.

I have also used 389DS while running Fedora 12/13 and had no issues (only reason I used it was that was the OS that my instructor liked), but again it is going to take time and a lot of reading & posting to help forums.

Last edited by War3zWad|0; 11-24-2011 at 03:32 AM. Reason: tree didn't work
 
Old 11-24-2011, 07:35 PM   #5
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Original Poster
Rep: Reputation: 23
I like things the simplest as possible, basically it would be to identify valid email addresses for the company isp domain and the hosted domains only.

The spam appliances would read from them, I got the OpenSuSE downloaded and installed as a virtual machine. Would it be worthwhile to give the Fedora a try with ldap configuration as well?

Sorry for so many questions, I am still researching/learning on this subject and it seems quite complex.

thank you for all of you help/advice
 
Old 11-25-2011, 03:47 AM   #6
War3zWad|0
Member
 
Registered: Sep 2011
Location: Houston, TX
Distribution: openSuSE, Fedora, CentOS, Debian,, and others
Posts: 84

Rep: Reputation: Disabled
Quote:
Originally Posted by rhbegin View Post
I like things the simplest as possible, basically it would be to identify valid email addresses for the company isp domain and the hosted domains only.

The spam appliances would read from them, I got the OpenSuSE downloaded and installed as a virtual machine. Would it be worthwhile to give the Fedora a try with ldap configuration as well?

Sorry for so many questions, I am still researching/learning on this subject and it seems quite complex.

thank you for all of you help/advice

If you are wanting "Simple" then I would recommend using openSuSE and YaST. I feel and I could be wrong because I am speaking from my experiences that it was easiest to get setup and actually working right with openSuSE.

With Fedora the one thing that I have personally experienced is that when they "update" their products it can tend to break things that were once working correctly. The other issue with Fedora is you have to make a choice and that is do you do everything the old fashion way and use the command line for everything or do you use a "System" that has a GUI interface to make things a little easier.

To answer the question in regards to being worthwhile to test multiple OSes at the same time and the answer to that (as a tester) is YES. I am going to say this, there is not 1 person in the world that knows everything there is to know about LDAP. I have been working with it for only 2.5 years and I am definitely still learning on the subject. I can only assist as much as my knowledge will provide, so I am sorry if these answers seem kind of vague.

When it comes to testing I personally setup a couple of virtual networks and test multiple configurations as well as OSes. This gives me not only a good learning environment but I can better choose which direction to go.
 
Old 11-25-2011, 08:43 AM   #7
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 381

Original Poster
Rep: Reputation: 23
Thank you again for the help/advice on this subject as it is very complex to me since I am just getting started in my learning.

I downloaded the 11.4 OpenSuSE release as I seen 12.1 but did not download this one as it was the newest version.

If you do not mind, I may post a few more questions on here, as openldap is very complex and has a steep learning curve.

Thank you again, you have been a great help!



Scott
 
  


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
CentOS 5.6 DC with LDAP Backend - Cant populate LDAP Totenkopf Linux - Server 4 05-28-2012 10:40 PM
[SOLVED] CentOS ldap server setup Jadedkill Linux - Server 6 07-18-2011 10:48 PM
how to setup open ldap server and solaris 10 as ldap client maheshlad Linux - Software 1 10-10-2009 12:55 AM
CentOS 5 with LDAP to Active Directory Login Question AtomicDon Linux - Newbie 4 05-28-2009 08:19 AM
printer setup from Centos 5 to Vista home prem. on a headless centos pc ncsuapex Red Hat 6 03-10-2008 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:21 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