Mailman

管理画面のSSL化

参考URL

  1. ssl.patchをダウンロード(上記のURLから)
  2. ssl.patchを/tmp/に移動
  3. パッチを充てる
    #patch < /tmp/ssl.patch
    とするとどこのファイルに充てますか?と聞かれるので
  4. /usr/lib/mailman/Mailman/Utils.pyに充てますと宣言
    amori@chaco:/tmp$ sudo patch < /tmp/ssl.patch
    can't find file to patch at input line 3
    Perhaps you should have used the -p or --strip option?
    The text leading up to this was:
    --------------------------
    |--- Utils.py.org       Thu May 22 13:25:20 2003
    |+++ Utils.py   Sat May 24 05:21:43 2003
    --------------------------
    File to patch: /usr/lib/mailman/Mailman/Utils.py
    patching file /usr/lib/mailman/Mailman/Utils.py
    Hunk #1 succeeded at 39 (offset 2 lines).
    Hunk #2 succeeded at 243 (offset 15 lines).x

クッキーに属性を付ける

/usr/lib/mailman/Mailman/SecurityManager?.pyをemacsなどで編集する

       c[key]['version'] = 1
       ##add by amori
       if ((0 != mm_cfg.DEFAULT_ADMIN_USE_SSL) and
        (authcontext > mm_cfg.AuthUser)):
       c[key]['secure'] = None
       ############
       return c

Last-modified: 2012-03-12 (月) 17:05:18 (166d)