Author Topic: Password plugin and multidomain  (Read 1257 times)

Offline pupu

  • Newbie
  • *
  • Posts: 2
Password plugin and multidomain
« on: March 03, 2021, 09:36:46 AM »
Hello,

I have a problem with password plugin 5.1 in Roundcube 1.4.9. I have multidomain setup, my users reside in LDAP. I want to allow them to change their password, but password plugin doesn't seem to be active at all. When I check my LDAP server logs, I can see my test user log in, but no activity when I try to change password... What am I missing?

I have:

[root@microhactar config]# grep -v '^\/\/' microhactar.pupu.cz.inc.php
<?php

/* Local configuration for Roundcube Webmail */

$config['db_dsnw'] = 'mysql://roundcubeuser:mypass@localhost/roundcube';

$config['db_prefix'] = 'microhactar';

$config['default_host'] = 'localhost';

$config['smtp_port'] = 25;

$config['support_url'] = '';

$config['des_key'] = '...key...';

$config['plugins'] = array('filesystem_attachments', 'help', 'managesieve', 'markasjunk', 'newmail_notifier', 'password', 'subscriptions_option', 'userinfo', 'virtuser_file', 'zipdownload');

$config['username_domain'] = 'pupu.cz';

-----------------------------

some interesting lines from ../plugins/password/microhactar.pupu.cz.inc.php:
<?php

$config['password_driver'] = 'ldap_simple';

$config['password_confirm_current'] = true;


$config['password_hosts'] = null;

$config['password_force_save'] = false;

$config['password_force_new_user'] = false;

$config['password_algorithm'] = 'ssha';

$config['password_algorithm_prefix'] = '';

$config['password_disabled'] = false;

$config['password_username_format'] = '%u';


$config['password_ldap_host'] = 'localhost';

$config['password_ldap_port'] = '389';

$config['password_ldap_starttls'] = false;

$config['password_ldap_version'] = '3';

$config['password_ldap_basedn'] = 'ou=Mail,dc=pupu,dc=cz';

$config['password_ldap_method'] = 'admin';

$config['password_ldap_adminDN'] = 'cn=mailAccountReader,dc=pupu,dc=cz';

$config['password_ldap_adminPW'] = 'adminpass';


$config['password_ldap_searchDN'] = 'cn=mailAccountReader,dc=pupu,dc=cz';

$config['password_ldap_searchPW'] = 'adminpass';

$config['password_ldap_search_base'] = 'ou=Mail,dc=pupu,dc=cz';

$config['password_ldap_search_filter'] = '(maildrop=%login)';

$config['password_ldap_encodage'] = 'default';

$config['password_ldap_pwattr'] = 'userPassword';

$config['password_ldap_force_replace'] = true;

$config['password_ldap_lchattr'] = '';

$config['password_ldap_samba_pwattr'] = '';

$config['password_ldap_samba_lchattr'] = '';


$config['password_ldap_ppolicy_cmd'] = 'change_ldap_pass.pl';

$config['password_ldap_ppolicy_uri'] = 'ldap://localhost/';

$config['password_ldap_ppolicy_basedn'] = 'dc=example,dc=com';

$config['password_ldap_ppolicy_searchDN'] = 'cn=someuser,dc=example,dc=com';

$config['password_ldap_ppolicy_searchPW'] = 'secret';

$config['password_ldap_ppolicy_search_filter'] = '(uid=%login)';

$config['password_ldap_ppolicy_cafile'] = '/etc/ssl/cacert.crt';


Thanks a lot!
P.U.

Offline pupu

  • Newbie
  • *
  • Posts: 2
Re: Password plugin and multidomain
« Reply #1 on: March 04, 2021, 11:56:54 AM »
Never mind, I've solved it another way. It doesn't work the way I've written in the original post... Maybe it could work by creating differently named 'instances' of password plugin... but I am pretty happy with the solution I have (different LDAP tree hierarchy and modified LDAP filters).

P.U.