lmConf-1.json 6.1 KB
Newer Older
1
{
2
  "https": 0,
3 4 5 6 7 8 9 10 11
  "applicationList": {
    "0001-cat": {
      "catname": "Sample applications",
      "0002-app": {
        "options": {
          "description": "A simple application displaying authenticated user",
          "display": "auto",
          "logo": "demo.png",
          "name": "Application Test 1",
Xavier Guimard's avatar
Xavier Guimard committed
12
          "uri": "http://test1.example.com:__port__/"
13 14 15 16 17 18 19 20 21
        },
        "type": "application"
      },
      "0003-app": {
        "options": {
          "description": "The same simple application displaying authenticated user",
          "display": "auto",
          "logo": "thumbnail.png",
          "name": "Application Test 2",
Xavier Guimard's avatar
Xavier Guimard committed
22
          "uri": "http://test2.example.com:__port__/"
23 24 25 26 27 28 29 30 31 32 33 34 35
        },
        "type": "application"
      },
      "type": "category"
    },
    "0004-cat": {
      "catname": "Administration",
      "0005-app": {
        "options": {
          "description": "Configure LemonLDAP::NG WebSSO",
          "display": "auto",
          "logo": "configure.png",
          "name": "WebSSO Manager",
Xavier Guimard's avatar
Xavier Guimard committed
36
          "uri": "http://manager.example.com:__port__/manager.html"
37 38 39 40 41 42 43 44 45
        },
        "type": "application"
      },
      "0006-app": {
        "options": {
          "description": "Explore WebSSO notifications",
          "display": "auto",
          "logo": "database.png",
          "name": "Notifications explorer",
Xavier Guimard's avatar
Xavier Guimard committed
46
          "uri": "http://manager.example.com:__port__/notifications.html"
47 48 49 50 51 52 53 54 55
        },
        "type": "application"
      },
      "0007-app": {
        "options": {
          "description": "Explore WebSSO sessions",
          "display": "auto",
          "logo": "database.png",
          "name": "Sessions explorer",
Xavier Guimard's avatar
Xavier Guimard committed
56
          "uri": "http://manager.example.com:__port__/sessions.html"
57 58 59 60 61 62 63 64 65 66 67 68 69
        },
        "type": "application"
      },
      "type": "category"
    },
    "0008-cat": {
      "catname": "Documentation",
      "0009-app": {
        "options": {
          "description": "Documentation supplied with LemonLDAP::NG",
          "display": "on",
          "logo": "help.png",
          "name": "Local documentation",
Xavier Guimard's avatar
Xavier Guimard committed
70
          "uri": "http://manager.example.com:__port__/doc/"
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
        },
        "type": "application"
      },
      "0010-app": {
        "options": {
          "description": "Official LemonLDAP::NG Website",
          "display": "on",
          "logo": "network.png",
          "name": "Offical Website",
          "uri": "http://lemonldap-ng.org/"
        },
        "type": "application"
      },
      "type": "category"
    }
  },
  "authentication": "Demo",
  "cfgAuthor": "The LemonLDAP::NG team",
  "cfgAuthorIP": "127.0.0.1",
  "cfgDate": 1428138808,
  "cfgLog": "Default configuration provided by LemonLDAP::NG team",
  "cfgNum": "1",
93
  "cfgVersion": "2.0.0",
94
  "cookieName": "lemonldap",
95
  "customFunctions": "My::hello My::get_additional_arg",
96 97 98 99 100 101 102 103
  "demoExportedVars": {
    "cn": "cn",
    "mail": "mail",
    "uid": "uid"
  },
  "domain": "example.com",
  "exportedHeaders": {
    "test1.example.com": {
104
      "Auth-User": "$uid",
105 106
      "Ip-Addr": "$ipAddr",
      "Hello": "hello()",
107
      "Uri": "$ENV{REQUEST_URI}",
108
      "Macro-Uri": "$UA",
109 110
      "Additional-Arg": "get_additional_arg('header-added')",
      "Base64": "encode_base64('a:b','')"
111 112 113 114 115 116 117 118 119
    },
    "test2.example.com": {
      "Auth-User": "$uid"
    }
  },
  "exportedVars": {
  },
  "globalStorage": "Apache::Session::File",
  "globalStorageOptions": {
120 121
    "Directory": "__pwd__/e2e-tests/conf/sessions",
    "LockDirectory": "__pwd__/e2e-tests/conf/sessions/lock",
122 123 124 125
    "generateModule": "Lemonldap::NG::Common::Apache::Session::Generate::SHA256"
  },
  "groups": {},
  "key": "qwertyui",
126 127 128 129 130 131 132
  "localSessionStorageOptions": {
    "cache_depth": 3,
    "cache_root": "__pwd__/e2e-tests/conf",
    "default_expires_in": 600,
    "directory_umask": "007",
    "namespace": "lemonldap-ng-sessions"
  },
133 134
  "locationRules": {
    "manager.example.com": {
135 136 137
      "(?#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\"",
138
      "default": "$uid eq \"dwho\" or $uid eq \"rtyler\""
139 140 141
    },
    "test1.example.com": {
      "^/logout": "logout_sso",
Xavier Guimard's avatar
Xavier Guimard committed
142 143
      "^/index.pl\\?logout_app$": "logout_app http://test1.example.com:__port__/index.pl?foo=1",
      "^/index.pl\\?logout_all$": "logout_app_sso http://lemonldap-ng.org/welcome/",
144
      "^/saml": "unprotect",
145 146 147 148 149 150 151 152 153
      "default": "accept"
    },
    "test2.example.com": {
      "^/logout": "logout_sso",
      "default": "accept"
    }
  },
  "loginHistoryEnabled": 1,
  "macros": {
154
      "UA" : "$ENV{HTTP_USER_AGENT}",
Xavier Guimard's avatar
Xavier Guimard committed
155
    "_whatToTrace": "$_auth eq 'SAML' ? \"$_user\\@$_idpConfKey\" : $_auth eq 'OpenIDConnect' ? \"$_user\\@$_oidcConnectedRP\" : \"$_user\""
156
  },
157
  "mailUrl": "http://auth.example.com:__port__/resetpwd",
Xavier Guimard's avatar
Xavier Guimard committed
158
  "notification": 0,
159 160 161 162 163 164 165
  "notificationStorage": "File",
  "notificationStorageOptions": {
    "dirName": "__pwd__/e2e-tests/conf"
  },
  "passwordDB": "Demo",
  "persistentStorage": "Apache::Session::File",
  "persistentStorageOptions": {
166 167
    "Directory": "__pwd__/e2e-tests/conf/persistents",
    "LockDirectory": "__pwd__/e2e-tests/conf/persistents/lock",
168 169
    "generateModule": "Lemonldap::NG::Common::Apache::Session::Generate::SHA256"
  },
170
  "portal": "http://auth.example.com:__port__/",
171 172
  "portalSkin": "bootstrap",
  "portalSkinBackground": "1280px-Cedar_Breaks_National_Monument_partially.jpg",
173 174 175 176 177 178 179 180 181
  "post": {
    "test2.example.com": {},
    "manager.example.com": {},
    "test1.example.com": {
      "/form.html": {
        "vars": [
          ["postuid", "$_user"],
          ["postmail", "'x@x.org'"],
          ["poststatic", "'static content'"]],
182
        "jqueryUrl": "http://manager.example.com:__port__/static/bwr/jquery/dist/jquery.js",
183 184 185 186 187 188
        "buttonSelector": "#bt",
        "formSelector": "#test",
        "target": "/index.pl"
      }
    }
  },
189 190
  "registerDB": "Demo",
  "registerUrl": "http://auth.example.com:__port__/register",
191
  "reloadUrls": {"localhost":"http://reload.example.com:__port__/reload"},
192 193 194
  "securedCookie": 0,
  "sessionDataToRemember": {},
  "timeout": 72000,
195
  "userDB": "Same",
196
  "whatToTrace": "_whatToTrace"
Xavier Guimard's avatar
Xavier Guimard committed
197
}