powered by Jive Software

Add user to MUC

I have written a script that automaticall takes a csv file and builds the xml for the user import that is working great

But now I have tried to write one to automatically make the new users members of a MUC. My script put the users into mucmembers in the database but they dont show up in the list on the user permissions page of the admin.

Any ideas?

I am running wildfire 3.2.2 with mysql.

Jason

Ok Ive figured out that if I restart the server it will add the jid’'s and they can enter a members only room.

Any Ideas how to make it refresh whatever it refreshes without a restart?

Jason

Ok maybe I can try this from a different perspective, Is there a way to add to wildfire.xml so it pulls muc membership from a custom database?

I set it up to authenticate users from a seperate database but I still have the problem that I need users to only have access to certain chat rooms.

Openfire caches that information in memory, that’'s why you have to restart the server for the changes to take effect. I guess you have to use an XMPP library instead of directly writing to the database.

Excellent suggestion, any Idea how to get started on that, Ive been looking at the schemas on xmpp.org but I really have no idea how to actually send an xmpp command to the server.

Is there maybe a way to do it with the http service plugin?

Jason

I just read the read me for the user service plugin and it dosnt apear so? BTW anyone know where I can get source code for plugins?

Message was edited by: jasons

jasons wrote:

Excellent suggestion, any Idea how to get started on that, Ive been looking at the schemas on xmpp.org but I really have no idea how to actually send an xmpp command to the server.

Is there maybe a way to do it with the http service plugin?

or maybe smack library is suitable for that

I just read the read me for the user service plugin and it dosnt apear so? BTW anyone know where I can get source code for plugins?

http://www.igniterealtime.org/downloads/source.jsp

should be in wildfire sources

I did find this http://www.xmpp.org/extensions/xep-0045.html#grantmember wich has all the right xmpp now I just need to figure how to send xmpp commands to wildfire.

I’'ll get to reading the smack docs, but I was kinda hoping to find a way to do it in php cause thats what I know better and thats what I already wrote the other parts in. Oh well.

I’'ll keep you updated.

Jason

jigar if you read this, what do you think about another plugin?

Message was edited by: jasons