| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK Online Homework Delivery System |
3 | # WeBWorK Online Homework Delivery System |
| 4 | # Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/ |
4 | # Copyright © 2000-2006 The WeBWorK Project, http://openwebwork.sf.net/ |
| 5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.179 2006/10/19 17:35:25 sh002i Exp $ |
5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.180 2006/11/13 16:19:40 sh002i Exp $ |
| 6 | # |
6 | # |
| 7 | # This program is free software; you can redistribute it and/or modify it under |
7 | # This program is free software; you can redistribute it and/or modify it under |
| 8 | # the terms of either: (a) the GNU General Public License as published by the |
8 | # the terms of either: (a) the GNU General Public License as published by the |
| 9 | # Free Software Foundation; either version 2, or (at your option) any later |
9 | # Free Software Foundation; either version 2, or (at your option) any later |
| 10 | # version, or (b) the "Artistic License" which comes with this package. |
10 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 422 | # Variables for sql_moodle database layout. |
422 | # Variables for sql_moodle database layout. |
| 423 | $moodle_dsn = "dbi:mysql:moodle"; |
423 | $moodle_dsn = "dbi:mysql:moodle"; |
| 424 | $moodle_username = $database_username; |
424 | $moodle_username = $database_username; |
| 425 | $moodle_password = $database_password; |
425 | $moodle_password = $database_password; |
| 426 | $moodle_table_prefix = "mdl_"; |
426 | $moodle_table_prefix = "mdl_"; |
|
|
427 | $moodle17 = 0; |
| 427 | |
428 | |
| 428 | # Several database are defined in the file conf/database.conf and stored in the |
429 | # Several database are defined in the file conf/database.conf and stored in the |
| 429 | # hash %dbLayouts. |
430 | # hash %dbLayouts. |
| 430 | include "conf/database.conf"; |
431 | include "conf/database.conf"; |
| 431 | |
432 | |
| … | |
… | |
| 556 | $authen{moodle_options} = { |
557 | $authen{moodle_options} = { |
| 557 | dsn => $moodle_dsn, |
558 | dsn => $moodle_dsn, |
| 558 | username => $moodle_username, |
559 | username => $moodle_username, |
| 559 | password => $moodle_password, |
560 | password => $moodle_password, |
| 560 | table_prefix => $moodle_table_prefix, |
561 | table_prefix => $moodle_table_prefix, |
|
|
562 | moodle17 => $moodle17, |
| 561 | }; |
563 | }; |
| 562 | |
564 | |
| 563 | $authen{ldap_options} = { |
565 | $authen{ldap_options} = { |
| 564 | # hosts to attempt to connect to, in order. for example: |
566 | # hosts to attempt to connect to, in order. for example: |
| 565 | # auth.myschool.edu -- uses LDAP scheme and port 389 |
567 | # auth.myschool.edu -- uses LDAP scheme and port 389 |