| 262 | '''Search parameters''' |
| 263 | |
| 264 | Configure attributes on which the search is done: |
| 265 | |
| 266 | {{{ |
| 267 | $search_attributes = array('uid', 'cn', 'mail'); |
| 268 | }}} |
| 269 | |
| 270 | By default, search is done with substring match. This can be changed to use exact match: |
| 271 | |
| 272 | {{{ |
| 273 | $search_use_substring_match = false; |
| 274 | }}} |
| 275 | |
| 276 | '''Results display''' |
| 277 | |
| 278 | Configure items shown when displaying results: |
| 279 | |
| 280 | {{{ |
| 281 | search_result_items = array('identifier', 'mail', 'mobile'); |
| 282 | }}} |
| 283 | |
| 284 | '''Datatables''' |
| 285 | |
| 286 | Define pagination values in dropdown: |
| 287 | |
| 288 | {{{ |
| 289 | $datatables_page_length_choices = array(10, 25, 50, 100, -1); // -1 means All |
| 290 | }}} |
| 291 | |
| 292 | Set default pagination for results (can also be used to force the length without $datatables_page_length_choices): |
| 293 | |
| 294 | {{{ |
| 295 | $datatables_page_length_default = 10; |
| 296 | }}} |
| 297 | |
| 298 | Enable or disable autoPrint feature: |
| 299 | |
| 300 | {{{ |
| 301 | $datatables_auto_print = true; |
| 302 | }}} |
| 303 | |
| 304 | '''Display parameters''' |
| 305 | |
| 306 | Configure which items are displayed: |
| 307 | |
| 308 | {{{ |
| 309 | $display_items = array('identifier', 'firstname', 'lastname', 'title', 'businesscategory', 'employeenumber', 'employeetype', 'mail', 'phone', 'mobile', 'fax', 'postaladdress', 'street', 'postalcode', 'l', 'state', 'organizationalunit', 'organization'); |
| 310 | }}} |
| 311 | |
| 312 | Set which item is use as title: |
| 313 | |
| 314 | {{{ |
| 315 | $display_title = "fullname"; |
| 316 | }}} |
| 317 | |
| 318 | Choose to show undefined values: |
| 319 | |
| 320 | {{{ |
| 321 | $display_show_undefined = false; |
| 322 | }}} |
| 323 | |
| 324 | '''Account information panel''' |
| 325 | |
| 326 | Configure which items are displayed: |
| 327 | |
| 328 | {{{ |
| 329 | $display_password_items = array('pwdchangedtime', 'pwdreset', 'pwdaccountlockedtime', 'pwdfailuretime','pwdpolicysubentry', 'authtimestamp', 'created', 'modified'); |
| 330 | }}} |
| 331 | |
| 332 | You can also display the password expiration date in this panel by enabling this option: |
| 333 | |
| 334 | {{{ |
| 335 | $display_password_expiration_date = true; |
| 336 | }}} |
| 337 | |
| 338 | '''Check password''' |
| 339 | |
| 340 | This feature allows to enter a password and check authentication. |
| 341 | |
| 342 | //Note-// the authentification can fail even if the password is correct. This is the case if account is locked or password is expired. |
| 343 | |
| 344 | To enable this feature: |
| 345 | |
| 346 | {{{ |
| 347 | $use_checkpassword = true; |
| 348 | }}} |
| 349 | |
| 350 | '''Reset password''' |
| 351 | |
| 352 | This feature allows to reset a password and set the reset at next connection flag. |
| 353 | |
| 354 | To enable this feature: |
| 355 | |
| 356 | {{{ |
| 357 | $use_resetpassword = true; |
| 358 | }}} |
| 359 | |
| 360 | When changing the password, you can force the user to reset it at next connection. To configure the default value presented in the form: |
| 361 | |
| 362 | {{{ |
| 363 | $resetpassword_reset_default = true; |
| 364 | }}} |
| 365 | |
| 366 | If you do not want to let the choice to reset at next connection, you can hide this button: |
| 367 | |
| 368 | {{{ |
| 369 | $use_resetpassword_resetchoice = false; |
| 370 | }}} |
| 371 | |
| 372 | In this case, the value set in $resetpassword_reset_default will be applied. |
| 373 | |
| 374 | '''Notify user by mail''' |
| 375 | |
| 376 | You can notify the user by mail when the password is reset: |
| 377 | |
| 378 | {{{ |
| 379 | $notify_on_change = true; |
| 380 | }}} |
| 381 | |
| 382 | '''Notify administrator by mail''' |
| 383 | |
| 384 | $notify_admin_by_mail_list is a a php array list of mails of admins to set directly in service-desk configuration. |
| 385 | |
| 386 | $header_name_notify_admin_by_mail is name of header that will be provided to cgi script as HTTP_$header_name_notify_admin_by_mail to set administrator mail from webserver. This setting allows webserver to select an administrator mail related to current http session. Its value should be a valid mail according to rfc822 |
| 387 | |
| 388 | If those are set any administrator mail will receive a notification that user password was changed. |
| 389 | |
| 390 | Remark this is not controled by $notify_on_change, which is only for user. |
| 391 | |
| 392 | {{{ |
| 393 | $notify_admin_by_mail_list=array( 'a@example.com','b@example.com' 'c@example.com'); |
| 394 | $header_name_notify_admin_by_mail=SD_ADMIN_MAIL; |
| 395 | }}} |
| 396 | |