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

LDAP not working on Mac OSX #88

Open
doronator-pge opened this issue Jun 4, 2020 · 0 comments
Open

LDAP not working on Mac OSX #88

doronator-pge opened this issue Jun 4, 2020 · 0 comments

Comments

@doronator-pge
Copy link

Using python 3.7, with sqlalchemy and teradatasqlalchemy installed as well, the following code
does not produce an LDAP encrypted request. The connection is rejected with the following error:

sqlalchemy.exc.DatabaseError: (teradata.api.DatabaseError) (210, '[28000] [Teradata][ODBC Teradata Driver][Teradata Database] (210) The UserId, Password or Account is invalid. FailCode = -8017')
(Background on this error at: http://sqlalche.me/e/4xp6)

From my DB administrator, I know that my connection attempts are registering as authentication=TD2, rather than authentication=LDAP

from sqlalchemy import create_engine

connection_str = 'teradatasql://{username}:{password}@{hostname}/authentication=LDAP'.format(
        hostname=hostname,
        username=username,
        password=password)

td_engine = create_engine(connection_str)
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

No branches or pull requests

1 participant