Guest User

Untitled

a guest
Jun 19th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. --- clogin 2011-11-30 22:41:10.000000000 +0000
  2. +++ newclogin 2012-02-08 10:04:39.000000000 +0000
  3. @@ -311,9 +311,15 @@
  4. send_user "\nError: $password_file must not be world readable/writable\n"
  5. exit 1
  6. }
  7. - if [ catch {source $password_file} reason ] {
  8. - send_user "\nError: $reason\n"
  9. - exit 1
  10. + if { [info exists env(CLOGIN_KEY)] } {
  11. + set clogin_fd [open "|openssl enc -d -aes-256-cbc -pass pass:$env(CLOGIN_KEY) -in $password_file"]
  12. + if [ catch {eval [read $clogin_fd]} reason ] {
  13. + send_user "\nError: $reason\n"
  14. + exit 1
  15. + }
  16. + } else {
  17. + send_user "\nError: CLOGIN_KEY environment variable not declared\n"
  18. + exit 1
  19. }
  20. }
Add Comment
Please, Sign In to add comment