1. 04 Jul, 2003 1 commit
    • unknown's avatar
      Bug fixes for authentication · ccbcf1c9
      unknown authored
      OLD_PASSWORD made a keyword to allow set password=old_password('abc') constructions.
      
      
      BitKeeper/etc/ignore:
        Added BitKeeper/post-commit BitKeeper/post-commit-manual build_tags.sh tests/connect_test BUILD/compile-pentium-maintainer to the ignore list
      include/mysql_com.h:
        scramble return type changed to void as now it's not used
      libmysql/libmysql.c:
        fixed bug with with failed authentification when scramble contained zero byte
      sql-common/client.c:
        applied patch from Lycos team
        fixed bug with scramble containing zero byte
      sql/item_create.cc:
        removed create_func_old_password, create_func_password as they are not used any more
      sql/item_create.h:
        removed create_func_old_password, create_func_password as they are not used any more
      sql/item_strfunc.cc:
        Added alloc() function to Item_func_password, Item_func_old_password, which is used in sql_yacc.yy
      sql/item_strfunc.h:
        Added alloc() function to Item_func_password, Item_func_old_password, which is used in sql_yacc.yy
      sql/lex.h:
        OLD_PASSWORD now is keyword, to allow statements like
        set password=old_password('abc')
      sql/password.c:
        fixed scramble return value
        trailing zero now is not written
      sql/sql_acl.cc:
        incorporated patch from Lycos team
        41 replaced with constant
        acl_getroot rewritten to support ER_AUTH_... error
      sql/sql_parse.cc:
        authenticate merged with check_user
        check_user return values reversed, support for ER_AUTH in check_user.added
      sql/sql_yacc.yy:
        OLD_PASSWORD now is keyword, to allow statements like
        set password=old_password('abc')
      ccbcf1c9
  2. 01 Jul, 2003 1 commit
    • unknown's avatar
      First version of new authentification procedure: now authentification is... · dbb088b0
      unknown authored
      First version of new authentification procedure: now authentification is one-stage (instead of two-stage in 4.1)
      
      For now following tasks have been done:
      - PASSWORD() function was rewritten. PASSWORD() now returns SHA1
        hash_stage2; for new passwords user.password contains '*'hash_stage2; sql_yacc.yy also fixed; 
      
      - password.c: new functions were implemented, old rolled back to 4.0 state
      
      - server code was rewritten to use new authorization algorithm (check_user(), change
        user, and other stuff in sql/sql_parse.cc)
      
      - client code was rewritten to use new authorization algorithm
        (mysql_real_connect, myslq_authenticate in sql-common/client.c)
      
      - now server barks on 45-byte-length 4.1.0 passwords and refuses 4.1.0-style
        authentification. Users with 4.1.0 passwords are blocked (sql/sql_acl.cc)
      
      - mysqladmin.c was fixed to work correctly with new passwords
      
      Tests for 4.0-4.1.1, 4.1.1-4.1.1 (with or without db/password) logons was performed;
      mysqladmin also was tested. Additional check are nevertheless necessary.
      
      
      BitKeeper/etc/ignore:
        Added start_mysqld.sh mysys/main.cc to the ignore list
      client/mysqladmin.c:
        fixed with new password api
      include/mysql.h:
        So as scramble_323 accepts only null-terminated message, two scramble buffs are necessary.
        gotta be fixed
      include/mysql_com.h:
        new constants and password.c api changes
      libmysql/libmysql.c:
        mysql_change_user rewritten to work with new password api
      scripts/mysql_create_system_tables.sh:
        fixed 'Password' column length to 41
      scripts/mysql_fix_privilege_tables.sql:
        fixed 'Password' column length to 41
      sql-common/client.c:
        mysql_real_connect rewritten to support new handshake procedure
      sql/item_strfunc.cc:
        Item_func_password and Item_func_old_password rewritten with new password api
      sql/item_strfunc.h:
        bit commented, numbers replaced with #defined constants
      sql/mysql_priv.h:
        removed unnecessary declaration as now all constants defined is in mysql_com.h
      sql/mysqld.cc:
        scramble initialization moved to sql_parce.cc:check_connection
      sql/password.c:
        All 4.1 functions were rolled back to 4.0 with attempt to save all possible 4.0-4.1 changes.
        Names for 4.0 functions were suffixed with '_323'
        Functions for new handshake were added.
      sql/slave.cc:
        Fixed to new constant; Bug #766 remains to be fixed
      sql/slave.h:
        fixed to new constant; Buf #766 remains to be fixed
      sql/sql_acl.cc:
        rewritten to support new passwords (41 byte-long) and password api
      sql/sql_acl.h:
        ditto
      sql/sql_class.cc:
        initialization for new members added
      sql/sql_class.h:
        same thing as in struct mysql - scramble is used for new family of functions, scramble_323 - for old
      sql/sql_parse.cc:
        check_connections was renamed to check_connection as this name reflects better what this function does
        authorization part of check_connection was rewritten
        check_user was rewritten with new password and acl api
        new function 'authenticate', which optionally re-request scramble from client was added
        fixed some typos
        COM_CHANGE_USER piece of dipsatch_command() was rewritten
      sql/sql_repl.h:
        HASH_PASSWORD_LENGTH replaced with SCRAMBLED_PASSWORD_CHAR_LENGTH
        bug #766 remains
      sql/sql_yacc.yy:
        Two-argument form of PASSWORD() was removed
        PASSWORD() function was fixed with new password api.
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      dbb088b0
  3. 29 Jun, 2003 2 commits
  4. 28 Jun, 2003 7 commits
  5. 27 Jun, 2003 14 commits
  6. 26 Jun, 2003 7 commits
    • unknown's avatar
      Merge paul@bk-internal.mysql.com:/home/bk/mysql-4.1 · 608bda36
      unknown authored
      into teton.kitebird.com:/home/paul/mysql-4.1
      
      
      sql/share/czech/errmsg.txt:
        Auto merged
      sql/share/danish/errmsg.txt:
        Auto merged
      sql/share/dutch/errmsg.txt:
        Auto merged
      sql/share/english/errmsg.txt:
        Auto merged
      sql/share/estonian/errmsg.txt:
        Auto merged
      sql/share/french/errmsg.txt:
        Auto merged
      sql/share/german/errmsg.txt:
        Auto merged
      sql/share/greek/errmsg.txt:
        Auto merged
      sql/share/hungarian/errmsg.txt:
        Auto merged
      sql/share/italian/errmsg.txt:
        Auto merged
      sql/share/japanese/errmsg.txt:
        Auto merged
      sql/share/korean/errmsg.txt:
        Auto merged
      sql/share/norwegian-ny/errmsg.txt:
        Auto merged
      sql/share/norwegian/errmsg.txt:
        Auto merged
      sql/share/polish/errmsg.txt:
        Auto merged
      sql/share/portuguese/errmsg.txt:
        Auto merged
      sql/share/romanian/errmsg.txt:
        Auto merged
      sql/share/russian/errmsg.txt:
        Auto merged
      sql/share/serbian/errmsg.txt:
        Auto merged
      sql/share/slovak/errmsg.txt:
        Auto merged
      sql/share/spanish/errmsg.txt:
        Auto merged
      sql/share/swedish/errmsg.txt:
        Auto merged
      sql/share/ukrainian/errmsg.txt:
        Auto merged
      608bda36
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1/ · 4b2bb5f8
      unknown authored
      into serg.mylan:/usr/home/serg/Abk/mysql-4.1
      
      
      4b2bb5f8
    • unknown's avatar
      preload.test: · 1aabc50b
      unknown authored
        Change mode to -rw-rw-r--
      
      
      mysql-test/t/preload.test:
        Change mode to -rw-rw-r--
      1aabc50b
    • unknown's avatar
      New messages for 3-adic and N-adic operations · 1d29092e
      unknown authored
      REPLACE() now processed arguments collations according to standard
      
      
      1d29092e
    • unknown's avatar
      cond_count moved to SELECT_LEX_NODE · 54cd790b
      unknown authored
      fixed BUG #726
      
      
      mysql-test/r/subselect.result:
        test of bug #726
      mysql-test/t/subselect.test:
        test of bug #726
      sql/item_cmpfunc.cc:
        cond_count moved to SELECT_LEX_NODE
      sql/item_subselect.cc:
        fixed current_select pointer
      sql/sql_base.cc:
        cond_count moved to SELECT_LEX_NODE
      sql/sql_class.cc:
        cond_count moved to SELECT_LEX_NODE
      sql/sql_class.h:
        cond_count moved to SELECT_LEX_NODE
      sql/sql_lex.cc:
        cond_count moved to SELECT_LEX_NODE
      sql/sql_lex.h:
        cond_count moved to SELECT_LEX_NODE
      sql/sql_select.cc:
        cond_count moved to SELECT_LEX_NODE
      54cd790b
    • unknown's avatar
      Bug fixed: mysql-test failure on rpl tests · 11e9c572
      unknown authored
      
      scripts/mysql_create_system_tables.sh:
        Fixed bug: mysql-test failure on rpl tests
      11e9c572
    • unknown's avatar
      Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 17abb8a6
      unknown authored
      into mysql.r18.ru:/usr/home/bk/mysql-4.1
      
      
      17abb8a6
  7. 25 Jun, 2003 7 commits
  8. 24 Jun, 2003 1 commit