Guest User

Untitled

a guest
Mar 20th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName test.dd-dns.de
  3. DocumentRoot /var/www/vhosts/test.dd-dns.de
  4. </VirtualHost>
  5.  
  6. <Directory /var/www/vhosts/test.dd-dns.de/>
  7. AllowOverride None
  8. Options None
  9. DirectoryIndex start.html
  10.  
  11. Include conf-available/ldap-auth.conf
  12. AuthName "AD/LDAP Authentification Test"
  13. Require valid-user
  14. </Directory>
  15.  
  16. AuthBasicProvider ldap
  17. AuthType Basic
  18. AuthLDAPGroupAttribute member
  19. AuthLDAPGroupAttributeIsDN On
  20. AuthLDAPURL "ldap://localhost/dc=my,dc=domain,dc=com?sAMAccountName?sub?(objectClass=*)"
  21. AuthLDAPBindPassword "somepassword12345"
  22.  
  23. ldapsearch -x -b "ldap://localhost/dc=my,dc=domain,dc=com?sAMAccountName?sub" -W (objectClass=*) -y "somepassword12345"
Add Comment
Please, Sign In to add comment