Giter Club home page Giter Club logo

Comments (12)

npetzall avatar npetzall commented on May 23, 2024

@szauri Is the problem with version 5.0.0. or 6.0.0-rc1 or a local build?

from schemaspy.

szauri avatar szauri commented on May 23, 2024

with schemaspy-6.0.0-rc1

from schemaspy.

Riggs333 avatar Riggs333 commented on May 23, 2024

@szauri Could you please try to provide the username via command line argument instead of via config file?
Example:
java -jar schemaspy-6.0.0-rc1.jar -u uzytkownik ...

If this works we can narrow the bug analysis on the properties file.

Additionally could you provide some information about the operation system you're running SchemaSpy on and which database you're trying to analyze?
The exception message contains LDAP, there is also some relevant context information regarding the setup?

Thanks!

from schemaspy.

szauri avatar szauri commented on May 23, 2024

I'm working on windows 7, and connecting to netezza.
I test it using command line with the same results:
c:\shemaspy>java -jar schemaspy-6.0.0-rc1.jar -t netezza -dp nzjdbc.jar -db <BAZA> -host <IP> -port <PORT> -u uzytkownik ...
results:
cze 02, 2017 11:33:44 AM org.springframework.context.annotation.AnnotationConfig ApplicationContext prepareRefresh INFO: Refreshing org.springframework.context.annotation.AnnotationConfigApplicat ionContext@7cd84586: startup date [Fri Jun 02 11:33:44 CEST 2017]; root of conte xt hierarchy cze 02, 2017 11:33:44 AM org.schemaspy.Config loadProperties INFO: Configuration file not found Using database properties: c:\shemaspy\netezza.properties Failed to connect to database URL [jdbc:netezza://IP:PORT/BAZA] org.netezza.error.NzSQLException: LDAP authentication failed for user 'UZYTKOWNIK' ....

from schemaspy.

rafalkasa avatar rafalkasa commented on May 23, 2024

I'm afraid that the main issue here is that SchemaSpy doesn't has support for netezza database.

Here you will find list of supported databases https://github.com/schemaspy/schemaspy/tree/master/src/main/resources/org/schemaspy/types

We should build in the documentation section when we can provide list of supported database types.

In my opinion first we need to add configuration file for IBM Netezza database and after you can check it again.

from schemaspy.

szauri avatar szauri commented on May 23, 2024

I prepared config file for netezza and it works. I tested it on netezza local user.

Problem is with authentication based on LDAP user. LDAP username is case sensitive, and schemaspy upercase my (lowercase) username.

from schemaspy.

npetzall avatar npetzall commented on May 23, 2024

@szauri
I've debugged version 6.0.0-rc1 and for command-line supplied user it doesn't uppercase the username.

Since the driver is proprietary I can't actually test if the driver does something funny with the username.

I found this ldap-troubleshooting
and this sysadmin_ldap

I know nothing about netezza but found something interesting in dbuser_set_authentication

For LDAP you can actually specify if the username is stored in LDAP in upper or lower-case. So it might be netezza that uppercases the username when using LDAP. Also the first link has a command to check which databases/datasources a user has access to, and also most of the links contains path to the netezza log which might contain additional information as to why you get the authentication error.

I hope this helps a bit.

from schemaspy.

npetzall avatar npetzall commented on May 23, 2024

@szauri If you get it working would you mind sharing the database config so that we can add it?

from schemaspy.

rafalkasa avatar rafalkasa commented on May 23, 2024

@szauri it will be very welcome, if you can prepare the PR with configuration for IBM Netezza it can help others users of SchemaSpy

Usually we are not fixing issues with LDAP and some specific JDBC drivers, so the issue that you have is not directly SchemaSpy related...

If we can help you somehow please let us know, if not I will close this issue.

from schemaspy.

szauri avatar szauri commented on May 23, 2024

Schemaspy with netezza works almost "out of the box". My netezza.properties looks like follows (based on postgresql properties).
netezza.properties.txt

from schemaspy.

npetzall avatar npetzall commented on May 23, 2024

@szauri did you figure out the problem with LDAP if so I'm assuming that it had nothing to do with schemaspy and that we can add your properties file to schemaspy.

from schemaspy.

szauri avatar szauri commented on May 23, 2024

Thanks for help, i will work with my admins.

from schemaspy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.