Configure Apache/SVN/LDAP on Ubuntu

Info

If using SVN in an environment that leverages LDAP for authentication then it may be benficial to integrate SVN authentication with LDAP. This can be accomplished via a few Apache modules. This article will walk you through the basic steps of configuring Apache/SVN/LDAP on Ubuntu.

Install the Pre-requisites pieces

  • Run the following commands in ubuntuapache_ubuntu_svn_ldap

sudo apt-get update

sudo apt-get install apache2

sudo a2enmod ldap

sudo a2enmod authnz_ldap

sudo service apache2 restart

sudo apt-get install subversion

sudo apt-get install libapache2-svn

Read More

Create an SMB/CIFS share on Ubuntu

file-sharing-folderSteps

  • Install samba

sudo apt-get update
sudo apt-get install samba

  • Set the samba password for the user account that will be used with the share

sudo smbpasswd -a userName

  • Keep in mind that the user must already exist or a Failed to add entry for user error message will be thrown.
  • Create a directory to mount the share

mkdir /mnt/smbShare

  • Add the share config to the bottom smb.conf file

sudo nano /etc/samba/smb.conf

[shareName]
path = /mnt/smbShare
available = yes
valid users = userName
read only = no
browseable = yes
public = yes
writeable = yes

  • Restart SMB

sudo service smbd restart

  • Test accessing the new share.
    • If accessing from a Windows box then the username needs be pre-fixed with the name of the server hosting the SMB share
      • i.e. UserName admin should be UbuntuServer\admin