Got it working.... Thanks Mike... A question I have, can I deleted the section about the My_MySQL? Or does the script need that section also?
And the 2 settings for groups, how does this work? # Does authentication depend on group membership? What group name? 'group' => '', # What is the attribute for the group object that determines membership? 'group_attr' => '', What should I put for those 2 settings? Regards, Nelson Pereira -----Original Message----- From: Mike Peachey [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 09, 2008 10:09 AM To: Nelson Pereira Cc: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Intergration with LDAP Nelson Pereira wrote: > I'm sorry Mike, I guess I did not read your email correctly. Truly > sorry. > I guess I was impatient to get this working right and just got > frustrated... > Now this morning, I'm more relaxed, enjoying a coffee... > > So I changed what you suggested and when login in, I get this error: > > System error > error: Can't use an undefined value as an ARRAY reference at > /opt/rt3/local/lib/RT/User_Vendor.pm line 56. > > context: ... > 52: $RT::Logger->debug( (caller(0))[3], > 53: "Trying External authentication"); > 54: > 55: # Get the prioritised list of external authentication services > 56: my @auth_services = @$RT::ExternalAuthPriority; > 57: > 58: # For each of those services.. > 59: foreach my $service (@auth_services) { > 60: > > Here is the RT_SiteConfig.pm : > > Set($AuthMethods, ['LDAP', 'Internal']); > Set($LdapExternalAuth, 1); > Set($LdapExternalInfo, 1); > Set($LdapAutoCreateNonLdapUsers, 1); > > Regards, > > Nelson Pereira > You're mixing and matching config settings. You have got the above config settings which are for Jim Meyer's User_Local overlay, but the settings needed for RT::Authen::ExternalAuth are not the same. This config setting: Set($AuthMethods, ['LDAP', 'Internal']); Has been replaced by these: Set($ExternalAuthPriority, ['My_LDAP']); Set($ExternalInfoPriority, ['My_LDAP']); This is because Info and Auth are treated as separate services, even though you plan to use the same service for both, and now Internal authentication is ALWAYS checked and ALWAYS checked last so the list you specify cannot contain Internal. Because of this, $LdapExternalAuth and $LdapExternalInfo are both irrelevant and not used as well as LdapAutoCreateNonLdapUsers as they have all been replaced. Double check what you have against the RT_SiteConfig.pm that comes with RT::Authen::ExternalAuth. If it's related to LDAP and is NOT in the sample config file I provided, then it shouldn't be in your config. -- Kind Regards, __________________________________________________ Mike Peachey, IT Tel: +44 114 281 2655 Fax: +44 114 281 2951 Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK Comp Reg No: 3191371 - Registered In England http://www.jennic.com __________________________________________________ _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com