lmConf-1.json 2.18 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
{
  "authentication": "Demo",
  "cfgAuthor": "The LemonLDAP::NG team",
  "cfgAuthorIP": "127.0.0.1",
  "cfgDate": 1428138808,
  "cfgLog": "Handler test conf",
  "cfgNum": "1",
  "cookieName": "lemonldap",
  "demoExportedVars": {
    "cn": "cn",
    "mail": "mail",
    "uid": "uid"
  },
  "domain": "example.com",
  "exportedHeaders": {
    "test1.example.com": {
      "Auth-User": "$uid"
    },
    "test2.example.com": {
      "Auth-User": "$uid"
21 22 23
    },
    "*.example.org": {
      "Auth-User": "$uid"
24 25 26 27 28 29
    }
  },
  "exportedVars": {
  },
  "globalStorage": "Apache::Session::File",
  "globalStorageOptions": {
Xavier Guimard's avatar
Xavier Guimard committed
30 31
    "Directory": "t/sessions",
    "LockDirectory": "t/sessions/lock",
32 33 34 35 36 37 38 39 40 41 42 43
    "generateModule": "Lemonldap::NG::Common::Apache::Session::Generate::SHA256"
  },
  "groups": {},
  "key": "qwertyui",
  "locationRules": {
    "manager.example.com": {
      "(?#Configuration)^/(manager\\.html|conf/)": "$uid eq \"dwho\"",
      "(?#Notifications)^/notifications": "$uid eq \"dwho\" or $uid eq \"rtyler\"",
      "(?#Sessions)^/sessions": "$uid eq \"dwho\" or $uid eq \"rtyler\"",
      "default": "$uid eq \"dwho\""
    },
    "test1.example.com": {
44 45
      "^/AuthStrong(?#AuthnLevel=5)": "accept",
      "^/AuthWeak(?#AuthnLevel=1)": "accept",
46 47
      "^/test-uri1": "varIsInUri($ENV{REQUEST_URI}, '/test-uri1/', $uid, 1)",
      "^/test-uri2": "varIsInUri($ENV{REQUEST_URI}, '/test-uri2/', $uid)",
Christophe Maudoux's avatar
Christophe Maudoux committed
48
      "^/test-restricted_uri": "varIsInUri($ENV{REQUEST_URI}, '/test-restricted_uri/', \"$uid/\", 1)",
Xavier Guimard's avatar
Xavier Guimard committed
49
      "^/skipif": "$ENV{REQUEST_URI} =~ /zz/ ? skip : 1",
50
      "^/logout": "logout_sso",
Xavier Guimard's avatar
Xavier Guimard committed
51
      "^/deny": "deny",
52
      "^/user_(\\w+)/": "$uid eq $_rulematch[1]",
53 54 55
      "default": "accept"
    },
    "test2.example.com": {
56
      "^/AuthWeak(?#AuthnLevel=1)": "accept",
57 58
      "^/logout": "logout_sso",
      "default": "accept"
59 60 61 62
    },
    "*.example.org": {
      "^/orgdeny": "deny",
      "default": "accept"
63 64 65 66 67 68 69 70
    }
  },
  "macros": {
    "_whatToTrace": "$_auth eq 'SAML' ? \"$_user\\@$_idpConfKey\" : \"$_user\""
  },
  "portal": "http://auth.example.com/",
  "reloadUrls": {},
  "userDB": "Demo",
71 72 73 74 75
  "vhostOptions": {
    "test2.example.com": {
        "vhostAuthnLevel": 5
      }
  },
76 77
  "whatToTrace": "_whatToTrace"
}