This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tech:ldap:start [2018/06/08 14:18] admin |
tech:ldap:start [2019/06/08 13:09] (current) rk4n3 |
||
---|---|---|---|
Line 1: | Line 1: | ||
<typo fs:xx-large; fw:bold>LDAP Topics</typo> | <typo fs:xx-large; fw:bold>LDAP Topics</typo> | ||
====== Installation & Configuration ====== | ====== Installation & Configuration ====== | ||
+ | |||
+ | ==== Reset OpenLDAP root password ==== | ||
+ | <code>slappasswd -h "{SHA}" | ||
+ | vim '/etc/openldap/slapd.d/cn=config/olcDatabase={1}bdb.ldif'</code> | ||
==== LDAP PHP Module ==== | ==== LDAP PHP Module ==== | ||
Line 13: | 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> | ||