Hi, all

I released pyfirebirdsql 0.8.3
https://pypi.python.org/pypi/firebirdsql/0.8.3

That has first implementation of SRP authentication with Firebird 3.0 alpha
2
But it's still not work :-(

For example, bellow simple codes raise error.
(Parameter connect_version, use_srp, wire_crypt is added)
Probabry client and server can't exchange key each other.

I think something wrong srp.py
https://github.com/nakagami/pyfirebirdsql/blob/master/firebirdsql/srp.py
or incorrect packing these calcrated key values.

But I don't realize what is wrong.

I hope someone's help, hint or something else.
Especially pull request please.

[Sample Code]

import firebirdsql

conn = firebirdsql.connect(
        host='localhost',
        database='/tmp/test.fdb',
        user='SYSDBA',
        password='masterkey',
        connect_version=3,
        use_srp=True,
        wire_crypt=True)

[Traceback]

Traceback (most recent call last):
  File "fb3_connect.py", line 10, in <module>
    wire_crypt=True)
  File "/home/nakagami/pyfirebirdsql/firebirdsql/__init__.py", line 63, in
connect
    return Connection(**kwargs)
  File "/home/nakagami/pyfirebirdsql/firebirdsql/fbcore.py", line 505, in
__init__
    raise e
firebirdsql.OperationalError: Your user name and password are not defined.
Ask your database administrator to set up a Firebird login.

Reply via email to