Question about ICE method

Ice/DBus, Web-Interfaces, Management tools

Question about ICE method

Postby emik0 » Wed Oct 01, 2014 6:19 pm

Hello everyone!

I'd like to know why Ice method "addUserToGroup" is temporary and where is permanent alternative.

Example:

User registers on forum, website, etc etc ... web.
Web scripts add this user to some "plus" group via Ice interface so he can enter channels where only this group is allowed.

And, also, this method seems to be broken, since if move user to channel owned by "plus" and make addUserToGroup (x, session, "plus"), user can't speak or do anything.

Am i missing something? Please help and thanks in advance!

P.S. Mumble client 1.3.0, murmur 1.2.8 (download links for 1.3.0 still dead).
emik0
 
Posts: 6
Joined: Mon Sep 29, 2014 1:20 pm

Re: Question about ICE method

Postby hacst » Wed Oct 01, 2014 7:37 pm

Unless you want this to be real-time you might want to look into authenticators instead. We already have sample authenticators for popular forums like phpbb and smf.
hacst
Team member
Team member
 
Posts: 339
Joined: Wed Sep 23, 2009 4:28 pm

Re: Question about ICE method

Postby emik0 » Thu Oct 02, 2014 6:37 am

Yeah, thanks, saw them. Gona check what is it they're using.
emik0
 
Posts: 6
Joined: Mon Sep 29, 2014 1:20 pm

Re: Question about ICE method

Postby fwaggle » Fri Oct 03, 2014 7:04 am

If I recall correctly, getACL() and setACL() are permanent. It involves downloading the ACLs which includes groups, massaging the group membership you want into the groups object (which IIRC is a tree of objects), then pushing it back to the server with setACL().

The format of these functions and the objects they use varies depending on what language you're using - I think they're much easier to understand in for example Python than they are in PHP. It's mostly Ice's fault.

Also, I think the issue where the user isn't in the group is because the permissions aren't updated until the user changes channels again - if memory serves, you can reproduce this using the built in ACL editor. Move a user in, they're suppressed, add them to a group and they won't automatically be unsuppressed. I would imagine that's to avoid the operation being expensive on big and complicated servers, and it's trivially avoided - add the user to the group first then move the user in.

It sounds like you probably want an Authenticator though.
Full disclosure: I run a semi-commercial Mumble host, and my opinions do not reflect the opinions of the Mumble project.
Avatar is stolen from here
User avatar
fwaggle
Team member
Team member
 
Posts: 212
Joined: Tue Oct 06, 2009 10:40 pm
Location: Australia

Re: Question about ICE method

Postby emik0 » Fri Oct 03, 2014 11:38 am

Thanks for reply! Truing with python now, ice+php too complicated install.

Also getting frustrated about inability to use "unregisterUser(x)" where x = id of offline user.

its just insaneeee)
emik0
 
Posts: 6
Joined: Mon Sep 29, 2014 1:20 pm

Re: Question about ICE method

Postby emik0 » Fri Oct 03, 2014 11:48 am

Ok, sorry, my bad. Got it working.

Just was unregistering after looking in online.
emik0
 
Posts: 6
Joined: Mon Sep 29, 2014 1:20 pm


Return to Scripting

Who is online

Users browsing this forum: No registered users and 3 guests

cron