Advertisement
3li0

RT_SiteConfig_RT_AUTHEN

Apr 13th, 2011
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.51 KB | None | 0 0
  1.    Set($ExternalAuthPriority,           [ 'My_LDAP' ] );
  2.    Set($ExternalInfoPriority,           [ 'My_LDAP' ] );
  3.    Set($ExternalServiceUsesSSLorTLS,    0);
  4.    Set($AutoCreateNonExternalUsers,     0);
  5.  
  6.    Set($ExternalSettings,      {
  7.                         'My_LDAP'               =>  {
  8.  
  9.                         'type'                  =>  'ldap',
  10.                         'server'                =>  'IP of DC',
  11.                         'user'                  =>  'our_domain\our_user', #We were using 'cn=user,cn=RT-OU,dc=domain'
  12.                         'pass'                  =>  'our_user_passwd',
  13.                         'base'                  =>  'dc=ourdomain,dc=com',
  14.  
  15.                         'filter'                =>  '(&(ObjectCategory=User)(ObjectClass=Person))',
  16.                         'd_filter'              =>  '(userAccountControl:1.2.840.113556.1.4.803:=2)',
  17.  
  18.                         'tls'                   =>  0,
  19.    #                    'ssl_version'           =>  3,
  20.  
  21.                         'net_ldap_args'         => [    version =>  3           ],
  22.                        # 'group'                 =>  'cn=RT-Sec-Grp,ou=RT-OU,dc=our_domain,dc=com', <-- commented out this line, we though this may have been the issue
  23.                        # 'group_attr'            =>  'member',
  24.  
  25.                         'attr_match_list'       => [   'Name', 'EmailAddress'   ],
  26.                         'attr_map'              => {   'Name' => 'sAMAccountName',
  27.                                                        'EmailAddress' => 'mail',
  28.                                                        'Organization' => 'physicalDeliveryOfficeName',
  29.                                                        'RealName' => 'cn',
  30.                                                        'ExternalAuthId' => 'sAMAccountName',
  31.                                                        'Gecos' => 'sAMAccountName',
  32.                                                        'WorkPhone' => 'telephoneNumber',
  33.                                                        'Address1' => 'streetAddress',
  34.                                                        'City' => 'l',
  35.                                                        'State' => 'st',
  36.                                                        'Zip' => 'postalCode',
  37.                                                        'Country' => 'co'
  38.                                                    }
  39.                                                    }
  40.                                }
  41.    );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement