Hi,
I've been lurking on the list for a while, reading some interesting conversations :) But now I have a question, after having used roundcube for a bit now.
After initial install, I could log into the app with a valid mailserver user, however, I tried logging in later using a different account, and this failed. I added that account to the users table in mysql, which fixed the problem; I could log in the other account after that.
Now my plan is to use this for multiple virtually hosted domains, with each domain having probably a max of 10 seperate mail accounts. Do I need to add every single one of them in the users table? For me, this is unneccessary and unwanted extra administration of the domains, where I think that every valid mail account on the mailserver should simply be allowed access, given that the proper username/pass/domain is supplied. Am I wrong in thinking this? Or did I just miss something obvious?
For the rest, great little app, glad I found it before I decided to go play with that Zimbra loaded stuff... :)
Regards,
Michiel Oosterling
There is a line in the main.inc.php that deals with this. Just set $rcmail_config['auto_create_user'] to TRUE and it will auto create the users instead of you having to add them.
Rob S.
Michiel Oosterling wrote:
Hi,
I've been lurking on the list for a while, reading some interesting conversations :) But now I have a question, after having used roundcube for a bit now.
After initial install, I could log into the app with a valid mailserver user, however, I tried logging in later using a different account, and this failed. I added that account to the users table in mysql, which fixed the problem; I could log in the other account after that.
Now my plan is to use this for multiple virtually hosted domains, with each domain having probably a max of 10 seperate mail accounts. Do I need to add every single one of them in the users table? For me, this is unneccessary and unwanted extra administration of the domains, where I think that every valid mail account on the mailserver should simply be allowed access, given that the proper username/pass/domain is supplied. Am I wrong in thinking this? Or did I just miss something obvious?
For the rest, great little app, glad I found it before I decided to go play with that Zimbra loaded stuff... :)
Regards,
Michiel Oosterling
!DSPAM:43697e2a9993151528953!
Question in regards to using auto-create. Will it only create the users in the SQL table that successfully login against the IMAP server? Or will there be extraeneous users created if say someone tried logging in as "johndoe" instead of "jdoe". (Would there be an auto created user for both johndoe and jdoe in the SQL table?)
Kevin L.
Rob Smith wrote:
There is a line in the main.inc.php that deals with this. Just set $rcmail_config['auto_create_user'] to TRUE and it will auto create the users instead of you having to add them.
Rob S.
Michiel Oosterling wrote:
Hi, I've been lurking on the list for a while, reading some interesting conversations :) But now I have a question, after having used roundcube for a bit now.
After initial install, I could log into the app with a valid mailserver user, however, I tried logging in later using a different account, and this failed. I added that account to the users table in mysql, which fixed the problem; I could log in the other account after that.
Now my plan is to use this for multiple virtually hosted domains, with each domain having probably a max of 10 seperate mail accounts. Do I need to add every single one of them in the users table? For me, this is unneccessary and unwanted extra administration of the domains, where I think that every valid mail account on the mailserver should simply be allowed access, given that the proper username/pass/domain is supplied. Am I wrong in thinking this? Or did I just miss something obvious?
For the rest, great little app, glad I found it before I decided to go play with that Zimbra loaded stuff... :)
Regards,
Michiel Oosterling
!DSPAM:43697e2a9993151528953!
hi kevin,
have a look at rcmail_login in program/include/main.inc, 303-305:
// exit if IMAP login failed if (!($imap_login = $IMAP->connect($host, $user, $pass, $imap_port, $imap_ssl))) return FALSE;
if the imap login fails, then the function exits before creating a new user.
cheers justin
Kevin Landers wrote:
Question in regards to using auto-create. Will it only create the users in the SQL table that successfully login against the IMAP server? Or will there be extraeneous users created if say someone tried logging in as "johndoe" instead of "jdoe". (Would there be an auto created user for both johndoe and jdoe in the SQL table?)
Ah, very nice.
Sorry, I haven't checked very far in the code for much. Thanks for the info, makes me feel a lot more comfortable about adding users.
Now, my only concern is figuring out how to remove them automatically if I remove them from my mail server. I am sure I can come up with something for that though.
Thanks again! Kevin L.
Justin Randell wrote:
hi kevin,
have a look at rcmail_login in program/include/main.inc, 303-305:
// exit if IMAP login failed if (!($imap_login = $IMAP->connect($host, $user, $pass, $imap_port, $imap_ssl))) return FALSE;
if the imap login fails, then the function exits before creating a new user.
cheers justin
Kevin Landers wrote:
Question in regards to using auto-create. Will it only create the users in the SQL table that successfully login against the IMAP server? Or will there be extraeneous users created if say someone tried logging in as "johndoe" instead of "jdoe". (Would there be an auto created user for both johndoe and jdoe in the SQL table?)
no problems.
want to write an admin interface callable via xmlrpc or some such mechanism ;-) ?
Kevin Landers wrote:
Ah, very nice.
Sorry, I haven't checked very far in the code for much. Thanks for the info, makes me feel a lot more comfortable about adding users.
Now, my only concern is figuring out how to remove them automatically if I remove them from my mail server. I am sure I can come up with something for that though.
Thanks again! Kevin L.