I am in situation where I need to put a user in 2 groups
He is member of group A —> showing without problem
I add new group B —> make him the only user in it. — the group does not appear in the first place – it would only appear if I’'d add a new user to it who is not a member of another group.
I need to know if there is any solution that wil allow such scenario user added and showing in 2 groups.
Which version of Openfire are you using? I tried to reproduce this case but it worked fine for me. Could you post the steps (including way groups are configured) you are doing so we can reproduce this case?
I’‘m having the same problem using Openfire 3.3.0 and LDAP (more specifically, Active Directory). I used to have a bunch of Distribution groups to arrange everyone into departments, which worked perfectly. Then yesterday I deleted those groups and re-created them as Security groups so I could use them for setting different rights etc in Group Policy (something I should’'ve done to start with, really). I also made a Managers group for the heads of each department.
Now the groupings have messed up. Some of the department heads have remained in their original groups, while others have moved to the Managers group. None of them are in both groups at once. I’'ve tried disabling sharing the Managers group, but then the people in it just disappear rather than moving to other groups.
I’‘m a bit stuck now, and hoping there’'s a solution.
it may help a lot if you could confirm that Openfire 3.3.0 works fine for you or if you still see this problem. I expect that you’'ll need to use the current version as backports for old versions are usually not done.
I tried this with 3.3.0 and would say that it works like one would expect it to work as Gato did already post.
how can one reproduce this issue? For me this still looks to work fine.
If you have a group “G1” with users “user1” and “user2” and a group “G2” with user “user1” this works fine. Group “G2” will anyhow not be displayed in the roster of “user1” as it makes no sense that “user1” finds itself in its roster.
Maybe you can add some comments to this setup and what must be changed to reproduce your problem:
Hello IT2000 and thanks for taking the time to investigate that issue.
You have Jabber Server with whatever groups and users on it.
Login with any jabber client to that server with your own account
1- --> Create 2 groups “Group1” and “Group2”
2- --> Your roster will not change as the 2 groups are empty
3- --> Create 3 users : “user1”, “user2” and “user3”
4- --> Add them all to “Group1”
5- --> “Group1” will be added to your roster with the 3 users showing in it as off line.
6- --> edit “Group2” and add “user1” to it.
7- --> “user1” will disappear from “Group1” and “Group2” will be added to your roster with “user1” only in it.
8- --> Edit “Group2” and add “user2” and "user3"to it too.
9- --> “Group1” will disappear completely and “Group2” will still be showing with all 3 users in it.
What happened here is even though the 3 users are members of more than one group they still will only show for other users in the latest group they were added to.
I need the users to be showing in both groups in the same time.
Please let me know if following those steps will reproduce the problem at your setup or not.
Please let me know if I didn’'t explain my problem clearly maybe I can send snapshots of the process.
should be fine if a user is in two groups but Spark has some problems to handle this. Adding user2 and user3 to Group2 causes Openfire to send similar packets to Spark.
So it could be a Smack/Spark bug, one should try to reproduce this with another client.
as Jivesoftware/IgniteRealtime did introduce the server side groups they may know best if these packets which are sent are really right and then decide whether this is a client or a server issue.