LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-12-2012, 01:15 AM   #1
achoos13
LQ Newbie
 
Registered: Jan 2012
Posts: 18

Rep: Reputation: Disabled
Question openldap


Hi all,

Can anyone guide me in the installation of openldap on rhel6. I don't have any prior exp: in openldap. So am badly in need of a helping hand.......
 
Old 01-12-2012, 10:45 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by achoos13 View Post
Hi all,
Can anyone guide me in the installation of openldap on rhel6. I don't have any prior exp: in openldap. So am badly in need of a helping hand.......
What can we 'guide you' with?? You don't say what problems (if any), you're having. Did you try Google, and look up any of the thousands of how-to guides, that tell you how to configure it?

http://www.openldap.org/doc/admin24/
http://tldp.org/HOWTO/LDAP-HOWTO/

And, since you're using RHEL, have you contacted RedHat support for help?? Since you're paying for RHEL, you do have access to their knowledegebase and support. If you're NOT paying for RHEL, you should NOT be using it, but load CentOS or Scientific linux instead, which are 99.x% identical, but FREE.
 
1 members found this post helpful.
Old 01-12-2012, 11:39 AM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Assuming you want to install an OpenLDAP service, that part is easy:
Code:
# yum install openldap-servers
Configuring and securing slapd(8), on the other hand, is not particularly easy. I recommend reading the guides TB0ne posted above to get a feel for what you're embarking on. If you're like me (and prefer a paper book to read), get a copy of LDAP System Administration by Carter from your local bookstore or library.
 
1 members found this post helpful.
Old 01-12-2012, 12:13 PM   #4
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 263

Rep: Reputation: 59
I have my own ldap page at http://home.roadrunner.com/~computertaijutsu/ldap.html

HOWEVER!!!! It is for CentOS/RH5, not 6. They've made some changes

http://docs.redhat.com/docs/en-US/Re...e/ch07s03.html


You might also check the links at the bottom of my page, which has links to better, IMHO, docs about LDAP than the LDP and openldap's site.
 
2 members found this post helpful.
Old 01-12-2012, 12:24 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
OT: hey, there's scottro. Nice LDAP page, complete with command line utilities + LDIF. (You know, I recently wrote a lot of Perl utilities for searching and updating LDAP entries. I should probably do a little writeup on my LQ blog.)
 
Old 01-12-2012, 01:00 PM   #6
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 263

Rep: Reputation: 59
Hey there!!!! Thanks for the kind words. These days, very little BSD, mostly CentOS, some Ubuntu server as well. Time flies when you're having fun.

Do so, and let me know, I'll add a link to my page.
 
Old 01-12-2012, 05:26 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
It's rough around the edges, but it's done for now:
http://www.linuxquestions.org/questi...nd-perl-34367/

Feel free to not link to it -- no hard feelings. But I wanted to whip together enough documentation to pique interest in someone who wishes to apply a robust scripting language's capabilities to directory entry management. (IMO, Net::LDAP is very slick.)

OK, I'll stop yammering on OP's thread.
 
1 members found this post helpful.
Old 01-12-2012, 07:31 PM   #8
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 263

Rep: Reputation: 59
Yes, and let me add my apologies to the OP as well. We should do another thread or emails, or something.

But thank you. (To the OP for their patience, and to anomie for the scripts).
 
1 members found this post helpful.
Old 01-12-2012, 07:44 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Awesome contributions from both of you, scottro11 and anomie. Thanks for sharing.
 
Old 01-13-2012, 06:51 AM   #10
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 263

Rep: Reputation: 59
Thank you TBone. I suspect you're an LDAP master--my reasoning is that, in my experience, when someone recommends a tutorial that I found very difficult, it means that they already know the subject well enough so that they miss the gaps in the tutorial.

@anonmie, I've added your scripts in the links section of the article.

Last edited by scottro11; 01-13-2012 at 07:37 AM.
 
Old 01-13-2012, 04:27 PM   #11
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Thanks, scottro. I'm honored, oh FreeBSD (I mean... CentOS) guru.

Glad you, TB0ne, and I could use this thread to trade OpenLDAP tips. I'll seriously stop going OT here now.
 
Old 01-14-2012, 03:19 PM   #12
Abstract Final
LQ Newbie
 
Registered: Jan 2012
Posts: 3

Rep: Reputation: Disabled
Guys, I am also new to LDAP and am stuck at this step:-
Quote:
ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
I get the following error:-
Quote:
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
And querying status shows inactive:-
Quote:
slapd.service - LSB: starts and stopd OpenLDAP server daemon
Loaded: loaded (/etc/rc.d/init.d/slapd)
Active: inactive (dead) since Sat, 14 Jan 2012 13:58:13 -0700; 12min ago
Process: 2690 ExecStop=/etc/rc.d/init.d/slapd stop (code=exited, status=0/SUCCESS)
Process: 2665 ExecStart=/etc/rc.d/init.d/slapd start (code=exited, status=6/NOTCONFIGURED)
CGroup: name=systemd:/system/slapd.service
Any help would be appreciated. Thanks.
 
Old 01-16-2012, 11:33 PM   #13
achoos13
LQ Newbie
 
Registered: Jan 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
thank you

Thanks a lot.... here we are designig a data centre. We are usinng openldap for the first. got stuck at first step itself.....will post if i gt stuck again
 
Old 01-17-2012, 05:22 AM   #14
achoos13
LQ Newbie
 
Registered: Jan 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
hi,

anyone know how to integrate postgre sql with openldap in RHEL 6
 
Old 01-17-2012, 09:08 AM   #15
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by achoos13 View Post
hi,
anyone know how to integrate postgre sql with openldap in RHEL 6
First hit in Google for "linux openldap postgresql":
http://www.darold.net/projects/ldap_pg/HOWTO/index.html

Did you even try to look this up first? And AGAIN, if you're using RHEL, you should be calling RedHat for support, since you're paying for RHEL, right?? If you're not, you need to stop using it now, and load CentOS instead. AGAIN, if you're not paying for RHEL, you WILL NOT get updates/patches/fixes, or access to the online repositories, so you can load additional software later.
 
1 members found this post helpful.
  


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
nss_ldap, openldap and openldap-server ... what is openldap for? chakkerz Linux - Server 2 08-13-2009 07:16 PM
LXer: OpenLDAP Quick Tips: OpenLDAP Logfile analysis LXer Syndicated Linux News 0 12-01-2008 04:00 PM
LXer: OpenLDAP Quick Tips: Regularly upgrade OpenLDAP! LXer Syndicated Linux News 0 11-25-2008 02:00 PM
LXer: OpenLDAP Quick Tips: Using syslog or syslog-ng with slapd for OpenLDAP logging LXer Syndicated Linux News 0 11-14-2008 08:41 PM
AD, OpenLDAP bentman78 Linux - Networking 1 03-15-2005 12:34 PM

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

All times are GMT -5. The time now is 01:26 PM.

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