emik0 Posted October 1, 2014 Share Posted October 1, 2014 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). Quote Link to comment Share on other sites More sharing options...
Administrators hacst Posted October 1, 2014 Administrators Share Posted October 1, 2014 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. Quote Link to comment Share on other sites More sharing options...
emik0 Posted October 2, 2014 Author Share Posted October 2, 2014 Yeah, thanks, saw them. Gona check what is it they're using. Quote Link to comment Share on other sites More sharing options...
Moderators fwaggle Posted October 3, 2014 Moderators Share Posted October 3, 2014 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. Quote Full disclosure: I used to run a commercial Mumble host, and my opinions do not reflect the opinions of the Mumble project. Avatar is stolen from here Link to comment Share on other sites More sharing options...
emik0 Posted October 3, 2014 Author Share Posted October 3, 2014 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) Quote Link to comment Share on other sites More sharing options...
emik0 Posted October 3, 2014 Author Share Posted October 3, 2014 Ok, sorry, my bad. Got it working.Just was unregistering after looking in online. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.