ADOffline icon indicating copy to clipboard operation
ADOffline copied to clipboard

Update adoffline.py

Open cervoise opened this issue 9 years ago • 0 comments

Correct crash on AD with special chars (french, german, etc.).

Crash example: [20/May/16 12:02:14] Parsing LDIF... Reading line 4817/3610393 (0%)Traceback (most recent call last): File "adoffline.py", line 481, in process_struct(current_dn,sql) File "adoffline.py", line 56, in process_struct insert_into_db(struct,sql) File "adoffline.py", line 264, in insert_into_db c.execute(sql_statement, ldap_values) sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.

cervoise avatar Jun 01 '16 23:06 cervoise