Roundcube Community Forum
News and Announcements => General Discussion => Topic started by: marawu on December 22, 2017, 12:22:05 AM
-
Hi, i try setting roundcube 1.3.3. I add address book:
$config['ldap_public']['People'] = array(
'name' => 'Public',
'hosts' => array('ldap.domain.com'),
'ldap_version' => 3,
'port' => 389,
'use_tls' => true,
'user_specific' => false,
'base_dn' => 'ou=People,dc=domain,dc=com',
'bind_dn' => 'uid=dovecot,ou=Users,dc=domain,dc=com',
'bind_pass' => 'Lei?Pe4aiH=i',
'filter' => '(&(objectClass=inetOrgPerson)(!(memberof=cn=Deleted.dept,ou=Groups,dc=domain,dc=com)))',
'fieldmap' => array(
// Roundcube => LDAP:limit
'name' => 'cn',
'surname' => 'sn',
'firstname' => 'givenName',
'jobtitle' => 'title',
'email' => 'mail:*',
'phone:home' => 'homePhone',
'phone:work' => 'telephoneNumber',
'phone:mobile' => 'mobile',
'phone:pager' => 'pager',
'jobtitle' => 'title',
'notes' => 'description',
),
);
So, I enable plugin new_user_identity and add config in config.inc.php:
// The id of the address book to use to automatically set a
// user's full name in their new identity. (This should be an
// string, which refers to the $config['ldap_public'] array.)
$config['new_user_identity_addressbook'] = 'People';
// When automatically setting a user's full name in their
// new identity, match the user's login name against this field.
$config['new_user_identity_match'] = 'mail';
// Determine whether to import user's identities on each login.
// New user identity will be created for each e-mail address
// present in address book, but not assigned to any identity.
$config['new_user_identity_onlogin'] = true;
but, when i login then my identities remain the same. Maybe i do it wrong?
-
Try $config['new_user_identity_match'] = 'email';
-
Try $config['new_user_identity_match'] = 'email';
Hmm...in example is selected uid and i think must selected ldap attribute. I check with email, it don't working
-
Сan anyone help?
-
I check log slapd and I see that plugin search user:
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 fd=19 ACCEPT from IP=192.168.250.141:49190 (IP=0.0.0.0:389)$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=0 EXT oid=1.3.6.1.4.1.1466.20037$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=0 STARTTLS$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=0 RESULT oid= err=0 text=$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 fd=19 TLS established tls_ssf=256 ssf=256$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=1 BIND dn="uid=roundcube,ou=Users,dc=domain,dc=ru" method=128$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=1 BIND dn="uid=roundcube,ou=Users,dc=domain,dc=ru" mech=SIMPLE ssf=0$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=1 RESULT tag=97 err=0 text=$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=2 SRCH base="ou=People,dc=domain,dc=ru" scope=1 deref=0 filter="(&(&(objectClass=inetOrgPerson)(!(memberOf=cn=deleted.dept,ou=groups,dc=domain,dc=ru)))(|(mail=nikita.spitckij@domain.ru)))"$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=2 SRCH attr=cn sn givenname title mail apple-nickname mobile o description objectClass$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 op=3 UNBIND$
Dec 25 18:00:52 ldap03 slapd[612]: conn=1276 fd=19 closed$
but fields in SQL is empty :(
Me need help, please