lemonldap-ng/e2e-tests/lmConf-1.json

224 lines
6.8 KiB
JSON

{
"https": 0,
"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",
"uri": "http://test1.example.com:__port__/"
},
"type": "application"
},
"0003-app": {
"options": {
"description": "The same simple application displaying authenticated user",
"display": "auto",
"logo": "thumbnail.png",
"name": "Application Test 2",
"uri": "http://test2.example.com:__port__/"
},
"type": "application"
},
"type": "category"
},
"0004-cat": {
"catname": "Administration",
"0005-app": {
"options": {
"description": "Configure LemonLDAP::NG WebSSO",
"display": "auto",
"logo": "configure.png",
"name": "WebSSO Manager",
"uri": "http://manager.example.com:__port__/manager.html"
},
"type": "application"
},
"0006-app": {
"options": {
"description": "Explore WebSSO notifications",
"display": "auto",
"logo": "database.png",
"name": "Notifications explorer",
"uri": "http://manager.example.com:__port__/notifications.html"
},
"type": "application"
},
"0007-app": {
"options": {
"description": "Explore WebSSO sessions",
"display": "auto",
"logo": "database.png",
"name": "Sessions explorer",
"uri": "http://manager.example.com:__port__/sessions.html"
},
"type": "application"
},
"0008-app": {
"options": {
"description": "Explore WebSSO 2FA sessions",
"display": "auto",
"logo": "database.png",
"name": "2FA Sessions explorer",
"uri": "http://manager.example.com:__port__/2ndfa.html"
},
"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",
"uri": "http://manager.example.com:__port__/doc/"
},
"type": "application"
},
"0010-app": {
"options": {
"description": "Official LemonLDAP::NG Website",
"display": "on",
"logo": "network.png",
"name": "Official 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",
"cfgVersion": "2.0.0",
"cookieName": "lemonldap",
"customFunctions": "My::hello My::get_additional_arg",
"demoExportedVars": {
"cn": "cn",
"mail": "mail",
"uid": "uid"
},
"domain": "example.com",
"exportedHeaders": {
"test1.example.com": {
"Auth-User": "$uid",
"Ip-Addr": "$ipAddr",
"Hello": "hello()",
"Uri": "$ENV{REQUEST_URI}",
"Macro-Uri": "$UA",
"Additional-Arg": "get_additional_arg('header-added')",
"Base64": "encode_base64('a:b','')"
},
"test2.example.com": {
"Auth-User": "$uid"
}
},
"exportedVars": {
},
"globalStorage": "Apache::Session::File",
"globalStorageOptions": {
"Directory": "__pwd__/e2e-tests/conf/sessions",
"LockDirectory": "__pwd__/e2e-tests/conf/sessions/lock",
"generateModule": "Lemonldap::NG::Common::Apache::Session::Generate::SHA256"
},
"groups": {},
"key": "qwertyui",
"localSessionStorageOptions": {
"cache_depth": 3,
"cache_root": "__pwd__/e2e-tests/conf",
"default_expires_in": 600,
"directory_umask": "007",
"namespace": "lemonldap-ng-sessions"
},
"locationRules": {
"auth.example.com" : {
"(?#checkUser)^/checkuser": "$uid eq \"dwho\"",
"(?#checkDevOps)^/checkdevops": "$uid eq \"dwho\"",
"(?#errors)^/lmerror/": "accept",
"default" : "accept"
},
"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\" or $uid eq \"rtyler\""
},
"test1.example.com": {
"^/logout": "logout_sso",
"^/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/",
"^/saml": "unprotect",
"default": "accept"
},
"test2.example.com": {
"^/logout": "logout_sso",
"default": "accept"
}
},
"vhostOptions":{
"manager.example.com": {
"vhostMaintenance": 0,
"vhostPort": -1,
"vhostHttps": -1,
"vhostAliases": "",
"vhostServiceTokenTTL": -1,
"vhostAccessToTrace": "My::accessToTrace, Doctor, Who, _whatToTrace","vhostType":"Main"
}
},
"loginHistoryEnabled": 1,
"macros": {
"UA" : "$ENV{HTTP_USER_AGENT}",
"_whatToTrace": "$_auth eq 'SAML' ? \"$_user\\@$_idpConfKey\" : $_auth eq 'OpenIDConnect' ? \"$_user\\@$_oidc_OP\" : \"$_user\""
},
"mailUrl": "http://auth.example.com:__port__/resetpwd",
"notification": 1,
"notificationStorage": "File",
"notificationStorageOptions": {
"dirName": "__pwd__/e2e-tests/conf"
},
"passwordDB": "Demo",
"persistentStorage": "Apache::Session::File",
"persistentStorageOptions": {
"Directory": "__pwd__/e2e-tests/conf/persistents",
"LockDirectory": "__pwd__/e2e-tests/conf/persistents/lock",
"generateModule": "Lemonldap::NG::Common::Apache::Session::Generate::SHA256"
},
"portal": "http://auth.example.com:__port__/",
"portalSkin": "bootstrap",
"portalSkinBackground": "1280px-Cedar_Breaks_National_Monument_partially.jpg",
"post": {
"test2.example.com": {},
"manager.example.com": {},
"test1.example.com": {
"/form.html": {
"vars": [
["postuid", "$_user"],
["postmail", "'x@x.org'"],
["poststatic", "'static content'"]],
"jqueryUrl": "http://manager.example.com:__port__/static/bwr/jquery/dist/jquery.js",
"buttonSelector": "#bt",
"formSelector": "#test",
"target": "/index.pl"
}
}
},
"registerDB": "Demo",
"registerUrl": "http://auth.example.com:__port__/register",
"securedCookie": 0,
"sessionDataToRemember": {},
"timeout": 72000,
"userDB": "Same",
"whatToTrace": "_whatToTrace",
"customToTrace": "mail"
}