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