error whmcs and virtualmin

Hello

I've got error with cookie if i go from whmcs to virtualmin and looking for a solution i've found these:

http://www.linuxquestions.org/questions/linux-newbie-8/auto-login-for-we...

Error

Error - No cookies

Your browser does not support cookies, which are required for this web server to work in session authentication mode

How can i resolve better these error?

Thanks

Daniel Witoszek Arias

Status: 
Active

Comments

Hello

How can i do these : when i do a new hosting virtualmin create an "user" for example if it's awytec.com , then create awytec, thats ok and if i do a second host with awytec.net it's create an user like awytec.net. But how can i do that users always it's awytec.net awytec.com etc...

Thanks

Daniel Witoszek Arias

P.d It's relation with whmcs becouse whmcs take the first user awytec for awytec.com and awytec.net automatically.

Sorry these happen for a conection error 101 by chrome and if i pres f5 rewrite post.

ok now i'was reading in configuration of virtualmin about username and question is what's option i need to choose , becouse the only user that i need to change it's admin user not email ftp user etc..

Thanks

Daniel Witoszek Arias

Hello -- so when an administrative user is created for a new Virtual Server, you always want that user to have the domain name in it's name?

You can set that by going into System Settings -> Virtualmin Configuration -> Defaults for New Domains, and there you can set "Include domain name in usernames" and "Domain name style in username".

Ok thansk and what about Error - No cookies

Your browser does not support cookies, which are required for this web server to work in session authentication mode ?

if i need to update webmin , i loose the code and i need to rewrite again .

Thanks Andreycheck

Try adding the line no_testing_cookie=1 to /etc/webmin/miniserv.conf , and then running /etc/webmin/restart

Hello

I've do it and now cookie test doesn't work so it's resolve but there is problem with these username. With whmcs user can change password and if user it's for example awytec there is no problem but if username is awiyem.net , virtualmin detect it like awiyem with password of awytec.net.If yi change username in administration of whmcs can not resolve these, but change username of virtualmin. I've asked to whmcs and say these ( Copy and paste)

Hi,

WHMCS assigns the username as the full domain name so I'm not sure why you're not seeing the TLD in the username. Their API doesn't even let us specify a username, we only pass the domain name and a password so I don't think there's anyway WHMCS could protect against this.

Regards,

Matt

How can i correct these?

Thanks

Daniel Witoszek Arias

Sounds like you want to configure Virtualmin to always use the full domain name as the username.

This can be done at System Settings -> Virtualmin Configuration -> Defaults for new domains -> Domain name style in username.

Hello

I've do it with another host and it's the same error.Username fail, and automatically not send correct username.It's put domain without tls.

Daniel Witoszek Arias

Could you give us some more details about how the username is being set incorrectly? Is WHMCS choosing the username, or is it being left to Virtualmin to pick a name for the new domain?

Hello

i've do these: 1- register in https://awiyem.es/gescobro ( Program whmcs). 2- " buy" a domain or "buy" a Space without register a new domain. 3- From whmcs generate or read from virtualmin "username" ( the code i can not read , it's encript) and a random password that afetr we can change ( side of user not administration). 4- Problem i think username it's always domain without TLD even if you configured System Settings -> Virtualmin Configuration -> Defaults for new domains -> Domain name style in username.

Thanks

Daniel Witoszek Arias

So the username you're having problems with -- are you having problems with the username created for the Virtualmin Virtual Server, or are you referring to a problem with the username used in WHMCS?

I ran some tests, and found that if "Include domain name in usernames" is set to always, and "Domain name style in username" is set to "Full domain name" -- that the Virtual Server created by Virtualmin does use the full domain name as the username (domain.tld).

However, you said this:

From whmcs generate or read from virtualmin "username"

I'm not sure what you mean there, can you walk us through exactly what you're describing there and how to reproduce it?

Hello

I 've got an error if i attach an image 200 kb so i 'll send you a link.

http://awiyem.es/virtualmin-3.png

i've marked the problem : username it's sticwilayem in WHMCS but in virtualmin it's sticwilayem .com so user ( in these case it's me ) can not login with login to panel.

So i understood that whmcs send username like domain.tld .

Thanks

Daniel Witoszek Arias

Okay, so the username that WHMCS has in it appears incorrect... is it correct in Virtualmin?

That is, if you browse to port 10000 on your server, log in as root, and go into "Edit Virtual Server", it'll show you a field named "Administration username".

Is the username there correctly listed as "domain.tld" and not just "domain"?

Hello

It's correct , username is like domain.tld and not just domain.

Thanks

Okay, what is the ticket number for the WHMCS ticket you opened regarding this?

And what is your email address that's associated with your WHMCS account (it's also your whmcs.com login name)?

I'll contact the folks from WHMCS and see if we can work out what's going on there, but I'll need your ticket number and email address so that they know which issue it is we're trying to fix.

It looks like it is correctly creating the username in Virtualmin, but using the incorrect name in WHMCS. I'll figure out what the problem is there, and let you know what we discover. Thanks!

Thanks!

I opened a ticket with them so that we can work out what's going on.

What you're seeing is likely a bug in either WHMCS or Virtualmin, and would require a code change to fix. So it might take some time to actually get that issue corrected.

In the meantime, you'd probably need to manually set the username within WHMCS.

You can do that by going into View/Search clients, choose the client in question, and then go into Products/Services for that client.

There, you can specify what "username" is associated with the account. You may need to manually set it to "domain.tld".

Hello

I was doing these , change username but values of username it's the same , it's not changed , even you see the correct username. I was triying to do it by mysql and not way. I think but im not sure becouse program its encrypt , so i was reading code by chrome,and it's memoryse username and not pass value domain.tld like username. I was reading these in clientarea.php.

In other point , I will delete in one week the Link.

Thanks

Daniel Witoszek Arias