{"id":788,"date":"2011-04-06T23:03:18","date_gmt":"2011-04-06T15:03:18","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=788"},"modified":"2023-04-28T09:50:32","modified_gmt":"2023-04-28T09:50:32","slug":"how-to-configure-ldap-authentication-for-subversion-on-centos-5-5","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-configure-ldap-authentication-for-subversion-on-centos-5-5\/","title":{"rendered":"How to Configure LDAP Authentication for Subversion on CentOS 5.5"},"content":{"rendered":"<p>In this post, i will show you on how to configure your existing subversion with LDAP authentication. This guideline assume that you are already configure the Apache and subversion with htpasswd user. 389 LDAP has been installed but not yet configure in your subversion configuration file.<\/p>\n<p>Prerequisite :<br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-apache-httpd-web-server-on-linux\/\" target=\"_blank\" rel=\"noopener\">a)How to Install Apache Httpd Web Server on Linux<\/a><br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-subversion-1-6-16-on-centos-5-5-server\/\" target=\"_blank\" rel=\"noopener\">b)How to Install Subversion 1.6.16 on CentOS 5.5 Server<\/a><br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-389-directory-server-on-centosrhel\/\" target=\"_blank\" rel=\"noopener\">c)How to Install 389 Directory Server on CentOS\/RHEL<\/a><\/p>\n<p><strong>Steps:<\/strong><br \/>\n1. Locate and open subversion.conf using vi editor<\/p>\n<ol>\n<pre class=\"code\">\n[root@server ~]# vi \/etc\/httpd\/conf.d\/subversion.conf\n<\/pre>\n<\/ol>\n<p>2. Modify the existing subversion.conf to below:<\/p>\n<ol>\n<pre class=\"code\">\n# Needed to do Subversion Apache server.\nLoadModule dav_svn_module     modules\/mod_dav_svn.so\n\n# Only needed if you decide to do &quot;per-directory&quot; access control.\nLoadModule authz_svn_module   modules\/mod_authz_svn.so\n\n#\n# Example location directive.\n#\n\n&lt;Location \/svn\/repos&gt;\n        DAV svn\n        SVNParentPath \/svn\/repos\n        AuthBasicProvider ldap\n        AuthType Basic\n        AuthzLDAPAuthoritative on\n        AuthName &quot;My Subversion server&quot;\n        AuthLDAPURL &quot;ldap:\/\/ldap.intranet.local:389\/DC=intranet,DC=local?uid?sub?(objectClass=*)&quot; NONE\n        AuthzSVNAccessFile \/svn\/permissions\/svnaccess\n        Require valid-user\n&lt;\/Location&gt;\n<\/pre>\n<\/ol>\n<p>3. Save configuration file and restart the apache server.<\/p>\n<ol>\n<pre class=\"code\">\n[root@server ~]# service httpd restart\nStopping httpd:                                            [  OK  ]\nStarting httpd:                                            [  OK  ]\n<\/pre>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>In this post, i will show you on how to configure your existing subversion with LDAP authentication. This guideline assume that you are already configure the Apache and subversion with&#8230;<\/p>\n","protected":false},"author":6,"featured_media":349,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1102,1060],"tags":[1536,1811],"class_list":["post-788","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-389-directory-server","category-subversion","tag-linux","tag-subversion"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=788"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/788\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/349"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}