Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. <Location />
  2. AuthType Kerberos
  3. KrbAuthRealms xyz
  4. KrbServiceName HTTP/xyz
  5. Krb5Keytab /usr/local/apache2/conf/conf.d/drdc.keytab
  6. KrbMethodNegotiate on
  7. KrbMethodK5Passwd off
  8. KrbSaveCredentials on
  9. require valid-user
  10. </Location>
  11.  
  12. if ($event->getRequest()->getRequestUri() != '/user/login' && $this->currentUser->isAnonymous()) {
  13. if (preg_match('//comment-([d]+)/', $current_path)) {
  14. $destination = str_replace('/comment-', '#comment-', $current_path);
  15. user_cookie_save(['destination' => $destination]);
  16. }
  17. $url = '/user/login/sso';
  18. $response = new RedirectResponse($url);
  19. $event->setResponse($response);
  20. return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement