Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: Lestef95 on November 16, 2022, 08:33:35 AM

Title: new user identity with AD
Post by: Lestef95 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 !
Title: Re: new user identity with AD
Post by: alec 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'.