On Mon, Jul 25, 2011 at 02:41:26PM +0100, Giuseppe Sollazzo wrote:
> Hi,
> just a quick doubt/verification.
> 
> We have RT::Authen::ExternalAuth and RT::Extension::LDAPImport. Our
> matching array is as follows:
> 
>      'attr_map'                  =>  {   'Name' => 'uid',
>                                                                               
>               'EmailAddress' => 'mail',
>                                                                               
>               'Organization' => 'o',
>                                                                               
>               'RealName' => 'cn',
>                                                                               
>               'ExternalAuthId' => 'uid',
>                                                                               
>               'Gecos' => 'gecos',
>                                                                               
>               'WorkPhone' => 'telephoneNumber',
>                                                                               
>               'Address1' => 'ou',
>                                                                               
>               'City' => 'l',
>                                                                               
>               'State' => 'st',
>                                                                               
>               'Zip' => 'postalCode',
>                                                                               
>               'Country' => 'co'
>                                                                               
>           }
> 
> 
> We happen to have two entries called 'ou' in any entry so this
> doesn't seem to work.
> Is that possible by any kind of ou[0] array syntax?

If Net::LDAP's get_value understands it, it should work.
If Net::LDAP's get_value returns a list for ou, it'll try to get the first 
element.

-kevin

Attachment: pgpjh12c4SvoX.pgp
Description: PGP signature

--------
2011 Training: http://bestpractical.com/services/training.html

Reply via email to