[rt-users] RT-Authen-ExternalAuth User could not be created: Could not set user info

Brian Forquer BForquer at enzy.com
Wed Mar 10 18:48:17 EST 2010


I have done various modifications to by RT_SiteConfig.pm , I have done searching and read the README's.
I am having problems getting RT-Authen-ExternalAuth I am not sure if it is supposed to create logins in RT by default if it finds it in AD but I have tried just logging in and also creating a user neither works.


Trying to login no user created.

[Wed Mar 10 23:24:00 2010] [debug]: RT's GnuPG libraries couldn't successfully read your configured GnuPG home directory (/opt/rt3/var/data/gpg). PGP support has been disabled (/opt/rt3/bin/../lib/RT/Config.pm:400)
[Wed Mar 10 23:24:00 2010] [debug]: Reloading RT::User to work around a bug in RT-3.8.0 and RT-3.8.1 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:14)
[Wed Mar 10 23:24:00 2010] [debug]: ExternalInfoPriority not defined. User information (including user enabled/disabled cannot be externally-sourced (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:40)
[Wed Mar 10 23:24:00 2010] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:64)
[Wed Mar 10 23:24:00 2010] [debug]: SSO Failed and no user to test with. Nexting (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:92)
[Wed Mar 10 23:24:00 2010] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:26)
[Wed Mar 10 23:24:11 2010] [debug]: RT's GnuPG libraries couldn't successfully read your configured GnuPG home directory (/opt/rt3/var/data/gpg). PGP support has been disabled (/opt/rt3/bin/../lib/RT/Config.pm:400)
[Wed Mar 10 23:24:11 2010] [debug]: Reloading RT::User to work around a bug in RT-3.8.0 and RT-3.8.1 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:14)
[Wed Mar 10 23:24:11 2010] [debug]: ExternalInfoPriority not defined. User information (including user enabled/disabled cannot be externally-sourced (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:40)
[Wed Mar 10 23:24:11 2010] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:64)
[Wed Mar 10 23:24:11 2010] [debug]: Calling UserExists with $username (bforquer) and $service (My_LDAP) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:105)
[Wed Mar 10 23:24:11 2010] [debug]: UserExists params:
username: bforquer , service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:274)
[Wed Mar 10 23:24:11 2010] [debug]: LDAP Search ===  Base: BLANKED == Filter: (&(objectClass=Person)(sAMAccountName=bforquer)) == Attrs: l,cn,st,mail,sAMAccountName,co,streetAddress,postalCode,telephoneNumber,sAMAccountName,physicalDeliveryOfficeName,sAMAccountName (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:304)
[Wed Mar 10 23:24:11 2010] [debug]: Checking Username:  bforquer (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:123)
[Wed Mar 10 23:24:11 2010] [debug]: RT::Authen::ExternalAuth::CanonicalizeUserInfo called by RT::User /opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/User_Vendor.pm 20 with: Disabled: 0, EmailAddress: , Gecos: bforquer, Name: bforquer, Privileged: 0 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:451)
[Wed Mar 10 23:24:11 2010] [warning]: Use of uninitialized value $_[1] in join or string at /usr/local/lib/perl5/site_perl/5.10.0/Log/Dispatch.pm line 21, <DATA> line 514. (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:459)
[Wed Mar 10 23:24:11 2010] [debug]: Attempting to get user info using this external service:  (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:459)
[Wed Mar 10 23:24:11 2010] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Disabled: 0, EmailAddress: , Gecos: bforquer, Name: bforquer, Privileged: 0 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:537)
[Wed Mar 10 23:24:11 2010] [error]: Couldn't create user bforquer: Could not set user info (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:130)
[Wed Mar 10 23:24:11 2010] [debug]: Autohandler called ExternalAuth. Response: (0, No User) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:26)
[Wed Mar 10 23:24:11 2010] [error]: FAILED LOGIN for bforquer from 172.20.41.100 (/opt/rt3/bin/../lib/RT/Interface/Web.pm:424)

Logging in as root and trying to create myself as a user

[Wed Mar 10 23:27:54 2010] [debug]: Reloading RT::User to work around a bug in RT-3.8.0 and RT-3.8.1 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:14)
[Wed Mar 10 23:27:54 2010] [debug]: RT::Authen::ExternalAuth::CanonicalizeUserInfo called by RT::User /opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/User_Vendor.pm 20 with: Address1: , Address2: , AuthSystem: , City: , Comments: , ContactInfoSystem: , Country: , Disabled: 0, EmailAddress: , EmailEncoding: , ExternalAuthId: , ExternalContactInfoId: , FreeformContactInfo: , Gecos: , HomePhone: , Lang: , MobilePhone: , Name: bforquer, NickName: , Organization: , PagerPhone: , Privileged: , RealName: , Signature: , State: , WebEncoding: , WorkPhone: , Zip:  (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:451)
[Wed Mar 10 23:27:54 2010] [warning]: Use of uninitialized value $_[1] in join or string at /usr/local/lib/perl5/site_perl/5.10.0/Log/Dispatch.pm line 21, <DATA> line 323. (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:459)
[Wed Mar 10 23:27:54 2010] [debug]: Attempting to get user info using this external service:  (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:459)
[Wed Mar 10 23:27:54 2010] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Address1: , Address2: , AuthSystem: , City: , Comments: , ContactInfoSystem: , Country: , Disabled: 0, EmailAddress: , EmailEncoding: , ExternalAuthId: , ExternalContactInfoId: , FreeformContactInfo: , Gecos: , HomePhone: , Lang: , MobilePhone: , Name: bforquer, NickName: , Organization: , PagerPhone: , Privileged: , RealName: , Signature: , State: , WebEncoding: , WorkPhone: , Zip:  (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:537)


RT_SiteConfig.pm
Set( $rtname, 'BLANKED');
Set( $Organization, "BLANKED");
Set($Timezone , 'US/Central');
Set($DatabaseType , 'mysql');
Set($DatabaseUser , 'BLANKED');
Set($DatabasePassword , 'BLANKED');
Set($DatabaseName , 'BLANKED');
#Set($OwnerEmail , 'BLANKED');
Set($ExternalAuthPriority, [ 'My_LDAP' ]);
Set($ExternalSettings, {
        'My_LDAP' => {
                'type'                  => 'ldap',
                'auth'                  => 1,
                'info'                  => 1,
                'server'                => 'BLANKED',
                'base'                  => 'BLANKED',
                'user'                  => 'CN=BLANKED,OU=Users,OU=BLANKED,DC=BLANKED,DC=com',
                'pass'                  => 'BLANKED',
                'filter'                => '(objectClass=Person)',
                'd_filter'              => '(userAccountControl:1.2.840.113556.1.4.803:=2)',
                'tls'                   => 0,
                'net_ldap_args'         => [ version => 3 ],
                'group'                 => '',
                'group_attr'            => '',
                'attr_match_list'       => [ 'Name',
                                        'EmailAddress',
                                        'RealName',
                                        'WorkPhone',
                                        'Address2'
                                        ],
                'attr_map'              => {
                                        'Name' => 'sAMAccountName',
                                        'EmailAddress' => 'mail',
                                        'Organization' => 'physicalDeliveryOfficeName',
                                        'RealName' => 'cn',
                                        'ExternalAuthId' => 'sAMAccountName',
                                        'Gecos' => 'sAMAccountName',
                                        'WorkPhone' => 'telephoneNumber',
                                        'Address1' => 'streetAddress',
                                        'City' => 'l',
                                        'State' => 'st',
                                        'Zip' => 'postalCode',
                                        'Country' => 'co'
                        }
        }
}
);
Set($LogToSyslog    , 'debug');
Set($LogToScreen    , 'debug');

Set( @Plugins, qw(RT::Authen::ExternalAuth) );
#Set(@Plugins,(qw(Extension::QuickDelete RT::FM)));
1;

________________________________
Schwabe North America, Inc. - This electronic mail transmission, along with any attachments, is confidential. If you are not the intended recipient, please immediately advise the sender by reply transmission and delete this e-mail from your system without copying or disclosing it. Thank you for your cooperation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100310/1b501053/attachment.htm>


More information about the rt-users mailing list