. # # # #################################################################################### // the config file - edit to match your set up // Set wide settings // set site name to what you want to appear in the title bar and top of every page. $CONFIG['site_name'] = 'Purchase Order Web Form'; // Authentication settings // set this variable to define which authentication scheme to use... // at present only none or ldap are configured // however if you have another type you wish to use you can just // the include file in the auth folder as auth.inc.php // The file should be saved in a sub-folder named to match the // authentication type i.e. ldap -- You can then call the authentication // type by changing the variable below to match the name of the sub folder // // - set it to 'none' to disable authentication $CONFIG['auth_set'] = 'none'; //Language Settings // set this variable to match the folder name that your language file resides in // at present there is only an English translation, so leave this set to 'en' $CONFIG['lang'] = 'en'; // set this to match the code for your currency symbol £ for Strelling, € for euro etc. $CONFIG['currency'] = '£'; // LDAP Server variables // host needs to be the ip address of your ldap server, port default is 389 $ldap['host'] = 'xxx.xxx.xxx.xxx'; $ldap['port'] = 389; // LDAP BIND Variables // binduser and bindpass need to be a username and password of an account in your ldap that can browse the dircetory // it does not need to be an admin user // bindbase is the base dn of the binduser $ldap['binduser'] = 'binduser'; $ldap['bindpass'] = 'bindpass'; $ldap['bind_base'] = 'ou=Users,dc=domain,dc=com'; $ldap['binddn'] = 'cn=' . $ldap['binduser'] . ',' . $ldap['bind_base']; // LDAP Search Variables // base is the base dn that you want to search for your authenticated users in. // user_context is the context that you want to match the user names against // sAMAccountName is the most likely for Microsoft Active Directory $ldap['base'] = 'ou=Users,dc=domain,dc=com'; $ldap['user_context'] = 'sAMAccountName'; // Email Settings // set this field to the email address you want to send your completed purchase orders // to. For your users to receive confirmation emails of their orders, they must have their // email address present in the LDAP source. $CONFIG['finance_mail'] = 'finance@example.com'; $CONFIG['mail_subject'] = 'New order from ' . $CONFIG['site_name'] . '.'; // if you are not using authentication, then we need to get the email address we are going to send the messages from! // if you are using authentication then you can ignore this setting! $CONFIG['no_auth_mail'] = 'example@example.com'; ?>