WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Install and config LDAP  (Read 1997 times)

Offline djmichaelsaler

  • Newbie
  • *
  • Posts: 2
Install and config LDAP
« on: September 02, 2017, 03:43:25 AM »
Hi, I'm installed OpenLDAP but when I edit the config file "/usr/local/etc/ldap/ldap.conf" with "sudo vi /usr/...", the vi return message "read only" and I can't edit the file.

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 708
Re: Install and config LDAP
« Reply #1 on: September 02, 2017, 07:53:54 AM »
Try to run
Code: (bash) [Select]
sudo chmod +rw /usr/local/etc/ldap/ldap.conf to the file, before you edit the file.



Offline djmichaelsaler

  • Newbie
  • *
  • Posts: 2
Re: Install and config LDAP
« Reply #2 on: September 02, 2017, 08:51:07 AM »
tc@box:~$ sudo chmod +rw /usr/local/etc/openldap/ldap.conf
chmod: /usr/local/etc/openldap/ldap.conf: Read-only file system


Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Install and config LDAP
« Reply #3 on: September 02, 2017, 09:09:56 AM »
You're trying to edit a file that is symlinked from the mounted extension. Replace the symlink with the real file by copying it from the mount point and add it to your backup.
Something like
Code: [Select]
sudo rm /usr/local/etc/ldap/ldap.conf
sudo cp /tmp/tcloop/openldap/usr/local/etc/ldap/ldap.conf  /usr/local/etc/ldap/ldap.conf
sudo vi /usr/local/etc/ldap/ldap.conf
echo "usr/local/etc/ldap/ldap.conf" >> /opt/.filetool.lst
filetool.sh -b
Download a copy and keep it handy: Core book ;)