| 1 | ;============================================================================== |
| 2 | ; LemonLDAP::NG local configuration parameters |
| 3 | ; |
| 4 | ; This file is dedicated to configuration parameters override |
| 5 | ; You can set here configuration parameters that will be used only by |
| 6 | ; local LemonLDAP::NG elements |
| 7 | ; |
| 8 | ; Section "all" is always read first before "portal", "handler" |
| 9 | ; and "manager" |
| 10 | ; |
| 11 | ; Section "configuration" is used to load global configuration and set cache |
| 12 | ; (replace old storage.conf file) |
| 13 | ; |
| 14 | ; Other section are only read by the specific LemonLDAP::NG component |
| 15 | ;============================================================================== |
| 16 | |
| 17 | [all] |
| 18 | |
| 19 | ; CUSTOM FUNCTION |
| 20 | ; If you want to create customFunctions in rules, declare them here: |
| 21 | ;require = /path/to/custom/file1.pm, /path/to/custom/file2.pm |
| 22 | ; Prevent Portal to crash if Perl module is not found |
| 23 | ;requireDontDie = 1 |
| 24 | ;customFunctions = function1 function2 |
| 25 | ;customFunctions = Package::func1 Package::func2 |
| 26 | |
| 27 | ; CROSS-DOMAIN |
| 28 | ; If you have some handlers that are not registered on the main domain, |
| 29 | ; uncomment this |
| 30 | ;cda = 1 |
| 31 | |
| 32 | ; SAFE JAIL |
| 33 | ; Comment this to configure Safe jail with Manager. |
| 34 | ; It can also be disabled from here by setting value to 0. |
| 35 | ; Warning: this can allow malicious code in custom functions or rules |
| 36 | useSafeJail = 1 |
| 37 | |
| 38 | ; LOGGING |
| 39 | ; |
| 40 | ; 1 - Defined logging level |
| 41 | ; Set here one of error, warn, notice, info or debug |
| 42 | logLevel = notice |
| 43 | ; Note that this has no effect for Apache2 logging: Apache LogLevel is used instead |
| 44 | ; Uncomment this to dump $req and $env variables. Require logLevel = debug |
| 45 | ;logParams = 1 |
| 46 | ; |
| 47 | ; 2 - Change logger |
| 48 | ; |
| 49 | ; By default, logging is set to: |
| 50 | ; - Lemonldap::NG::Common::Logger::Apache2 for ApacheMP2 handlers |
| 51 | ; - Lemonldap::NG::Common::Logger::Syslog for FastCGI (Nginx) |
| 52 | ; - Lemonldap::NG::Common::Logger::Std for PSGI applications (manager, |
| 53 | ; portal,...) when they are not |
| 54 | ; launched by FastCGI server |
| 55 | ; Other loggers availables: |
| 56 | ; - Lemonldap::NG::Common::Logger::Log4perl to use Log4perl |
| 57 | ; |
| 58 | ; "Std" is redirected to the web server logs for Apache. For Nginx, only if |
| 59 | ; request failed |
| 60 | ; |
| 61 | ; You can overload this in this section (for all) or in another section if |
| 62 | ; you want to change logger for a specified app. |
| 63 | ; |
| 64 | ; LLNG uses 2 loggers: 1 for technical logs (logger), 1 for user actions |
| 65 | ; (userLogger). "userLogger" uses the same class as "logger" if not set. |
| 66 | ;logger = Lemonldap::NG::Common::Logger::Syslog |
| 67 | ;userLogger = Lemonldap::NG::Common::Logger::Log4perl |
| 68 | ; |
| 69 | ; 2.1 - Using Syslog |
| 70 | ; |
| 71 | ; For Syslog logging, you can also overwrite facilities. Default values: |
| 72 | ;logger = Lemonldap::NG::Common::Logger::Syslog |
| 73 | ;syslogFacility = daemon |
| 74 | ;syslogOptions = cons,pid,ndelay |
| 75 | ;userSyslogFacility = auth |
| 76 | ;userSyslogOptions = cons,pid,ndelay |
| 77 | ; |
| 78 | ; You can also pass additional parameters. Example to change host: |
| 79 | ;syslogSockOptions = { host => "my.syslog.com", port => 6514 } |
| 80 | ; |
| 81 | ; 2.2 - Using Log4perl |
| 82 | ; |
| 83 | ; If you want to use Log4perl, you can set these parameters. Here are default |
| 84 | ; values: |
| 85 | ;logger = Lemonldap::NG::Common::Logger::Log4perl |
| 86 | ;log4perlConfFile = /etc/log4perl.conf |
| 87 | ;log4perlLogger = LLNG |
| 88 | ;log4perlUserLogger = LLNGuser |
| 89 | ; |
| 90 | ; Here, Log4perl configuration is read from /etc/log4perl.conf. The "LLNG" |
| 91 | ; value points to the logger class. Example: |
| 92 | ; log4perl.logger.LLNG = WARN, File1 |
| 93 | ; log4perl.logger.LLNGuser = INFO, File2 |
| 94 | ; ... |
| 95 | |
| 96 | ; CONFIGURATION CHECK |
| 97 | ; |
| 98 | ; LLNG checks configuration at server start. If you use "reload" mechanism, |
| 99 | ; local cache will be updated. Configuration is checked locally every |
| 100 | ; 10 minutes by each LLNG component. You can change this value using |
| 101 | ; `checkTime` (time in seconds). |
| 102 | ; To increase performances, you should comment this parameter and rely on cache. |
| 103 | checkTime = 1 |
| 104 | |
| 105 | [configuration] |
| 106 | |
| 107 | ; confTimeout: maximum time to get configuration (default 10) |
| 108 | ;confTimeout = 5 |
| 109 | |
| 110 | ; GLOBAL CONFIGURATION ACCESS TYPE |
| 111 | ; (File, REST, SOAP, CDBI/RDBI, LDAP, YAMLFile) |
| 112 | ; Set here the parameters needed to access to LemonLDAP::NG configuration. |
| 113 | ; You have to set "type" to one of the followings : |
| 114 | ; |
| 115 | ; * File/YAMLFile: you have to set 'dirName' parameter. Example: |
| 116 | ; |
| 117 | ; type = File ; or type = YAMLFile |
| 118 | ; dirName = /var/lib/lemonldap-ng/conf |
| 119 | ; ; Optimize JSON for readability instead of performance |
| 120 | ; prettyPrint = 1 |
| 121 | ; |
| 122 | ; * CDBI/RDBI : you have to set 'dbiChain' (required) and 'dbiUser' and 'dbiPassword' |
| 123 | ; if needed. Example: |
| 124 | ; |
| 125 | ; type = CDBI |
| 126 | ; ;type = RDBI |
| 127 | ; dbiChain = DBI:MariaDB:database=lemonldap-ng;host=1.2.3.4 |
| 128 | ; dbiUser = lemonldap |
| 129 | ; dbiPassword = password |
| 130 | ; |
| 131 | ; * REST: REST configuration access is a sort of proxy: the portal is |
| 132 | ; configured to use the real session storage type (DBI or File for |
| 133 | ; example). |
| 134 | ; You have to set 'baseUrl' parameter. Example: |
| 135 | ; |
| 136 | ; type = REST |
| 137 | ; baseUrl = https://auth.example.com/config |
| 138 | ; lwpOpts = { timeout => 5 } |
| 139 | ; lwpSslOpts = { SSL_ca_file => "..." } |
| 140 | ; user = lemonldap |
| 141 | ; password = mypassword |
| 142 | ; realm = myrealm |
| 143 | ; |
| 144 | ; * LDAP: you have to set ldapServer, ldapConfBase, ldapBindDN and ldapBindPassword. |
| 145 | ; |
| 146 | ; type = LDAP |
| 147 | ; ldapServer = ldap://localhost |
| 148 | ; ldapConfBase = ou=conf,ou=applications,dc=example,dc=com |
| 149 | ; ldapBindDN = cn=manager,dc=example,dc=com |
| 150 | ; ldapBindPassword = secret |
| 151 | ; ldapObjectClass = applicationProcess |
| 152 | ; ldapAttributeId = cn |
| 153 | ; ldapAttributeContent = description |
| 154 | |
| 155 | type=File |
| 156 | dirName=/var/lib/lemonldap-ng/conf |
| 157 | ; Optimize for readability instead of performance |
| 158 | prettyPrint = 1 |
| 159 | |
| 160 | ; LOCAL CACHE CONFIGURATION |
| 161 | ; |
| 162 | ; To increase performances, use a local cache for the configuration. You have |
| 163 | ; to choose a Cache::Cache module and set its parameters. Example: |
| 164 | ; |
| 165 | ; localStorage = Cache::FileCache |
| 166 | ; localStorageOptions={ \ |
| 167 | ; 'namespace' => 'lemonldap-ng-config',\ |
| 168 | ; 'default_expires_in' => 600, \ |
| 169 | ; 'directory_umask' => '007', \ |
| 170 | ; 'cache_root' => '__CACHEDIR__', \ |
| 171 | ; 'cache_depth' => 3, \ |
| 172 | ; } |
| 173 | localStorage=Cache::FileCache |
| 174 | localStorageOptions={ \ |
| 175 | 'namespace' => 'lemonldap-ng-config',\ |
| 176 | 'default_expires_in' => 600, \ |
| 177 | 'directory_umask' => '007', \ |
| 178 | 'cache_root' => '__CACHEDIR__', \ |
| 179 | 'cache_depth' => 3, \ |
| 180 | } |
| 181 | |
| 182 | [apply] |
| 183 | |
| 184 | ; reload URLs for distant Hanlders |
| 185 | |
| 186 | |
| 187 | [portal] |
| 188 | |
| 189 | ; PORTAL CUSTOMIZATION |
| 190 | |
| 191 | ; I - Required parameters |
| 192 | |
| 193 | ; staticPrefix: relative (or URL) location of static HTML components |
| 194 | staticPrefix = __PORTALSTATICDIR__ |
| 195 | |
| 196 | ; location of HTML templates directory |
| 197 | templateDir = __PORTALTEMPLATESDIR__ |
| 198 | |
| 199 | ; languages: available languages for portal interface |
| 200 | languages = en, fr, vi, it, ar, fi, tr, pl, zh_TW, es, pt_BR, he, ru, mfe, sk |
| 201 | |
| 202 | ; II - Optional parameters (overwrite configuration) |
| 203 | |
| 204 | ; Name of the skin |
| 205 | ;portalSkin = pastel |
| 206 | ; Modules displayed |
| 207 | ;portalDisplayLogout = 1 |
| 208 | ;portalDisplayResetPassword = 1 |
| 209 | ;portalDisplayChangePassword = 1 |
| 210 | ;portalDisplayAppslist = 1 |
| 211 | ;portalDisplayLoginHistory = 1 |
| 212 | ; Require the old password when changing password |
| 213 | ;portalRequireOldPassword = 1 |
| 214 | ; Attribute displayed as connected user |
| 215 | ;portalUserAttr = mail |
| 216 | ; Old menu HTML code |
| 217 | ; Enable it if you use old templates |
| 218 | ;useOldMenuItems=1 |
| 219 | ; Override error codes |
| 220 | ;error_0 = You are well authenticated! |
| 221 | ; Custom template parameters |
| 222 | ; For example to use <TMPL_VAR NAME="myparam"> |
| 223 | ;tpl_myparam = test |
| 224 | |
| 225 | ; COMBINATION FORMS |
| 226 | ; If you want to fix forms to display, you can use this; |
| 227 | ;combinationForms = standardform, yubikeyform |
| 228 | |
| 229 | ;syslog = auth |
| 230 | ; SOAP FUNCTIONS |
| 231 | ; Remove comment to activate SOAP Functions getCookies(user,pwd) and |
| 232 | ; error(language, code) |
| 233 | ;Soap = 1 |
| 234 | ; Note that getAttibutes() will be activated but on a different URI |
| 235 | ; (http://auth.example.com/sessions) |
| 236 | ; You can also restrict attributes and macros exported by getAttributes |
| 237 | ;exportedAttr = uid mail |
| 238 | |
| 239 | ; PASSWORD POLICY |
| 240 | ; Remove comment to use LDAP Password Policy |
| 241 | ;ldapPpolicyControl = 1 |
| 242 | ; Remove comment to store password in session (use with caution) |
| 243 | ;storePassword = 1 |
| 244 | ; Remove comment to use LDAP modify password extension |
| 245 | ; (beware of compatibility with LDAP Password Policy) |
| 246 | ;ldapSetPassword = 1 |
| 247 | ; RESET PASSWORD BY MAIL |
| 248 | ; SMTP server (default to localhost), set to '' to use default mail service |
| 249 | ;SMTPServer = localhost |
| 250 | ; SMTP auth user |
| 251 | ;SMTPAuthUser = toto |
| 252 | ; SMTP auth password |
| 253 | ;SMTPAuthPass = secret |
| 254 | ; Mail From address |
| 255 | ;mailFrom = [email protected] |
| 256 | ; Reply To |
| 257 | ;mailReplyTo = [email protected] |
| 258 | ; Mail confirmation URL |
| 259 | ;mailUrl = http://reset.example.com |
| 260 | ; Mail subject for confirmation message |
| 261 | ;mailConfirmSubject = [LemonLDAP::NG] Password reset confirmation |
| 262 | ; Mail body for confiramtion (can use $url for confirmation URL, and other session |
| 263 | ; infos, like $cn). Keep comment to use HTML templates |
| 264 | ;mailConfirmBody = Hello $cn,\n\nClick here to receive your new password: $url |
| 265 | ; Mail subject for new password message |
| 266 | ;mailSubject = [LemonLDAP::NG] Your new password |
| 267 | ; Mail body for new password (can use $password for generated password, and other session |
| 268 | ; infos, like $cn). Keep comment to use HTML templates |
| 269 | ;mailBody = Hello $cn,\n\nYour new password is $password |
| 270 | ; LDAP filter to use |
| 271 | ;mailLDAPFilter = '(&(mail=$mail)(objectClass=inetOrgPerson))' |
| 272 | ; Random regexp for password generation |
| 273 | ;randomPasswordRegexp = [A-Z]{3}[a-z]{5}.\d{2} |
| 274 | ; LDAP GROUPS |
| 275 | ; Set the base DN of your groups branch |
| 276 | ;ldapGroupBase = ou=groups,dc=example,dc=com |
| 277 | ; Objectclass used by groups |
| 278 | ;ldapGroupObjectClass = groupOfUniqueNames |
| 279 | ; Attribute used by groups to store member |
| 280 | ;ldapGroupAttributeName = uniqueMember |
| 281 | ; Attribute used by user to link to groups |
| 282 | ;ldapGroupAttributeNameUser = dn |
| 283 | ; Attribute used to identify a group. The group will be displayed as |
| 284 | ; cn|mail|status, where cn, mail and status will be replaced by their |
| 285 | ; values. |
| 286 | ;ldapGroupAttributeNameSearch = cn mail |
| 287 | |
| 288 | ; NOTIFICATIONS SERVICE |
| 289 | ; Use it to be able to notify messages during authentication |
| 290 | ;notification = 1 |
| 291 | ; Note that the SOAP function newNotification will be activated on |
| 292 | ; http://auth.example.com/notification |
| 293 | ; If you want to hide this, just protect "/index.fcgi/notification" in |
| 294 | ; your Apache configuration file |
| 295 | ; XSS protection bypass |
| 296 | ; By default, the portal refuses redirections that come from sites not |
| 297 | ; registered in the configuration (manager) except for those coming |
| 298 | ; from trusted domains. By default, trustedDomains contains the domain |
| 299 | ; declared in the manager. You can set trustedDomains to empty value so |
| 300 | ; that, undeclared sites will be rejected. You can also set here a list |
| 301 | ; of trusted domains or hosts separated by spaces. This is usefull if |
| 302 | ; your website use LemonLDAP::NG without handler with SOAP functions. |
| 303 | ;trustedDomains = my.trusted.host example2.com |
| 304 | |
| 305 | ; Check XSS |
| 306 | ; Set to 0 to disable error on XSS attack detection |
| 307 | ;checkXSS = 0 |
| 308 | |
| 309 | ; pdata cookie domain |
| 310 | ; pdata cookie could not be sent with cross domains AJAX request |
| 311 | ; Null is default value |
| 312 | ;pdataDomain = example.com |
| 313 | |
| 314 | ; CUSTOM PLUGINS |
| 315 | ; If you want to add custom plugins, set list here (comma separated) |
| 316 | ; Read Lemonldap::NG::Portal::Main::Plugin(3pm) man page. |
| 317 | ;customPlugins = ::My::Package1, ::My::Package2 |
| 318 | |
| 319 | ; To avoid bad/expired OTT if "authssl" and "auth" are served by different Load Balancers |
| 320 | ; you can override OTT configuration to store Upgrade or Issuer OTT into global storage |
| 321 | ;forceGlobalStorageUpgradeOTT = 1 |
| 322 | ;forceGlobalStorageIssuerOTT = 1 |
| 323 | |
| 324 | [handler] |
| 325 | |
| 326 | ; Handler cache configuration |
| 327 | ; You can overwrite here local session cache settings in manager: |
| 328 | ; localSessionStorage=Cache::FileCache |
| 329 | ; localSessionStorageOptions={ \ |
| 330 | ; 'namespace' => 'lemonldap-ng-sessions', \ |
| 331 | ; 'default_expires_in' => 600, \ |
| 332 | ; 'directory_umask' => '007', \ |
| 333 | ; 'cache_root' => '__CACHEDIR__', \ |
| 334 | ; 'cache_depth' => 3, \ |
| 335 | ; } |
| 336 | |
| 337 | ; Set https to 1 if your handler protect a https website (used only for |
| 338 | ; redirections to the portal) |
| 339 | ;https = 0 |
| 340 | ; Set port if your handler protects a website on a non standard port |
| 341 | ; - 80 for http, 443 for https (used only for redirections to the portal) |
| 342 | ;port = 8080 |
| 343 | ; Set status to 1 if you want to have the report of activity (used for |
| 344 | ; example to inform MRTG) |
| 345 | status = 0 |
| 346 | ; Set useRedirectOnForbidden to 1 if you want to use REDIRECT and not FORBIDDEN |
| 347 | ; when a user is not allowed by Handler |
| 348 | ;useRedirectOnForbidden = 1 |
| 349 | ; Hide LemonLDAP::NG Handler in Apache Server Signature |
| 350 | ;hideSignature = 1 |
| 351 | ; Set ServiceToken timeout |
| 352 | ;handlerServiceTokenTTL = 30 |
| 353 | ; Set Impersonation/ContextSwitching prefix |
| 354 | ; impersonationPrefix = real_ |
| 355 | useRedirectOnError = 1 |
| 356 | |
| 357 | ; Zimbra Handler parameters |
| 358 | ;zimbraPreAuthKey = XXXX |
| 359 | ;zimbraAccountKey = uid |
| 360 | ;zimbraBy =id |
| 361 | ;zimbraUrl = /service/preauth |
| 362 | ;zimbraSsoUrl = ^/zimbrasso$ |
| 363 | |
| 364 | [manager] |
| 365 | |
| 366 | ; Manager protection: by default, the manager is protected by a demo account. |
| 367 | ; You can protect it : |
| 368 | ; * by Apache itself, |
| 369 | ; * by the parameter 'protection' which can take one of the following |
| 370 | ; values : |
| 371 | ; * authenticate : all authenticated users can access |
| 372 | ; * manager : manager is protected like other virtual hosts: you |
| 373 | ; have to set rules in the corresponding virtual host |
| 374 | ; * <rule> : you can set here directly the rule to apply |
| 375 | ; * none : no protection |
| 376 | protection = manager |
| 377 | |
| 378 | ; staticPrefix: relative (or URL) location of static HTML components |
| 379 | staticPrefix = __MANAGERSTATICDIR__ |
| 380 | ; docPrefix: relative (or URL) location of embedded documentation |
| 381 | docPrefix = __MANAGERDOCDIR__ |
| 382 | |
| 383 | ; instanceName: Display LLNG instance name |
| 384 | ;instanceName = Demo |
| 385 | ; customCSS: CSS file to customize Manager |
| 386 | ;customCSS = css/custom.css |
| 387 | ; customPortalUrl: Override Portal drop-down menu links |
| 388 | ;customPortalUrl = http://external-portal.internal.com |
| 389 | |
| 390 | ; location of HTML templates directory |
| 391 | templateDir = __MANAGERTEMPLATESDIR__ |
| 392 | |
| 393 | ; languages: available languages for manager interface |
| 394 | languages = en, fr, it, vi, ar, tr, pl, zh_TW, es, he, pt_BR, ru |
| 395 | |
| 396 | ; Manager modules enabled |
| 397 | ; Set here the list of modules you want to see in manager interface |
| 398 | ; The first will be used as default module displayed |
| 399 | ;enabledModules = conf, sessions, notifications, 2ndFA, viewer |
| 400 | enabledModules = conf, sessions, notifications, 2ndFA |
| 401 | |
| 402 | ; To avoid restricted users to edit configuration, defaulModule MUST be different than 'conf' |
| 403 | ; 'conf' is set by default |
| 404 | ;defaultModule = viewer |
| 405 | |
| 406 | ; Viewer module allows us to edit configuration in read-only mode |
| 407 | ; Options can be set with specific rules like this : |
| 408 | ;viewerAllowBrowser = $uid eq 'dwho' |
| 409 | ;viewerAllowDiff = $uid ne 'dwho' |
| 410 | ; |
| 411 | ; Viewer options - Default values |
| 412 | ;viewerHiddenKeys = samlIDPMetaDataNodes samlSPMetaDataNodes managerPassword ManagerDn globalStorageOptions persistentStorageOptions |
| 413 | ;viewerAllowBrowser = 0 |
| 414 | ;viewerAllowDiff = 0 |
| 415 | |
| 416 | ;[node-handler] |
| 417 | ; |
| 418 | ;This section is for node-lemonldap-ng-handler |
| 419 | ;nodeVhosts = test3.example.com, test4.example.com |