[rt-users] RT External Auth and uid problem

2011-08-24 Thread Luciano Ernesto da Silva
Hello,

 

I installed External Auth, Works ok, but I have a problem with my users.
There's  +5.000 users in LDAP that I need allow use of RT, but now I
realized that RT does not allow create users with numbers in field
Name.  So, all my users have numbers in uid attribute in LDAP. I
don't have a field with Jdoe as uid , but uid=00112245, and cn= John
Doe, mail=john...@example.com  .

 

##RELEVANT PARTS OF MY CONFIG###

 

Set($AutoCreateNonExternalUsers, 1);

Set($AutoCreate, {Privileged = 1});

 

MAP TO ATTRIBUTES#

   'attr_match_list'
= [ 'Name',  'EmailAddress',  'RealName'],

# The mapping of
RT attributes on to LDAP attributes

'attr_map'
=  {   'Name' = 'uid', 'EmailAddress' = 'mail',  'RealName' = 'cn',
'ExternalAuthId' = 'uid' }

 

In the extension ExternalAuth I changed all  the strings Name for
NickName and seems work, but I still cant't create users.

 

I thought a solution creating a local/lib overlay for create a user with
NickName to use as uid number, and keep RealName for cn, and
EmailAdddress for mail.

 

What function in lib is used to create the users? Can you give me some
tips?

 

Thanks for your help,

 

 

 

Luciano Silva

luci...@cpd.ufrgs.br 


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA — September 26  27, 2011
*  San Francisco, CA, USA — October 18  19, 2011
*  Washington DC, USA — October 31  November 1, 2011
*  Melbourne VIC, Australia — November 28  29, 2011
*  Barcelona, Spain — November 28  29, 2011

Re: [rt-users] RT External Auth and uid problem

2011-08-24 Thread Kevin Falcone
On Wed, Aug 24, 2011 at 10:54:22AM -0300, Luciano Ernesto da Silva wrote:
   'attr_match_list'   
 = [
'Name',  'EmailAddress',  'RealName'],
 
# The mapping of 
 RT attributes on to
LDAP attributes
 
'attr_map' 
  =  {
'Name' = 'uid', 'EmailAddress' = 'mail',  'RealName' = 'cn',  
 'ExternalAuthId' = 'uid' }
 
 
 
In the extension ExternalAuth I changed all  the strings Name for 
 NickName and seems work,
but I still cant't create users.

Do you meant you literally replaced all occurrences of Name with
NickName in the extension?  That will never work.

If you have a non-numeric field, just fix attr_map so that Name =
'non_numeric_ldap_field'

Also, you almost certainly don't want attr_match_list to consider
RealName to be unique.  That would mean that you can't have two users
in RT with the name Kevin Falcone since the extension will try to
resolve them to the same AD user.

-kevin

 
 
 
I thought a solution creating a local/lib overlay for create a user with 
 NickName to use as
uid number, and keep RealName for cn, and EmailAdddress for mail.
 
 
 
What function in lib is used to create the users? Can you give me some 
 tips?
 
 
 
Thanks for your help,
 
 
 
 
 
 
 
Luciano Silva
 
[1]luci...@cpd.ufrgs.br
 
 References
 
Visible links
1. mailto:luci...@cpd.ufrgs.br

 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 *  Chicago, IL, USA ? September 26  27, 2011
 *  San Francisco, CA, USA ? October 18  19, 2011
 *  Washington DC, USA ? October 31  November 1, 2011
 *  Melbourne VIC, Australia ? November 28  29, 2011
 *  Barcelona, Spain ? November 28  29, 2011



pgp3LqXHcjzQT.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA — September 26  27, 2011
*  San Francisco, CA, USA — October 18  19, 2011
*  Washington DC, USA — October 31  November 1, 2011
*  Melbourne VIC, Australia — November 28  29, 2011
*  Barcelona, Spain — November 28  29, 2011