Last active
October 18, 2019 19:40
Revisions
-
Bigous revised this gist
Feb 20, 2017 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,6 +34,9 @@ svnadmin create /var/svn/repos/teste echo "[groups]" > /var/svn/conf/svnaccessfile echo "admin =" >> /var/svn/conf/svnaccessfile echo "" >> /var/svn/conf/svnaccessfile echo "[/]" >> /var/svn/conf/svnaccessfile echo "* = r" >> /var/svn/conf/svnaccessfile echo "" >> /var/svn/conf/svnaccessfile echo "[teste:/]" >> /var/svn/conf/svnaccessfile echo "* = r" >> /var/svn/conf/svnaccessfile echo "your.user = rw" >> /var/svn/conf/svnaccessfile -
Bigous revised this gist
Feb 20, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ echo " DAV svn" >> /var/svn/config/subversion.conf echo " SVNParentPath /var/svn/repos" >> /var/svn/config/subversion.conf echo " SVNListParentPath on" >> /var/svn/config/subversion.conf echo " AuthzSVNAccessFile /var/svn/config/svnaccessfile" >> /var/svn/config/subversion.conf echo " #SSLRequireSSL" >> /var/svn/config/subversion.conf echo " AuthBasicProvider ldap" >> /var/svn/config/subversion.conf echo " AuthType Basic" >> /var/svn/config/subversion.conf echo " AuthName \"My Subversion server\"" >> /var/svn/config/subversion.conf @@ -31,7 +31,7 @@ ln -s /var/svn/config/subversion.conf /etc/httpd/conf.d/ svnadmin create /var/svn/repos/teste echo "[groups]" > /var/svn/conf/svnaccessfile echo "admin =" >> /var/svn/conf/svnaccessfile echo "" >> /var/svn/conf/svnaccessfile echo "[teste:/]" >> /var/svn/conf/svnaccessfile -
Bigous revised this gist
Feb 20, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,9 +22,9 @@ echo " SSLRequireSSL" >> /var/svn/config/subversion.conf echo " AuthBasicProvider ldap" >> /var/svn/config/subversion.conf echo " AuthType Basic" >> /var/svn/config/subversion.conf echo " AuthName \"My Subversion server\"" >> /var/svn/config/subversion.conf echo " AuthLDAPURL \"ldap://YourLDAPServer:YourLDAPPort/DC=Your,DC=com,DC=br?sAMAccountName?sub?(objectClass=*)\" NONE" >> /var/svn/config/subversion.conf echo " AuthLDAPBindDN \"your.user@your.com.br\"" >> /var/svn/config/subversion.conf echo " AuthLDAPBindPassword \"password\"" >> /var/svn/config/subversion.conf echo " require ldap-attribute objectClass=user" >> /var/svn/config/subversion.conf echo \</Location\> >> /var/svn/config/subversion.conf ln -s /var/svn/config/subversion.conf /etc/httpd/conf.d/ -
Bigous revised this gist
Feb 20, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -36,7 +36,7 @@ echo "admin =" >> /var/svn/conf/svnaccessfile echo "" >> /var/svn/conf/svnaccessfile echo "[teste:/]" >> /var/svn/conf/svnaccessfile echo "* = r" >> /var/svn/conf/svnaccessfile echo "your.user = rw" >> /var/svn/conf/svnaccessfile chown -R apache.apache /var/svn -
Bigous revised this gist
Feb 20, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,9 +11,9 @@ yum -y install subversion mod_dav_svn mkdir -p /var/svn/repos mkdir -p /var/svn/config echo "Alias /svn /var/svn/repos" > /var/svn/config/subversion.conf echo "RedirectMatch ^(/svn)$ $1/" >> /var/svn/config/subversion.conf echo \<Location /svn\> >> /var/svn/config/subversion.conf echo " DAV svn" >> /var/svn/config/subversion.conf echo " SVNParentPath /var/svn/repos" >> /var/svn/config/subversion.conf echo " SVNListParentPath on" >> /var/svn/config/subversion.conf -
Bigous revised this gist
Feb 20, 2017 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,18 +11,20 @@ yum -y install subversion mod_dav_svn mkdir -p /var/svn/repos mkdir -p /var/svn/config echo "Alias /svn /var/svn/repos" echo "RedirectMatch ^(/svn)$ $1/" echo \<Location /svn\> > /var/svn/config/subversion.conf echo " DAV svn" >> /var/svn/config/subversion.conf echo " SVNParentPath /var/svn/repos" >> /var/svn/config/subversion.conf echo " SVNListParentPath on" >> /var/svn/config/subversion.conf echo " AuthzSVNAccessFile /var/svn/config/svnaccessfile" >> /var/svn/config/subversion.conf echo " SSLRequireSSL" >> /var/svn/config/subversion.conf echo " AuthBasicProvider ldap" >> /var/svn/config/subversion.conf echo " AuthType Basic" >> /var/svn/config/subversion.conf echo " AuthName \"My Subversion server\"" >> /var/svn/config/subversion.conf echo " AuthLDAPURL \"ldap://sondait.com.br/DC=sondait,DC=com,DC=br?sAMAccountName?sub?(objectClass=*)\" NONE" >> /var/svn/config/subversion.conf echo " AuthLDAPBindDN \"richard.natal@sondait.com.br\"" >> /var/svn/config/subversion.conf echo " AuthLDAPBindPassword \"2017-01_Sonda\"" >> /var/svn/config/subversion.conf echo " require ldap-attribute objectClass=user" >> /var/svn/config/subversion.conf echo \</Location\> >> /var/svn/config/subversion.conf ln -s /var/svn/config/subversion.conf /etc/httpd/conf.d/ -
Bigous created this gist
Feb 20, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ #!/bin/bash yum -y update yum -y install httpd mod_ldap mod_authnz_external mod_ssl openssl sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/sysconfig/selinux setenforce 0 systemctl stop firewalld systemctl disable firewalld chkconfig httpd on systemctl start httpd yum -y install subversion mod_dav_svn mkdir -p /var/svn/repos mkdir -p /var/svn/config echo \<Location /svn\> > /var/svn/config/subversion.conf echo " DAV svn" >> /var/svn/config/subversion.conf echo " SVNParentPath /var/svn/repos" >> /var/svn/config/subversion.conf echo " SVNListParentPath on" >> /var/svn/config/subversion.conf echo " AuthzSVNAccessFile /var/svn/config/svnaccessfile" >> /var/svn/config/subversion.conf echo " #SSLRequireSSL" >> /var/svn/config/subversion.conf echo " AuthBasicProvider ldap" >> /var/svn/config/subversion.conf echo " AuthType Basic" >> /var/svn/config/subversion.conf echo " AuthName \"My Subversion server\"" >> /var/svn/config/subversion.conf echo " AuthLDAPURL \"ldap://YourServer:YourPort/DC=YourServer,DC=br,DC=br?sAMAccountName?sub?(objectClass=*)\" NONE" >> /var/svn/config/subversion.conf echo " AuthLDAPBindDN \"ValidUser@DCDomain\"" >> /var/svn/config/subversion.conf echo " AuthLDAPBindPassword \"UserPassword\"" >> /var/svn/config/subversion.conf echo " require ldap-attribute objectClass=user" >> /var/svn/config/subversion.conf echo \</Location\> >> /var/svn/config/subversion.conf ln -s /var/svn/config/subversion.conf /etc/httpd/conf.d/ svnadmin create /var/svn/repos/teste echo "[groups]" >> /var/svn/conf/svnaccessfile echo "admin =" >> /var/svn/conf/svnaccessfile echo "" >> /var/svn/conf/svnaccessfile echo "[teste:/]" >> /var/svn/conf/svnaccessfile echo "* = r" >> /var/svn/conf/svnaccessfile echo "richard.natal = rw" >> /var/svn/conf/svnaccessfile chown -R apache.apache /var/svn service httpd restart