Roundcube Community Forum

 

Register Plugin: "Failed to create user" Error

Started by megadeth23, December 08, 2013, 11:43:26 AM

Previous topic - Next topic

megadeth23

Hello all,
This is my issue. I am trying to go online with a new mail server for my site. I am using iredmail v0.2.2 (LDAP). The server itself is working fine. I also have roundcube version 0.9.5 which is also working fine. I have installed plug-in Manager and many plug-ins along with it (such as pwtools, calendar amrkasjunk2, contactus, etc...) Every plug-in I have installed is working except the register plug-in. I have been trying to configure this plug-in for awhile and have yet to get it working. I do not want to bring my mail server online until I know for sure this plug-in works. It is one feature that I feel is a necessity as I want my users to be able to create their own accounts without my interaction. 

This is what I currently have in my configuration:

/register/config.inc.php


<?php

/* driver */
$rcmail_config['register_driver'] = 'postfixadmin_db';

/* here go your domains where users can sign up */

$rcmail_config['webadddoms']['default'][] = "thebrownefamily.net";
$rcmail_config['webadddoms']['other'][] = "mail.thebrownefamily.net";

/* Disallowed accounts */
$rcmail_config['disallowedaccounts'] = array(
=> 'postmaster',
=> 'abuse',
=> 'webmaster',
=> 'payment',
=> 'billing',
=> 'noreply',
);

/* Password min length */
$rcmail_config['password_min_length'] = 8;

?>



/register/drivers/postfixadmin_db/config.ini.php


<?php

/* Postfix database settings */
$rcmail_config['db_dsnw_postfix'] = 'mysql://vmailadmin:***password***@localhost/vmail?new_link=true';

/* Mailbox Limit (MB, 0 = unlimited) */
$rcmail_config['mailbox_limit'] = '100';

/* Password encryption (crypt | md5) */
$rcmail_config['pw_encryption'] = 'crypt';

?>



Can someone tell me what I am doing wrong? Any help you could provide would be great
Thanks

megadeth23

So I figured out what my issue was. After extensive searching on the internet, I turns out that is was how I installed iredmail that caused the problem. I used the default setting of ldap for back-end database connection. Apparently, for this plugin to work, Mysql must be selected as the back end. luckily for me, my server was not yet available to the public. However, I can see this being an issue for a server that was already made public before they knew about this plugin.

So basically what i did was create a new virtual server and gave iredmail a fresh install on it making sure to select Mysql as the back-end. The plugin is now able to connect to the database and create the users. I now have a new issue now, apparently the plugin is not adding 2 entries to the database. but I will open a new forum for this latest issue