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-25-2010, 01:02 AM   #1
mattseanbachman
Member
 
Registered: Feb 2010
Posts: 40

Rep: Reputation: 15
OpenLDAP : Where is directory stored on hard disk


Hello,

I'm relatively new to LDAP and I was curious as to where directories are stored on the hard disk. I've searched pretty thoroughly through where I thought it might be, like in /etc/ldap/, /var/run, and I've done several greps wherein I looked for patterns such as those found in the directory itself. The only thing that turned up on those greps were .ldif files I already knew about.

I've done some searching on Google as well, as well as other forums and the man pages, doesn't seem to be a common question (either that or I passed up something along the way).

My OS is linux mint, so it's based off of Ubuntu if that helps anyone. So far I've mostly been looking for plain-text data, so I think that might be my mistake (could it be encrypted?).

Anyway, thanks in advance for any ideas anyone might have. If there are questions to any other info that might be helpful feel free to ask, I'll try to respond as soon as feasible.
 
Old 02-25-2010, 02:23 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi again,

I guess you mean the directory where the ldap databases are stored. If that's the case, you should run:
Code:
 ldapsearch -W -D "cn=admin,cn=config" -b cn=config  olcDatabase=\{1\}bdb olcDbDirectory

Last edited by bathory; 02-25-2010 at 02:31 AM.
 
1 members found this post helpful.
Old 02-25-2010, 08:38 PM   #3
mattseanbachman
Member
 
Registered: Feb 2010
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
Hi again,

I guess you mean the directory where the ldap databases are stored. If that's the case, you should run:
Code:
 ldapsearch -W -D "cn=admin,cn=config" -b cn=config  olcDatabase=\{1\}bdb olcDbDirectory
Lol thanks again for the help, Bathory! It's truly appreciated. Works like a charm, and for those of you who were wondering, it was shoved in /var/lib/ldap.
 
  


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
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
Check hard disk usage per directory alaios Linux - General 4 10-09-2006 03:55 PM
Guarddog - rc.firewall not stored in rc.d directory studioq Linux - Newbie 5 10-05-2006 09:03 PM
getting current directory where classes are stored linuxmandrake Programming 2 04-14-2006 06:11 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM

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

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