LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 07-03-2020, 05:15 AM   #1
LuisO
LQ Newbie
 
Registered: Mar 2020
Location: France
Posts: 6

Rep: Reputation: Disabled
OpenLDAP on Centos


Hello,

I am new to OpenLDAP and would like to know whether it is possible to install OpenLDAP in a different directory than "/etc"

Thanks in advance.
 
Old 07-03-2020, 07:30 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
OpenLDAP is not installed in /etc. /etc only contains the configuration. Other components are in /usr/bin, /var and so on.

If you want to know whether the configuration can go to a different directory than /etc, I doubt that there is such an option when installing it with yum. However, when you install it from the source, you can select the installation directory.

What's the problem with /etc?
 
1 members found this post helpful.
Old 07-03-2020, 07:37 AM   #3
LuisO
LQ Newbie
 
Registered: Mar 2020
Location: France
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks a lot bernbausch,

The problem with /etc is that I can't install it in the original filesystem. This would require a very long explanation but I have to install it on /mnt.

So, I can't touch /usr or /var for this matter.

I don't even know if that is feasible.

Thanks again.
 
Old 07-03-2020, 08:56 AM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by LuisO View Post
Thanks a lot bernbausch,

The problem with /etc is that I can't install it in the original filesystem. This would require a very long explanation but I have to install it on /mnt.

So, I can't touch /usr or /var for this matter.

I don't even know if that is feasible.

Thanks again.
You could try a symlink or bind mount from /etc/openldap to /mnt/openldap.
 
1 members found this post helpful.
Old 07-03-2020, 09:34 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
From the rpm manual page:
Quote:
--root DIRECTORY
Use the file system tree rooted at DIRECTORY for all operations. Note that this means the database within DIRECTORY will be used for dependency checks and any scriptlet(s) (e.g. %post if installing, or %prep if building, a package) will be run after a chroot(2) to DIRECTORY.
From the DNF Command Reference:
Quote:
--installroot=<path>
Specifies an alternative installroot, relative to where all packages will be installed. Think of this like doing chroot <root> dnf, except using --installroot allows dnf to work before the chroot is created. It requires absolute path.

Last edited by shruggy; 07-03-2020 at 09:39 AM.
 
1 members found this post helpful.
Old 07-06-2020, 01:25 AM   #6
LuisO
LQ Newbie
 
Registered: Mar 2020
Location: France
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks both.

The thing is that apart from /etc , there are the /var and the /usr directories where openldap places things.

I am trying to figure out the whole thing.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Centos 6.4 with OpenLDAP+TLS: OpenLDAP ok, add TLS =>not ok chrism01 Linux - Server 2 10-27-2013 03:15 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

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