Set($rtname, 'Moreton Bay College');
Set($Organization, 'mbc.qld.edu.au');
Set($CorrespondAddress, 'rt@mbc.qld.edu.au');
Set($CommentAddress, 'rt-comment@mbc.qld.edu.au');
Set($Timezone, 'Australia/Brisbane');
Set($DatabaseType, 'mysql');
Set($DatabaseHost, 'localhost');
#Set($DatabaseUser, 'rt_user');
#Set($DatabasePassword, '');
#Set($DatabaseName, 'rt3');
Set($WebPath, "");
Set($WebBaseURL, "http://rt.mbc.qld.edu.au/");
Set($DatabaseRTHost , 'localhost');


Set($LogToSyslog    , 'debug');
Set($LogToScreen    , 'debug');

Set($LogToFile      , 'debug');
Set($LogDir, 'var/log');
Set($LogToFileNamed , "rt.log");    #log to rt.log

Set($LogStackTraces, 1);

#Set(@Plugins,(qw(Extension::QuickDelete)));
Set(@Plugins, (qw(RT::Authen::ExternalAuth)));

Set($ExternalAuthPriority,  [   'My_LDAP' ] );
Set($ExternalInfoPriority,  [   'My_LDAP' ] );

Set($ExternalServiceUsesSSLorTLS,    0);
Set($AutoCreateNonExternalUsers,    0);

Set($ExternalSettings,      {
                             'My_LDAP'       =>  {   ## GENERIC SECTION
                                                        # The type of service (db/ldap/cookie)
                                                        'type'                      =>  'ldap',
                                                        # Should the service be used for authentication?
                                                        'auth'                      =>  1,
                                                        # Should the service be used for information?
                                                        'info'                      =>  1,
                                                        # The server hosting the service
                                                        'server'                    =>  'ldap.mbc.qld.edu.au',
                                                        ## SERVICE-SPECIFIC SECTION
                                                        # If you can bind to your LDAP server anonymously you should
                                                        # remove the user and pass config lines, otherwise specify them here:
                                                        #
                                                        # The username RT should use to connect to the LDAP server
                                                        #'user'                      =>  'rt_ldap_username',
                                                        # The password RT should use to connect to the LDAP server
                                                        #'pass'                    =>  'rt_ldap_password',
                                                        #
                                                        # The LDAP search base
                                                        'base'                      =>  'ou=lab,o=mbc',
                                                        # The filter to use to match RT-Users
                                                        'filter'                    =>  '(class=Person)',
                                                        # The filter that will only match disabled users
                                                        'd_filter'                  =>  '()',
                                                        # Should we try to use TLS to encrypt connections?
                                                        'tls'                       =>  0,
                                                        # What other args should I pass to Net::LDAP->new($host,@args)?
                                                        'net_ldap_args'             => [    version =>  3   ],
                                                        # Does authentication depend on group membership? What group name?
                                                        'group'                     =>  'cn=GRP_Staff,ou=lab,o=mbc',
                                                        # What is the attribute for the group object that determines membership?
                                                        'group_attr'                =>  'groupMembership',
                                                        ## RT ATTRIBUTE MATCHING SECTION
                                                        # The list of RT attributes that uniquely identify a user
                                                        'attr_match_list'           => [    'Name',
                                                                                            'EmailAddress'
                                                                                        ],
                                                        # The mapping of RT attributes on to LDAP attributes
                                                        'attr_map'                  =>  {   'Name' => 'cn',
                                                                                            'EmailAddress' => 'mail',
                                                                                            'Organization' => 'l',
                                                                                            'RealName' => 'cn',
                                                                                        'ExternalAuthId' => 'uid',
                                                                                            #'Gecos' => 'sAMAccountName',
                                                                                            #'WorkPhone' => 'telephoneNumber',
                                                                                            #'Address1' => 'streetAddress',
                                                                                            'City' => 'l',
                                                                                            'State' => 'st',
                                                                                            'Zip' => 'postalCode',
                                                                                            'Country' => 'co'
                                                                                        }
                                                    }
                                }
);
1;
