Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update adoffline.py #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update adoffline.py #2

wants to merge 1 commit into from

Conversation

cervoise
Copy link

@cervoise cervoise commented Jun 1, 2016

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.

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 <module>
    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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant