Inactive [ADMN/WEB] Password v0.6 - Allow players to register through MineCraft [1493]

Discussion in 'Inactive/Unsupported Plugins' started by Noneofyourbusiness, Jul 5, 2011.

  1. Password v0.6
    by Waldfelt

    Permissions v2.7.4 -> download or
    Permissions v3.1.6 -> download
    MySQL connector (place in <bukkit root folder>/lib) -> download (link fixed)

    Download the latest version -> version 0.6

      • MySQL storage of user-generated passwords using MD5 encryption.
      • Implementation of Permissions v2.7.4.
      • Easy registration for your websites using in-game commands.
    For players:

    Use /password [password] to set or change your website password. Recommended: Do not use your minecraft password, it may comprise your account's security!

    For admins:
    Download the latest version of Password and place it in the plugin folder. After loading the plugin, please edit the configuration file to properly connect to your MySQL database.
    Passwords are stored using a MD5 encryption and the corresponding usernames are also stored in the same table as the passwords.

    Permission node:
    - password.password

    Upcoming features:
    iConomy support.
    A more sexy approach to configuring MySQL server.
    Choose between md5 en sha1 and usage of salt.

    Change log:
    version 0.6 Bugfix with the SQL Query (lol!)
    version 0.5 Added debugging functionality
    version 0.4 Uses raw username instead of alias or displayname.
    version 0.3 Better error handling and data reading/loading.

    Donations are greatly appreciated to keep our server up to date and allow us to grow!

    To donate click here!

    Test server:
    Freakdk and llaraet like this.
  2. Offline


    am i the only one who doesn't really understand this.
  3. If you are hosting a minecraft server and a minecraft website. If your minecraft website has stuff like a forum, or something which needs an account. You can use this plugin, instead of a registering form.

    When not using plugins like Alias or a rogue server, you can ensure that people who registered on your website, are the people who play on your server. I am using the plugin to allow people to register and use our forums (which is a feature that has not been implemented yet, since i am very busy.)
  4. Offline


    do you need some features of 955 dev build? You should normally only use recommended builds.
  5. No i actually just wanted to use the newest library, but i now see you have a recommended build on your front page. I editted it now :)
  6. Offline


    Usernames and passwords should be stored in different tables, and not stored with the tables "username/password", rather something like "pplo345mzfng" to discourage targetting them exact tables.
  7. The configuration allows you to rename your tables to whatever you want, so i do not see added value of seperating username and password.
  8. Offline


  9. Offline


    Geez, these are just popping up like crazy lately!
  10. Offline


    @Noneofyourbusiness - hey like the mod, 1 issue tho. It stores titles in the username as well.. It needs to strip all titles before storing the usernames. I was also wondering if you had this on Github and if i could fork you or not. Let me know. Thanks
  11. Offline


    How do I come around using "Mybb forum" for this ?
    This is what I put as the table: MySQL Tabl: mybb_users
    Inside that table there's password/username etc.
    And it doesn't work, so I must be doing something wrong :D

    The mysql details are all good.
    It gives me an internal error when I use the command ingame - This is my server log;

    Show Spoiler
    2011-07-19 09:15:13 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'password' in plugin Password v0.2.4
    at org.bukkit.command.PluginCommand.execute(
    at org.bukkit.command.SimpleCommandMap.dispatch(
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
    at net.minecraft.server.NetServerHandler.handleCommand(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.Packet3Chat.a(
    at net.minecraft.server.NetworkManager.b(
    at net.minecraft.server.NetServerHandler.a(
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(
    Caused by: java.lang.NullPointerException
    at me.Waldfelt.Password.Password.onCommand(
    at org.bukkit.command.PluginCommand.execute(
    ... 12 more
  12. I will try to reproduce the error tonight, when i can fix it quickly i will push an update tonight otherwise the day after!
  13. Offline


    That sounds awesome mate!
    This plugin is really what I've been after for ages - Good job, If I get in working ;-)
  14. Dear freakdk, are you sure there is no whitespace behind the values in the data files?
    (I know that it is quite dirty, but i'll try to fix it) :)

    EDIT: I fixed it :p

    Another quick update: When a user registers his password, his original username is used as login.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  15. Offline


    @Noneofyourbusiness - the password is just a straight md5 hash of what the user chooses? im not sure if im doing something wrong or if im missing something but the passwords dont match when i use a straight md5 hash of the password.
    Maybe your adding a salt of some sort?

    Let me know I would really like to use this mod more.

    Disregard my previous post, the latest version is working perfectly thank you :)

    1 Last idea from me, MD5 is a good hash but it is now considered to be "broken" I know a lot of people still use it and a lot of software uses it as well. I was wondering if it would be too hard to add in and option to use SHA1 and maybe a security salt.

    So 2 more config settings:
    hashtype: SHA1 or MD5
    salt: SoM3R@ndoMSa!t

    then do password = hashtype(salt+password_input).

    Something like that anyway. Just a thought

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  16. Good idea, thanks for your input. I will note that in my upcoming features :>
  17. Offline


    I'm sorry - but I have got no clue of what you tried to tell me there :D
    I'm not that much into this.. :)
  18. well, download 0.4, it should solve your problem! :)
  19. Offline


    so this plugin isnt able to use permissions 3.x.x?
  20. actually it is compatible with permissions 3.x, i just tested it yesterday. i wasnt sure about how the dependencies changed within the permissions plugin. but it works, so i will soon change the plugin description
  21. Offline


    So, can this be used to allow players to register to my phpBB forum? Will this be easy/difficult to set up?
  22. Well i do not know what kind of authentication encryption phpBB uses, but if it uses simple md5, it will be very easy. Just set up this plugin setting the usertable to the phpBB usertable and disable registering somewhere in the phpBB configuration. (But i am mostly guessing and speculating atm, i developed this plugin for myself to allow people to register for software i have written by myself.)
  23. Offline


    This seems like it would work perfectly with what I am working on... but it doesn't appear to work. At least, not for me. I get an error saying MySQL cannot connect. Yes, the configuration options ARE correct, because I have checked it by using mysql in CLI mode and copying/pasting in the values from the config. I am able to to connect with MySQL just fine via CLI, and all of the other plugins (iConomy/LogBlock) can access MySQL fine using the same credentials as well. Not sure what's going on, but something with it doesn't appear to be working properly for me...

    Config I am using...

    MySQL User: mcsmp
    MySQL Name: dbname
    MySQL Tabl: accounts
    And as I said, I can use mysql via CLI no problems...

    mysql -h IP.OF.MY.SERVER -u mcsmp -p dbname

    Any ideas why this is happening? Is there some kind of debug mode or something I can enable?
  24. if the minecraft server and the mysql server are on the same server, you can fill in localhost for MySQL host.
    But that shouldn't be the problem, are you sure you ahve the mysql java connector installed properly?
  25. Offline


    Yes, or else iConomy/LogBlock would not be working correctly.

    Changing it to localhost makes no difference. Still says cannot connect to MySQL. I can connect using identical credentials though.
  26. I have the feeling that there is something wrong with the MySQL connector (it would probably be my error, but where did you place the mysql-connector-java-bin.jar?)
  27. Offline


    It is in the lib directory...
    $ ls lib/mysql-connector-java-bin.jar
    -rw-r--r-- 1 mc mc 703265 Apr  4 17:21 lib/mysql-connector-java-bin.jar
  28. try it again with mysql-connector-java-bin.jar in the root folder :eek:
  29. Offline


    tried that, no difference. :(
  30. hmmm, i'll add a debugging function into it :) Something that maybe kills the server startup with some useful information. I'll try to push it out asap! :)

Share This Page