This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tech:ldap:start [2018/09/08 19:17] rk4n3 |
tech:ldap:start [2019/06/08 13:09] (current) rk4n3 |
||
---|---|---|---|
Line 17: | Line 17: | ||
_ldap._tcp.dc._msdcs.MS | _ldap._tcp.dc._msdcs.MS | ||
</code> | </code> | ||
+ | |||
+ | ==== Apache 2.4 Auth via LDAP ==== | ||
+ | <code> | ||
+ | # Git-smart HTTP/HTTPS back-end | ||
+ | SetEnv GIT_PROJECT_ROOT /home/www/git | ||
+ | SetEnv GIT_HTTP_EXPORT_ALL | ||
+ | ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/ | ||
+ | |||
+ | <Directory "/usr/libexec/git-core"> | ||
+ | Options +ExecCGI | ||
+ | Order deny,allow | ||
+ | AuthType Basic | ||
+ | AuthName "Private Git Access" | ||
+ | AuthBasicProvider ldap | ||
+ | AuthLDAPURL "ldap://cosmos.samudio.net/dc=samudio,dc=net?uid?sub?" | ||
+ | AuthName "GIT -- Bluejay" | ||
+ | # AuthUserFile /home/www/git/.htpasswd | ||
+ | Require valid-user | ||
+ | </Directory> | ||
+ | </code> | ||
+ | |||
+ | === AuthLDAPURL for Active Directory === | ||
+ | <code>AuthLDAPURL "ldap://ad-ldap-prod.uhc.com:389/dc=ms,dc=ds,dc=uhc,dc=com?sAMAccountName?sub?(objectCategory=person)(objectClass=user)"</code> | ||