Community discussions

MikroTik App
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 1:32 pm

Hi there, I'm looking to provide users with some more details, and I was hoping someone could fill me in on what can be done, if this can be done, can you put down the HTML coding.

User sign up:
Capture more details such as - Name, number, location (as can be seen in UM "private information"

Display on the statatics page:
Till Time (time left on the duration of the account.
Download in Mb's rather than bytes
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 1:45 pm

This wiki has what you can use as variables in the hotspot html pages:
http://wiki.mikrotik.com/wiki/Manual:Cu ... ng_Hotspot
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 3:36 pm

Sorry it this seems stupid, but I don't see the commands I need?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 3:52 pm

The "private info" in UM is not sent to the router, so it is not available on the html pages. :(
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 3:56 pm

Is there anyway to display how much time the user has before their account expires - thats also not listed :(
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 3:59 pm

That is on the standard status.html page.
$(session-time-left)
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:06 pm

Thanks for that - but for some reason when I goto hotspot/status.html and look at the page, I cannot see that field, (including in the HTML resulting page).
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:10 pm

Are you certain you have a $(session-time-left)? When I connect with my username, I do not have a session-time-left. Only clients that purchase time have that entry. If there is no value for $(session-time-left), it is an empty string.
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:16 pm

Hiya,

Thanks for all your help - I've attached a screen shot what I'm seeing. As you can see the table is missing details to what in the html code.
Untitled.png
You do not have the required permissions to view the files attached to this post.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:23 pm

Does the user 'test3' have a time limit assigned? In your status.html code, do you see $(session-time-left)? If you look at that code There is a line like this:
$(if session-time-left)
(lines of code)
$(endif)
If there is no session-time-left, it does not display the stuff in (lines of code).
Last edited by SurferTim on Sun Nov 21, 2010 5:27 pm, edited 1 time in total.
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:24 pm

Hi there,
Yes test3 has 24 hours attached to the account. But on the status.html I don't see that line (on the resulting html page), on the pre-result I see it)
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:29 pm

I've been looking into hotspot/user - and in the status field there, under summary it shows:

Till Time: Unknown
Time Left: 0s

Profile -
Valid until 11/21/2010 - 16.18 = 24 hours from start

Sessions
All fields reporting correctly.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:35 pm

On the status.html page, put $(session-time-left) near the bottom of the page. See if it shows anything. All my entries (and it looks like yours too) are in a table. I have this:
$(if session-time-left)
   <tr><td align="right">connected/left:</td><td>$(uptime) / $(session-time-left)</td></tr>
$(else)
   <tr><td align="right">connected:</td><td>$(uptime)</td></tr>
$(endif)
If there is no session-time-left, it is not displayed, and that is what yours is doing (the 'else').
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:39 pm

Its not showing anything on the status page;
Ok so taking that in mind, how would I go about getting this displayed (because in the information is on radius server (UM, on another router).

Thanks
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:44 pm

Its not showing anything on the status page; (snip)
Yes it is! You posted a screen shot a few posts ago. It is showing the ip and the time connected. But since it shows "connected", and not "connected/left", that means no session limit was received from the radius server at the router.
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:49 pm

There is a session limit in place - 24 hours. For some reason this is not being reflected in the output.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:51 pm

That seems to be the challenge. It is not being sent to the router from User Manager. Where are you entering the 24hr limit in User Manager?
ADD: Enable logging for radius
/system logging
add topics=radius action=memory
Then try again and check the log.
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 5:54 pm

This is the entered here: UM/userman > profiles > Validity = 24 hours.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 6:09 pm

...and the log from the login said what? Enable verbose logging for radius as I suggested above, try the login again, then check the log. If you have any questions about the log entries, please post that section of the log and I will try to help.
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 6:12 pm

Sorry for the delay I was exporting the log - still no change; but here is the log:
16:07:53 radius,debug,packet     Acct-Input-Gigawords = 0 
16:07:53 radius,debug,packet     Acct-Output-Gigawords = 0 
16:07:53 radius,debug,packet     Acct-Input-Packets = 1237 
16:07:53 radius,debug,packet     Acct-Output-Packets = 464 
16:07:53 radius,debug,packet     Acct-Session-Time = 1801 
16:07:53 radius,debug,packet     NAS-Identifier = "ms64.Domain.co.uk" 
16:07:53 radius,debug,packet     NAS-IP-Address = HOTSPOT IP (ext) 
16:07:53 radius,debug,packet     Acct-Delay-Time = 0 
16:07:53 radius,debug,packet received Accounting-Response with id 214 from 86.7.2
38.217:1813 
16:07:53 radius,debug,packet     Signature = 0x81e5a183e64c2a01095edf3a67392343 
16:07:53 radius,debug received reply for 3f:217 
16:07:53 radius,debug request 3f:217 processed 
16:08:02 radius,debug new request 3f:218 code=Accounting-Request service=hotspot 
called-id=hotspot1 
16:08:02 radius,debug sending 3f:218 to remote IP7:1813 
16:08:02 radius,debug,packet sending Accounting-Request with id 215 to RADIUS IP
17:1813 
16:08:02 radius,debug,packet     Signature = 0xb027847190c8e76090d70dc3dcf3363e 
16:08:02 radius,debug,packet     Acct-Status-Type = 3 
16:08:02 radius,debug,packet     NAS-Port-Type = 19 
16:08:02 radius,debug,packet     Calling-Station-Id = "00:08:A1:93:0D:6C" 
16:08:02 radius,debug,packet     Called-Station-Id = "hotspot1" 
16:08:02 radius,debug,packet     NAS-Port-Id = "bridge" 
16:08:02 radius,debug,packet     User-Name = "test1" 
16:08:02 radius,debug,packet     NAS-Port = 2156920836 
16:08:02 radius,debug,packet     Acct-Session-Id = "80900004" 
16:08:02 radius,debug,packet     Framed-IP-Address = 10.5.50.254 
16:08:02 radius,debug,packet     MT-Host-IP = 10.5.50.254 
16:08:02 radius,debug,packet     Event-Timestamp = 1290355682 
16:08:02 radius,debug,packet     Acct-Input-Octets = 187152 
16:08:02 radius,debug,packet     Acct-Output-Octets = 136854 
16:08:02 radius,debug,packet     Acct-Input-Gigawords = 0 
16:08:02 radius,debug,packet     Acct-Output-Gigawords = 0 
16:08:02 radius,debug,packet     Acct-Input-Packets = 1244 
16:08:02 radius,debug,packet     Acct-Output-Packets = 471 
16:08:02 radius,debug,packet     Acct-Session-Time = 1810 
16:08:02 radius,debug,packet     NAS-Identifier = "ms64.Domain.co.uk" 
16:08:02 radius,debug,packet     NAS-IP-Address = HOTSPOT IP (ext) 
16:08:02 radius,debug,packet     Acct-Delay-Time = 0 
16:08:02 radius,debug,packet received Accounting-Response with id 215 from 86.7.2
38.217:1813 
16:08:02 radius,debug,packet     Signature = 0x4ad80d5f09a1b7e3be0bfc011c2985fb 
16:08:02 radius,debug received reply for 3f:218 
16:08:02 radius,debug request 3f:218 processed 
16:08:12 radius,debug new request 3f:219 code=Accounting-Request service=hotspot 
called-id=hotspot1 
16:08:12 radius,debug sending 3f:219 to remote IP7:1813 
16:08:12 radius,debug,packet sending Accounting-Request with id 216 to RADIUS IP
17:1813 
16:08:12 radius,debug,packet     Signature = 0x987dddce19814dec7989f27fbb4d9edf 
16:08:12 radius,debug,packet     Acct-Status-Type = 3 
16:08:12 radius,debug,packet     NAS-Port-Type = 19 
16:08:12 radius,debug,packet     Calling-Station-Id = "00:08:A1:93:0D:6C" 
16:08:12 radius,debug,packet     Called-Station-Id = "hotspot1" 
16:08:12 radius,debug,packet     NAS-Port-Id = "bridge" 
16:08:12 radius,debug,packet     User-Name = "test1" 
16:08:12 radius,debug,packet     NAS-Port = 2156920836 
16:08:12 radius,debug,packet     Acct-Session-Id = "80900004" 
16:08:12 radius,debug,packet     Framed-IP-Address = 10.5.50.254 
16:08:12 radius,debug,packet     MT-Host-IP = 10.5.50.254 
16:08:12 radius,debug,packet     Event-Timestamp = 1290355692 
16:08:12 radius,debug,packet     Acct-Input-Octets = 189058 
16:08:12 radius,debug,packet     Acct-Output-Octets = 139751 
16:08:12 radius,debug,packet     Acct-Input-Gigawords = 0 
16:08:12 radius,debug,packet     Acct-Output-Gigawords = 0 
16:08:12 radius,debug,packet     Acct-Input-Packets = 1262 
16:08:12 radius,debug,packet     Acct-Output-Packets = 478 
16:08:12 radius,debug,packet     Acct-Session-Time = 1820 
16:08:12 radius,debug,packet     NAS-Identifier = "ms64.Domain.co.uk" 
16:08:12 radius,debug,packet     NAS-IP-Address = HOTSPOT IP (ext) 
16:08:12 radius,debug,packet     Acct-Delay-Time = 0 
16:08:12 radius,debug,packet received Accounting-Response with id 216 from 86.7.2
38.217:1813 
16:08:12 radius,debug,packet     Signature = 0xab8305f1c07f34169f7bdc5306ec52c6 
16:08:12 radius,debug received reply for 3f:219 
16:08:12 radius,debug request 3f:219 processed 
16:08:21 system,info,account user username logged in from remote IP7 via tel
net 
16:08:23 radius,debug new request 3f:21a code=Accounting-Request service=hotspot 
called-id=hotspot1 
16:08:23 radius,debug sending 3f:21a to remote IP7:1813 
16:08:23 radius,debug,packet sending Accounting-Request with id 217 to RADIUS IP
17:1813 
16:08:23 radius,debug,packet     Signature = 0x85197ca7a194f9659c9b602d9c11d6ed 
16:08:23 radius,debug,packet     Acct-Status-Type = 3 
16:08:23 radius,debug,packet     NAS-Port-Type = 19 
16:08:23 radius,debug,packet     Calling-Station-Id = "00:08:A1:93:0D:6C" 
16:08:23 radius,debug,packet     Called-Station-Id = "hotspot1" 
16:08:23 radius,debug,packet     NAS-Port-Id = "bridge" 
16:08:23 radius,debug,packet     User-Name = "test1" 
16:08:23 radius,debug,packet     NAS-Port = 2156920836 
16:08:23 radius,debug,packet     Acct-Session-Id = "80900004" 
16:08:23 radius,debug,packet     Framed-IP-Address = 10.5.50.254 
16:08:23 radius,debug,packet     MT-Host-IP = 10.5.50.254 
16:08:23 radius,debug,packet     Event-Timestamp = 1290355703 
16:08:23 radius,debug,packet     Acct-Input-Octets = 189446 
16:08:23 radius,debug,packet     Acct-Output-Octets = 139913 
16:08:23 radius,debug,packet     Acct-Input-Gigawords = 0 
16:08:23 radius,debug,packet     Acct-Output-Gigawords = 0 
16:08:23 radius,debug,packet     Acct-Input-Packets = 1269 
16:08:23 radius,debug,packet     Acct-Output-Packets = 481 
16:08:23 radius,debug,packet     Acct-Session-Time = 1831 
16:08:23 radius,debug,packet     NAS-Identifier = "ms64.Domain.co.uk" 
16:08:23 radius,debug,packet     NAS-IP-Address = HOTSPOT IP (ext) 
16:08:23 radius,debug,packet     Acct-Delay-Time = 0 
16:08:23 radius,debug,packet received Accounting-Response with id 217 from 86.7.2
38.217:1813 
16:08:23 radius,debug,packet     Signature = 0x871644fa6cfd64e8d86175af2625cba6 
16:08:23 radius,debug received reply for 3f:21a 
16:08:23 radius,debug request 3f:21a processed 

[username@ms64.Domain.co.uk] > 

 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 7:07 pm

The log does not show the login, but it does show user 'test1' logged in and sending accounting data to User manager. I really need to see the part of the log after "received Access-Accept". That is where the session limit time will be sent.
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 7:42 pm

16:21:15 hotspot,info,debug test1 (10.5.50.254): trying to log in by https 
16:21:15 radius,debug new request 3f:25f code=Access-Request service=hotspot call
ed-id=hotspot1 
16:21:15 radius,debug sending 3f:25f to RADIUS IP:1812 
16:21:15 radius,debug,packet sending Access-Request with id 29 to RADIUS IP:18
12 
16:21:15 radius,debug,packet     Signature = 0x4e6afb6625e45d32519b500d431bd7b7 
16:21:15 radius,debug,packet     NAS-Port-Type = 19 
16:21:15 radius,debug,packet     Calling-Station-Id = "00:08:A1:93:0D:6C" 
16:21:15 radius,debug,packet     Called-Station-Id = "hotspot1" 
16:21:15 radius,debug,packet     NAS-Port-Id = "bridge" 
16:21:15 radius,debug,packet     User-Name = "test1" 
16:21:15 radius,debug,packet     NAS-Port = 2156920840 
16:21:15 radius,debug,packet     Acct-Session-Id = "80900008" 
16:21:15 radius,debug,packet     Framed-IP-Address = 10.5.50.254 
16:21:15 radius,debug,packet     MT-Host-IP = 10.5.50.254 
16:21:15 radius,debug,packet     User-Password = 0x3132333435 
16:21:15 radius,debug,packet     Service-Type = 1 
16:21:15 radius,debug,packet     WISPr-Logoff-URL = "http://10.5.50.1/Index_files
/logout" 
16:21:15 radius,debug,packet     NAS-Identifier = "ms64.domain.co.uk" 
16:21:15 radius,debug,packet     NAS-IP-Address = ms64.domain.co.uk 
16:21:15 radius,debug,packet received Access-Accept with id 29 from RADIUS IP:
1812 
16:21:15 radius,debug,packet     Signature = 0xb327a4c50769acc717028df749345aa4 
16:21:15 radius,debug,packet     Acct-Interim-Interval = 60 
16:21:15 radius,debug received reply for 3f:25f 
16:21:15 hotspot,account,info,debug test1 (10.5.50.254): logged in 
16:21:15 radius,debug new request 3f:261 code=Accounting-Request service=hotspot 
called-id=hotspot1 
16:21:15 radius,debug sending 3f:261 to RADIUS IP:1813 
16:21:15 radius,debug,packet sending Accounting-Request with id 30 to 86.7.238.21
7:1813 
16:21:15 radius,debug,packet     Signature = 0x63431983a0c77ea6d9d00369956813fa 
16:21:15 radius,debug,packet     Acct-Status-Type = 1 
16:21:15 radius,debug,packet     NAS-Port-Type = 19 
16:21:15 radius,debug,packet     Calling-Station-Id = "00:08:A1:93:0D:6C" 
16:21:15 radius,debug,packet     Called-Station-Id = "hotspot1" 
16:21:15 radius,debug,packet     NAS-Port-Id = "bridge" 
16:21:15 radius,debug,packet     User-Name = "test1" 
16:21:15 radius,debug,packet     NAS-Port = 2156920840 
16:21:15 radius,debug,packet     Acct-Session-Id = "80900008" 
16:21:15 radius,debug,packet     Framed-IP-Address = 10.5.50.254 
16:21:15 radius,debug,packet     MT-Host-IP = 10.5.50.254 
16:21:15 radius,debug,packet     Event-Timestamp = 1290356475 
16:21:15 radius,debug,packet     NAS-Identifier = "ms64.domain.co.uk" 
16:21:15 radius,debug,packet     NAS-IP-Address = ms64.domain.co.uk 
16:21:15 radius,debug,packet     Acct-Delay-Time = 0 
16:21:15 radius,debug,packet received Accounting-Response with id 30 from 86.7.23
8.217:1813 
16:21:15 radius,debug,packet     Signature = 0x5cfa059f353be566ac4d4c0ca7fbe0cf 
16:21:15 radius,debug received reply for 3f:261 
16:21:15 radius,debug request 3f:261 processed 
16:21:18 system,info log rule changed by admin 
16:21:21 system,info,account user admin logged in from RADIUS IP via tel
net 

[admin@ms64.domain.co.uk] > 
Here you go this should be what you need. Btw test1, is also on a 24 hour period.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 7:46 pm

The only attribute sent for that user is a one minute accounting interval (recommended is 600 or ten minutes). No WISPr-Session-Terminate-Time or anything like that. User 'test1' has no $(session-time-left) because there is no expiration sent by User Manager. Check your settings for user 'test1'.
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 7:56 pm

Its set, under limitations for 24 hours.
Untitled.png
You do not have the required permissions to view the files attached to this post.
Last edited by H2009 on Sun Nov 21, 2010 8:13 pm, edited 1 time in total.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 8:08 pm

Everything you showed me in that user profile was set to 'unlimited' including 'uptime-limit'.
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 8:18 pm

But if that was the case, then why do the user cut out after 24 hours?
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 8:24 pm

This is all that was sent to the router. No group, no time limit. Just an accounting interval of one minute. If the user is being disconnected, it is not due to the RADIUS server response.
16:21:15 radius,debug,packet received Access-Accept with id 29 from RADIUS IP:1812
16:21:15 radius,debug,packet Signature = 0xb327a4c50769acc717028df749345aa4
16:21:15 radius,debug,packet Acct-Interim-Interval = 60
16:21:15 radius,debug received reply for 3f:25f
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 8:29 pm

Ok - so, what areas need to be set inorder to get this working correctly? Because I was under the impression that this was how it was meant to be setup.

Thanks
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 8:38 pm

It seems that may be how profiles was intended to work. I have V3.30 User Manager, and it has no "profile". It uses Credits. I went to the wiki for User manager, and the page that described profiles (and their use) has been deleted. ??
http://wiki.mikrotik.com/wiki/User_Manager
Note the link to "profiles" is red. Now I don't know what to tell you.
 
H2009
Member Candidate
Member Candidate
Topic Author
Posts: 137
Joined: Tue Oct 26, 2010 8:46 am

Re: Anyway to capture the following details from/to userman?

Sun Nov 21, 2010 8:57 pm

Ah ok. I thought I covered everything I could. I guess it's just another bug in that case.
Thank you for your help. Karma coming your way.

Who is online

Users browsing this forum: No registered users and 4 guests