Trouble Adding Users

I’m trying to add a user to RT and it’s failing with the following errors in the log file. These errors happen whether the user is added through the admin interface, or by adding them as a watcher to a new ticket. This is on RT 3.8.4 on FreeBSD 7.2. I tried adding users with a different name/e-mail, which also failed. And the user doesn’t already exist - if you search for the user, including disabled users, they do not appear.

RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Address1: , Address2: , AuthSystem: , City: , Comments: , ContactInfoSystem: , Country: , Disabled: 0, EmailAddress: foo@bar.com, EmailEncoding: , ExternalAuthId: , ExternalContactInfoId: , FreeformContactInfo: , Gecos: , HomePhone: , Lang: , MobilePhone: , Name: foo, NickName: , Organization: , PagerPhone: , Privileged: , RealName: Foo Bar, Signature: , State: , WebEncoding: , WorkPhone: , Zip: (/usr/local/share/rt38/plugins/RT-Authen-ExternalAuth /lib/RT/Authen/ExternalAuth.pm:536)

RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Address1: , Address2: , AuthSystem: , City: , Comments: , ContactInfoSystem: , Country: , Disabled: 0, EmailAddress: foo@bar.com, EmailEncoding: , ExternalAuthId: , ExternalContactInfoId: , FreeformContactInfo: , Gecos: , HomePhone: , Lang: , MobilePhone: , Name: foo, NickName: , Organization: , PagerPhone: , Privileged: , RealName: Foo Bar, Signature: , State: , WebEncoding: , WorkPhone: , Zip: (/usr/local/share/rt38/plugins/RT-Authen-ExternalAuth /lib/RT/Authen/ExternalAuth.pm:536)

RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Comments: Autocreated when added as a watcher, Disabled: 0, EmailAddress: foo@bar.com, Name: foo, Privileged: 0, RealName: foo (/usr/local/share/rt38/plugins/RT-Authen-ExternalAuth/lib/RT /Authen/ExternalAuth.pm:536)

RT: Failed to create user foo@bar.com: Could not set user info (/usr/local/lib/perl5/site_perl/5.8.9/RT/User_Overlay.pm:511 )

RT: Could not load create a user with the email address ‘foo@bar.com’ to add as a watcher for ticket 40291 (/usr/local/lib/perl5/site_perl/5.8.9/RT/Ticket_Overlay.pm: 1113)

Tim Gustafson
Baskin School of Engineering
UC Santa Cruz
tjg@soe.ucsc.edu
831-459-5354

I’m trying to add a user to RT and it’s failing with the following errors in the log file. These errors happen whether the user is added through the admin interface, or by adding them as a watcher to a new ticket. This is on RT 3.8.4 on FreeBSD 7.2. I tried adding users with a different name/e-mail, which also failed. And the user doesn’t already exist - if you search for the user, including disabled users, they do not appear.

Your logs point squarely at RT::Authen::ExternalAuth, not RT.
I bet you’ve not looked at this config option:

If this is set to 1, then users should be autocreated by RT

# as internal users if they fail to authenticate from an

# external service.

Set($AutoCreateNonExternalUsers, 0);

The default setting of 0 prevents users from being created if they
don’t exist in LDAP

-kevin

Your logs point squarely at RT::Authen::ExternalAuth,
not RT. I bet you’ve not looked at this config option:

If this is set to 1, then users should be autocreated by RT

as internal users if they fail to authenticate from an

external service.

Set($AutoCreateNonExternalUsers, 0);

The default setting of 0 prevents users from being created
if they don’t exist in LDAP

Actually, I did look at that option, but the name confused me.

But yes, that did it. Thanks a million!

Tim Gustafson
Baskin School of Engineering
UC Santa Cruz
tjg@soe.ucsc.edu
831-459-5354