LinuxQuestions.org
Visit Jeremy's Blog.
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 02-16-2008, 08:25 AM   #1
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
openldap - question about suffix / rootdn / dn


I'm using this guide --> http://www.linuxhomenetworking.com/w...DAP_and_RADIUS

I'm in the early stages here, and I'm modding my slapd.conf file. It says to add this to your conf file....

Code:
database        bdb
suffix          "dc=example,dc=com"
rootdn          "cn=Manager,dc=example,dc=com"
rootpw          {SSHA}v4qLq/qy01w9my60LLX9BvfNUrRhOjQZ
directory       /var/lib/ldap/example.com
Assuming I'm installing this on a machine that is located at freddy.domain1.com. Would my config look like this?

Code:
database        bdb
suffix          "dc=freddy,dc=domain1,dc=com"
rootdn          "cn=Manager,dc=freddy,dc=domain1,dc=com"
rootpw          {SSHA};lasd9320jf30j30j03j09jf0jf0jf340jfio34
directory       /var/lib/ldap/domain1.com
Or do I just use the very last part of the domain?

Also, should this be a name that is in my dns, or should it be more like domain1.local?

Thanks for any help.
 
Old 02-16-2008, 11:14 AM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
If your building it on a machine with the name freddy there is no need to include that hostname.
Try
Code:
database        bdb
suffix          "dc=domain1,dc=com"
rootdn          "cn=Manager,dc=domain1,dc=com"
rootpw          {SSHA};lasd9320jf30j30j03j09jf0jf0jf340jfio34
directory       /var/lib/ldap/domain1.com
The you can add users in cn=People,dc=domain1,dc=com.
They will be organized like:
uid=username,cn=People,dc=domain1,dc=com

You want the suffix to reflect the domain, not the host serving it because that could always change in the future.
 
  


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
DNS suffix Golzari-Ali Linux - General 2 09-30-2006 01:23 PM
Openldap question gn00kie Red Hat 0 02-27-2006 02:55 AM
Network Attached Storage (NAS) - OpenLDAP/Samba integration question scarab02 Linux - Networking 0 01-17-2006 02:05 PM
OpenLDAP rootDN fetch with Java wslyhbb Programming 0 01-31-2005 07:54 PM
OpenLDAP server question phonecian Linux - Networking 3 09-20-2003 02:07 PM

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

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