Inactive [ADMN/SEC] CAuth v1.4 - Another authorization plugin [1060]

Discussion in 'Inactive/Unsupported Plugins' started by CSharpRU, Jul 12, 2011.

  1. Offline

    CSharpRU

    [​IMG]
    CAuth - Another authorization plugin:
    Version: v1.4
    CraftBukkit build (tested on): 1060

    CAuth providing a simple authorization/registration on your server. If you want feature or find bug, write it in PM.

    If you use my plugin please write me to pm, i'm add your server to this post.

    Features:
    * Simple registration, authorization and password change, stores users in file (properties array serialize) or MySQL database, and using MD5 crypt.
    * Unauthorized users can't move, destroy blocks, interact with entitites, deal damage to entities, use another commands and stuck at spawn location.
    * Mobs don't target unauthorized player.
    * Kick player if wrong password or player not logged in x * 10 server ticks.
    * One registration from one IP address (configurable).
    * Admin commands for password resetting (to user login, case sensitive) and registration removing.
    * Permissions support.
    * Permissions using is off by default.
    * Remember server operators feature (you also may set permissions using and permissions groups to remember), no need to login any time when operator enter on server (until server reboot).
    * Easy translate messages to your language.

    Download CAuth.
    <Edit by Moderator: Redacted mediafire url>
    Plugin and source code home page. (commits when get any free time)

    Language translations:
    German (Dr.House)
    Italian (edo98)
    Polish (DonArkada)

    TODO (for next version):
    * Look at permissions groups.


    Show Spoiler
    /register - register.
    /login - authorizing.
    /setpass - change password.
    /cauth - admin/op commands.



    Show Spoiler
    CAuth.register - register command.
    CAuth.login - login command.
    CAuth.cauth.reset - password resetting.
    CAuth.cauth.remove - registration removing.
    CAuth.cauth.reload - reloads plugin configuration.


    Changelog:
    Version 1.4
    * Language file and config property added.
    * Rebuild to 1060.


    Show Spoiler
    Version 1.3.9
    * Can't enter/login if nick already on server.
    * Wrong password enter limit, configurable.
    * "World Edit is useable before logging in" issue fixed.

    Version 1.3.8
    * Added permissions support to remember players. Bugs maybe.
    * Added nodes for /login and /register commands.

    Version 1.3.7
    * Remember server operators feature and configuration property added.

    Version 1.3.6
    * Fixed bug when can't delete player because player not logged in.

    Version 1.3.5
    * MySQL support added (thanks alta189 for SQL Library), maybe has bugs.
    * Configuration file in YAML format now.

    Version 1.3.4
    * Account per IP count configure property.
    * /cauth reload command added, reloads plugin configuration.
    * Bug fixes.

    Version 1.3.3
    * Plugin reload fix.

    Version 1.3.2
    * Can't interact with entitites, deal damage to entities.
    * Mobs can't target on non-logged player.
    * Kick player if not logged in after x * 10 server ticks (sets in config).
    * Updating players locations on server stop/reboot.
    * Bug fixes.

    Version 1.3.1
    * Permissions support fix, can't execute command if using permissions, but plugin is not installed.

    Version 1.3
    * Config file added.
    * Permissions support.



    Show Spoiler
    Version 1.2
    * Can't chat if unauthorized.
    * Clear inventory if unauthorized.
    * No damage if unauthorized.
    * Bug fixes.

    Version 1.1
    * Teleports at spawn location if unauthorized, when login teleport to last location.
    * Red messages when join to server.

    Version 1.0
    * First release.


    Sorry for my bad english.

    [​IMG]
     

    Attached Files:

    Last edited by a moderator: Nov 27, 2016
  2. Offline

    CSharpRU

    Yes, not allowed.

    Database tables is created automatic when plugin in loading state. You MySQL user has rights to create tables?

    Users with this problem:
    Can you dump your database and send it to me via pm?

    Sorry for my long absence.
     
  3. Offline

    OnceUponATim

  4. Offline

    Lakloplak

    Heey I made a translation in Dutch :D
    Code:
    # English language file, default.
    
    # Main.
    YOU_NEED_AUTHORIZE_TO_PLAY: "Je moet nog inloggen!"
    ERROR_HAS_OCCURED: "Error has occurred, please contact to developer at http://bukkit.org/"
    YOU_CANT_USE_THIS_COMMAND: "Je mag die command niet gebruiken."
    PASSWORDS_NOT_EQUALS: "Je wachtwoorden zijn niet gelijk."
    CANT_OPEN_INVENTORY: "Je kan niet in je inventory als je niet bent ingelogd!"
    THIS_NICKNAME_ALREADY_IN_USE: "Je naam word al gebruikt!"
    AUTHORIZE_OR_REGISTER_TO_PLAY: "Login of register door /login of /register."
    
    # /cauth command
    PASSWORD_SUCCESSFULLY_CLEARED: "Wachtwoord is succesvol verwijderd!"
    NO_PLAYER_WITH_THIS_LOGIN: "Geen speler met die login."
    REGISTRATION_REMOVED: "Registratie verwijderd."
    CONFIGURATION_RELOADED: "Configuratie herladen."
    
    # /login command
    WELCOME: "Veel plezier!"
    YOU_BANNED_FOR_PASSWORD_BRUTE: "Je bent geband wegens te vaak een verkeerd wachtwoord in te vullen!"
    WRONG_PASSWORD: "Verkeerde wachtwoord!"
    ENTER_PASSWORD: "Vul een wachtwoord in!"
    
    # /register command
    THIS_LOGIN_IS_REGISTRED_AT_NOW_TIME: "Deze login is al geregistreedr!"
    THIS_IP_ADDRESS_HAS_EXCEEDED_THE_LIMIT_OF_REGISTRATIONS: "Je kan niet zoveel registraties op een IP."
    YOU_SUCCESSFULLY_REGISTRED_ON_THE_SERVER: "Je bent nu geregistreerd, gebruik /login om in te loggen."
    YOU_IS_REGISTRED_AT_NOW_TIME: "Je bent al geregistreerd!"
    YOU_IS_AUTHORIZED_AT_NOW_TIME: "Je bent al ingelogd!"
    
    # /setpass command
    PASSWORD_SUCCESSFULLY_CHANGED: "Je wachtwoord is veranderd, gebruik /login om in te loggen."
     

    Attached Files:

    • nl.zip
      File size:
      857 bytes
      Views:
      0
  5. Offline

    CyborgRaVen

    rebuil to 1185 pls?
     
  6. Offline

    trixed

    Still good with 1185 right?
     
  7. I take a Test if Cauth works with Bukkit 1185...
    Will post results in a few Days, first startup worked fine.
    Now it's time to create Permissions File for all Plugins, when it's done I will run the test.

    Cu L8ter
     
  8. Offline

    Amsek

    please, update this! i found 1 bug, player can use worldedit commands, what starts with //, when not logged...
     
  9. Offline

    Sejsel

    Can you please add Support for SpoutBackpack?
     
  10. Offline

    Sammael_CZ

    I found a bug. When I create bed and connect to it by sleeping spawning works just finebut when I log off I and then die. I get message "Your home bed was missing or obstructed." and get spawned on original spawn.

    I'm using Bukkit 1185.
    Maybe there is a conflict with some of my plugins.
    Code:
    AutoSave
    Backup
    BlocksOnGlass
    Cauth
    ClayGen
    craftscripts
    EasyRules
    HeroicDeath
    IHateExp
    ChopTree
    InstaBreak
    IntelliDoors
    Lockette
    LockIP
    Multiverse-Core
    Multiverse-NetherPortals
    Multiverse-Portals
    Safe Creeper
    ServerLogSaver
    SimpleTime-v4.3
    simplewhisper
    SleepAnnounce
    Stargate
    Stargate-DHD
    SuperLog
    TpC
    WorldEdit
    WorldGuard
     
  11. Offline

    XxChocoCookiexX

    Thanks This is really helpful in my server!!! :D
     
  12. Offline

    atesin

    hi
    i am trying to mount a server with a community page

    i want to write a web page to registration and account admin .. so i want to disable in game registration, and to know hash algorithm to generate sha1 pass with PHP and insert directly into db (since it seems is not plain sha1)

    - is there any way to disable in game registration?
    - what is the algorithm to generate sha1 password?
    . (update: just md5(passwd), you can try with echo -n because echo appends a newline at ehe end (echo -n mypass|md5sum))
    - is a server reload needed after external db insert?

    thanks
     
  13. Offline

    Celinho234

    Nice plugin. Cool for prevent the creation of "fake" accounts in the server.
    :)
     
  14. Offline

    Snowy007

    switched to xauth but forgot to mention here why. :p

    This plugin gave me problems with multiple worlds.
    When players stay on the default world it works fine.
    When players go to a different world then log out, then log back in it also works fine.
    BUT when players go to a different world, and the server gets restarted, the cauth gives errors at startup that it can't load the users that are on the different world. It loads the users on the default world fine though.
    The users that it can't load are unable to log in and are forced to register again. Creating a second player in the database with a different ID but the same name.
     
  15. Offline

    pagep

    Hi, I have one big trouble. It doens't work with MultiInv . And we're using MyWorld( multiworlds) with creative mode, so ppl can bring things from that world to survival... :-(

    Hot fix could be adding config for disable inventory protection . I guess?!
    Also, it kicks ppl after 1 bad password try, even when is set more.

    Also there could be config for allowing unauthorized ppl to chat or not ... ;-)
    Alse config for tp pll to spawn loc. or not... It collide with Jail plugin :-(

    OK, that's all. Thank u so much for this plugin. It's awesome! And only plugin for server auth in offline(LAN) mode!! (university network ftw :-D )
     
  16. Offline

    Celinho234

    Nice plugin for prevents the creation of fake accounts on the server
     
  17. Offline

    perwin

    Hey, I found a big bump in your code. Your MD5 hashing doesn't work.
    e.g.:
    ef7a7ed1d41c5a55700761a5c4dc42df - this is from PHP md5()
    ef7a7ed1d41c5a5570761a5c4dc42df - this is from your plugin
    Plugin's md5 is shorter of 1 char then PHP's md5.
    So I can't connect it with mi website correctly.
    Please help.

    CSharpRU, use this code for md5 hashing:
    Code:
    public String MD5(String md5) {
      try {
            java.security.MessageDigest md = java.security.MessageDigest.getInstance("MD5");
            byte[] array = md.digest(md5.getBytes());
            StringBuffer sb = new StringBuffer();
            for (int i = 0; i < array.length; ++i) {
              sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1,3));
          }
            return sb.toString();
        } catch (java.security.NoSuchAlgorithmException e) {
        }
        return null;
    }
     
  18. Offline

    RicoSuave

    2012-01-26 12:06:25 [SEVERE] Error occurred while enabling CAuth v1.4 (Is it up to date?): java.lang.NullPointerException
    org.bukkit.plugin.IllegalPluginAccessException: java.lang.NullPointerException
    at org.bukkit.plugin.SimplePluginManager.getEventListeners(SimplePluginManager.java:601)
    at org.bukkit.plugin.SimplePluginManager.registerEvent(SimplePluginManager.java:524)
    at csharp.cauth.CAuth.registerEvents(CAuth.java:277)
    at csharp.cauth.CAuth.onEnable(CAuth.java:209)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:231)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:1057)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:379)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:191)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:174)
    at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:356)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:343)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:175)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)

    CAuth won't enable? I updated to server 1.1 and also updated CAuth to 1.4. Now it won't start
     
  19. Offline

    marcos1153BR

    Please upgrade to a newer version of Bukkit!
     
    Ezio-123 likes this.
  20. Offline

    Ezio-123

    Nyc plugin but it needs update..
     
  21. Offline

    lolidk40

    Hello can you please make a video on how to use this because i cant even login properly.
     
  22. Offline

    gigafunk

    Hello! Thank You for the great plugin! I use buildcraft and industrial craft and they both use player accounts to run some of the big machines. However I think the way this plugin locks down accounts before /login is interfering with the players named [Buildcraft] .

    Is there a way to make a player automatically log in based on ip or something? Thanks! Any tips you can give me to get something working? Thanks!!!
     
  23. Offline

    htaylor99

    Help me please non of the commands work and when I move and stuff it doesnt require me to log in.

    I have restarted my server
     
  24. Offline

    Duning

    installation guide pls
     
  25. Offline

    CookCraftHD

    I get an error as I load the server: http://pastebin.com/7VS6dPKc
    why?
    nice plugin, block it dropping of items?
    Can you add sourse in the dev for craftbukkituptodate?
     

Share This Page