Author Topic: new user identity with AD  (Read 74 times)

Offline Lestef95

  • Newbie
  • *
  • Posts: 1
new user identity with AD
« on: November 16, 2022, 08:33:35 AM »
Hi everyone,

I would like setup RC with new_user_identity to update identity (mail and name) from Active Directory.
Can you help me please


Sorry for my poor english > i m french

config/config.inc.php

$config['ldap_public'] = array (
  'MyAdLdap' =>
  array (
    'name' => 'company',
    'hosts' =>
    array (
      0 => '182.31.22.58',
    ),
    'sizelimit' => 10000,
    'port' => 3268,
    'use_tls' => false,
    'user_specific' => false,
    'base_dn' => 'ou=4-UTILISATEURS-ADM,dc=company,dc=fr',
    'bind_dn' => 'XXXXXXX',
    'bind_pass' => 'YYYYYYYYYYY',
    'writable' => false,
    'ldap_version' => 3,
    'search_fields' =>
    array (
      0 => 'mail',
      1 => 'cn',
      2 => 'mailNickname',
    ),
    'fieldmap' =>
    array (
      'name' => 'cn',
      'email' => 'mail',
      'surname' => 'givenName',
      'firstname' => 'sn',
    ),
    'sort' => 'givenName',
    'scope' => 'sub',
    'filter' => '(&(mail=*)(|(&(objectClass=user)(!(objectClass=computer)))(objectClass=group)))',
    'global_search' => true,
    'fuzzy_search' => true,
    'vlv' => false,
  ),
);

LDAP adressbook work fine

plugins/new_user_identity/config.inc.php
$config['new_user_identity_addressbook'] = 'company';
$config['new_user_identity_match'] = 'cn';
$config['new_user_identity_onlogin'] = false;

What's wrong !

Offline alec

  • Hero Member
  • *****
  • Posts: 1,320
Re: new user identity with AD
« Reply #1 on: November 16, 2022, 01:23:32 PM »
$config['new_user_identity_addressbook'] = 'company';
It should be the key not name, i.e. 'MyAdLdap'
Quote
$config['new_user_identity_match'] = 'cn';
This probably should be 'mail'.