dBUB
dBUB is permissions bridging plugin that was designed to bridge permissions between an online database, and permissions on your minecraft server!
[ Download | Source | Donate | Usage | Change log | Example Setup | Installing | Permissions ]
What is it?
The Database User Bridge, dubbed dBUB, is permissions bridging plugin that was designed to bridge permissions between an online database, and permissions on your minecraft server! Currently, it may only work with group manager, the in future releases will work with other popular permissions systems such as PermissionsEx, bPermissions, and permissionsBukkit.
What exactly does it do?
Based on your configuration settings, dBUB will try to synchronize user's groups from your database with your permissions system based on their group ID in the database (which you can map to any group you'd like in dBUB's configuration file!) when they log into your server!
Features:
- Support for (almost) any database user setup!
- Support for using different tables!
- Supports Database -> Server Synchronization!
- Supports Server -> Database Synchronization!
Future Features:
- Vault support (Permissions 3, bPermissions, PEX, GroupManager, PermissionsBukkit, zPermission)
- Support for ignoring certain users
- Database -> Server and vise versa Ban synchronization.
Automatically generated empty config fileDone!
Server -> Database synchronizationDone!
Forums Tested:
- vBulletin!
- SMF!
- PhpBB
- More to come as soon as I get feedback!
Need more support?
Join the IRC Channel!
@cky2250
I believe it should work, so long as there's a user table and some sort of group id for users :)
word press? with the s2Member plugin? or something.
@Pixelbat: Thank you for your input.
and wait, Hvarr, were you even using the version I released under the files tab? :/
@pixelbat
You weren't making yourself clear, and if you set syncTo to false, you don't have to worry about users getting synchronized to your forums, and even as a further precaution, you should have your custom fields setup so users can't re-use a minecraft username to stop users from hijacking each others permisions, it's basic common sense
Hvarr that's pretty weird, it looks like theres something wrong with your group mapping, can you pastie that section of your config and PM me a link?
http://pastie.org/3407148 And as result, no one gets updated.
I also tried it today. Lol, wasted a lot of time.
It works with PhpBB, but I wouldn't unless you're syncing MC username to forum username. Syncing to a custom profile field your forums can be hijacked. I've tested it and saw it first hand. You argued with me for like 5+ post that it couldn't be. Anyhow, GL with the mod, found something else that works for me.
@geekoid72
Wait, so using multiple tables works? Sick, I wasn't expecting that to work first time around, if you have any troubles let me know, because for that to work first time around, its gotta mean theres something wrong somewhere haha.
Also, why not just set up your custom fields so users can't use an existing field, shouldn't be too difficult. If you can find me the script for the custom fields, I'd happily modify it for you to do this.
So it's working all ok on PHPBB?
pixelbats theory is correct. i got this setup and sure enough if you are using a custom profile field and not your forum username to sync a user can gain forum power by using an admins name in the field with phpbb. dont know about other forums.
@pixelbat
Ahhh, you mean from server -> database. Again, pretty much the same thing as syncing database to server, and again, the usernames have to match, so you don't have to worry about people gaining admin privileges on the forums by spoofing their in-game name :)
So it's pretty much like OKB3's secure mode, except it's fully automated, and unless you're running an offline server, fully secure in regards to username-spoofing =]
been looking for something like this.
i get what pix is saying, im in the same boat with forum names not matching. going to install this soon. going to play around with pix theory to see if it can be done.
@SamV522
I get it man. I get how it synchronizes from forum to bukkit server, just not back the other way.
I have people on my server, a lot of people who do not use their MC name on the forums, so for this to work for me, I'd have to set up a custom field that they can enter their MC name into in their forum profile or something like that. Correct?
Ok, now if that is the case, anyone can enter anything they want. Now my forum name might be random123, but I know one of the admins is named Unicorn, so if I pop Unicorn into this custom field, the next time the real Unicorn logs into the game, it's not going to try and give Random123 admin rank on the forums?
I guess I'll just have to wait for PEX support and try this myself. I'm just very skeptic because OKB3 is an automated syncing bridge too however it has two modes, normal and secure. Normal is for if you're using username to username. Secure is if you're using a custom field, then it requires the one time login on the MC server.
Pixelbat, I'm not being condescending, I'm simply responding to your comment and being as straight forward as I can.
The way this works is it users the information you supply in the config to match someones in-game username, with a username on the forums based on the configuration YOU set up, so their name could be whatever they want on the forums, so long as somewhere in your database, their minecraft username is stored with a way to match it up with their forum account, for example an ID to match it up with.
The thing stopping someone from spoofing a forum promotion is that if dBUB will synchronize users, and match them up, this goes to say that if they set their minecraft name to Unicorn on the forums, it'll only try to synchronize Unicorn when they log in. If say the set their minecraft username as xPopeBeNeDiCtx on the forums, it will only try to synchronize xPopeBeNeDiCtx when they log in, without the need for players to use /sync <forum name> <forum pass> in-game, because the system is automated
So what you're saying is you can only sync if the forum name matches the minecraft name.
So Bob <---> Bob
If that's the case, then sorry for the misunderstanding. I was under the impression that you could pull data from a secondary custom field, for instance on my servers forums... when you sign up (http://obsidia.us), you can put in a Minecraft name, but honestly a person could put anything they want, and theres no way to really enforce it. My concern was if you set it up to sync from a custom field and not the username field, what is to stop someone from spoofing a forum promotion via that...
And you don't have to be condescending, I'm not stupid here. I just think we have crossed ideas. I'm used to the OKB3 method which gives you a secure way for players to sync regardless of their forum username with /sync <forum name> <forum pass> ingame, I think for a lot of servers thats ideal, since people don't always use the same name.
Anyhow, nevermind, and sorry to cause an issue. GL on the mod.
@pixelbat Sigh, you're not getting what this plugin does, which I've tried to tell you multiple times now, so I'm just going to list the key reasons your problem is stupid.
@samv522
Sigh, you're not getting what I'm talking about. Does the mod only sync when the person is ingame? And what is stopping it from syncing to the forums with someone who put the players name in the custom field who isn't the actual owner?
Ok, Bob is an admin, his name is Bob on minecraft, and has Bob in the custom field on his forums.
Minecraft Forums
Bob --------------------------------------> Bob
Griefer ------------------------------------> Bob
Griefer comes along, and put's Bob in his custom field on the forums. What is there to stop your bridge from syncing Bob ingame to griefer on forums? Meaning, giving the griefer admin access on the forums?
Or is this just a one way bridge to promote people ingame based off their forum rank? I'm really confused.
@Pixelbat: How the hell would two people have the same name in minecraft?
@Sacredox: It Should do, yesssSss.
@SamV522
So a name can only be used once? I see, I was under the impression that the syncing was just made based on a check of a certain field. So if two people had the same name, it wasn't smart enough to tell the difference and it would just promote/demote both.
Does this work with Joomla 2.5 by any chance?
@pixelbat
Potentially yes, though I don't quite see what the issue here is? Why wouldn't you have an administrator register their in-game name on your forums already? If you don't want to register, most forums support restricted names as well.
Alternatively, theres a new setting I forgot to update in the examples which controls which ways you want the plugin to synchronize. Basically, under the database configuration, just change syncTo to false and the plugin will only synchronize users TO the database when you manually ask it to (/dbub syncdb). You can do the same with syncFrom as well.
@SamV522
Wouldn't this create an insecure form of authorizing someone? With the OKB3 forum bridge a person has to auth themself ingame by doing /sync <forum name> <forum pass>, they only have to do this the first time, or any time they become out of sync with the forums. I bring this up because it seems like this is kinda insecure and offers a way for someone to exploit your forums...
I'll give you an example.
Let's say I'm the admin of my server and my MC name is Bob... I use PhpBB and link up your bridge by using a custom profile field, so you just put your MC name in it. Now say some random griefer comes by, sees the potential exploit, and now rather than hurting your MC server they decide to put the admin's name "Bob" in their minecraft name profile field. Wouldn't your bridge then sync their forum name to the admin ingame named "Bob", and give them full access to your forums? Assuming you have an admin rank that has full access?
Also look forward to some PEX support :)