{"id":3214,"date":"2012-05-27T20:52:11","date_gmt":"2012-05-27T12:52:11","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3214"},"modified":"2023-04-28T09:49:16","modified_gmt":"2023-04-28T09:49:16","slug":"how-to-enable-ldap-authentication-for-subversion-on-centos-6-2","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-enable-ldap-authentication-for-subversion-on-centos-6-2\/","title":{"rendered":"How to Enable LDAP Authentication for Subversion on CentOS 6.2"},"content":{"rendered":"<p>This post will show the quick steps to enable LDAP authentication for existing subversion on linux CentOS 6.2. This guideline assumed that your existing subversion server has been configured properly and working with htpasswd user. This guideline also assumed that 389 LDAP has been installed but not yet configure in your subversion configuration file.<\/p>\n<p>Prerequisites :<br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-httpd-on-centos-6-2\/\">How to Install Httpd on CentOS 6.2<\/a><br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-and-configure-subversion-1-6-on-centos-6-2\/\">How to Install and Configure Subversion 1.6 on CentOS 6.2<\/a><br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-389-directory-server-on-centos-6-2\/\">How to Install 389 Directory Server on CentOS 6.2<\/a><\/p>\n<p>Steps:<\/p>\n<p>1. Append \/etc\/hosts for ldap server fqdn. If your ldap server has been registered on DNS server, you can skip this step.<\/p>\n<pre>\n[root@svn ~]# vi \/etc\/hosts\n<\/pre>\n<pre>\n127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4\n::1         localhost localhost.localdomain localhost6 localhost6.localdomain6\n\n192.168.1.44 svn.ehowstuff.local svn\n192.168.1.48 ldap.ehowstuff.local ldap\n<\/pre>\n<p>2. Locate and open subversion.conf using vi editor<\/p>\n<pre>\n[root@svn ~]# vi \/etc\/httpd\/conf.d\/subversion.conf\n<\/pre>\n<p>3. Modify the existing subversion.conf to below :<\/p>\n<pre>\nLoadModule dav_svn_module     modules\/mod_dav_svn.so\nLoadModule authz_svn_module   modules\/mod_authz_svn.so\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.ehowstuff.local:389\/DC=ehowstuff,DC=local?uid?sub?(objectClass=*)&quot; NONE\n        AuthzSVNAccessFile \/svn\/permissions\/svnaccess\n        Require valid-user\n&lt;\/Location&gt;\n<\/pre>\n<p>4. Restart httpd service :<\/p>\n<pre>\n[root@svn ~]# service httpd restart\nStopping httpd:                                            [  OK  ]\nStarting httpd:                                            [  OK  ]\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This post will show the quick steps to enable LDAP authentication for existing subversion on linux CentOS 6.2. This guideline assumed that your existing subversion server has been configured properly&#8230;<\/p>\n","protected":false},"author":6,"featured_media":2280,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1060],"tags":[1244,1536,1546,1811],"class_list":["post-3214","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-subversion","tag-centos","tag-linux","tag-linux-utilities","tag-subversion"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3214","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=3214"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3214\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/2280"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}