[rt-users] LDAP attr_match vs multiple values

Kevin Falcone falcone at bestpractical.com
Mon Jul 25 10:20:44 EDT 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20110725/de7ed641/attachment.sig>


More information about the rt-users mailing list