I have done all this, and much more, by way of SVN/GIT, authentication via LDAP/SSH/OS-User-Accounts, authorization at various levels, and Audit of these actions.
My biggest lessons learned, especially when doing such work for corporate clients, are that while open source software is free, the client's time is not. Second, while people may get some measure of success from online tutorials, they may not conform to their organization's security policies and security needs.
Looking at your regular questions on such topics (Jira, SVN, LDAP integration, etc), I see that you are working in a corporate environment with several thousands of users. I recommend that you call in a specialist who can listen to your requirements, ask you some more questions, and finally can provide you with a solution that would delight your users. Along the way, you'd learn a lot as well.
That would be far less expensive than the time you'd otherwise invest in asking questions and arriving at solutions limited by your present skill-set and exposure.
-- Ram