LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   OpenLDAP : Where is directory stored on hard disk (https://www.linuxquestions.org/questions/linux-server-73/openldap-where-is-directory-stored-on-hard-disk-791413/)

mattseanbachman 02-25-2010 01:02 AM

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.

bathory 02-25-2010 02:23 AM

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

mattseanbachman 02-25-2010 08:38 PM

Quote:

Originally Posted by bathory (Post 3876045)
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.


All times are GMT -5. The time now is 02:09 AM.