postgresql - Kerberos for Schemacrawler PostgresDB -
i trying access postgres database using kerberos credentials not have use password schemacrawler ask password , providing following error.
schemacrawler 14.15.04 error: not connect jdbc:postgresql://nhc-contracts-db-dev.nicc.noblis.org:5432/networx?applicationname=schemacrawler;loggerlevel=debug, user 'phayes', properties {} re-run schemacrawler -? option or, re-run schemacrawler additional -loglevel=config option details on error apr 14, 2017 10:43:29 us.fatehi.commandlineparser.commandlineutility logsafearguments info: schemacrawler, v14.15.04 apr 14, 2017 10:43:29 us.fatehi.commandlineparser.commandlineutility logsafearguments info: command line: -server=postgresql -host=nhc-contracts-db-dev.nicc.noblis.org -port=5432 -database=networx -schemas=public -user=phayes -password=***** -infolevel=standard -command=schema -loglevel=config apr 14, 2017 10:43:29 us.fatehi.commandlineparser.commandlineutility logfullstacktrace severe: not connect jdbc:postgresql://nhc-contracts-db-dev.nicc.noblis.org:5432/networx?applicationname=schemacrawler;loggerlevel=debug, user 'phayes', properties {} schemacrawler.schemacrawler.schemacrawlersqlexception: not connect jdbc:postgresql://nhc-contracts-db-dev.nicc.noblis.org:5432/networx?applicationname=schemacrawler;loggerlevel=debug, user 'phayes', properties {} @ schemacrawler.schemacrawler.basedatabaseconnectionoptions.getconnection(basedatabaseconnectionoptions.java:183) @ schemacrawler.schemacrawler.basedatabaseconnectionoptions.getconnection(basedatabaseconnectionoptions.java:102) @ schemacrawler.tools.commandline.schemacrawlercommandline.execute(schemacrawlercommandline.java:127) @ schemacrawler.main.main(main.java:90) caused by: org.postgresql.util.psqlexception: gss authentication failed @ org.postgresql.gss.makegss.authenticate(makegss.java:66) @ org.postgresql.core.v3.connectionfactoryimpl.doauthentication(connectionfactoryimpl.java:594) @ org.postgresql.core.v3.connectionfactoryimpl.openconnectionimpl(connectionfactoryimpl.java:222) @ org.postgresql.core.connectionfactory.openconnection(connectionfactory.java:49) @ org.postgresql.jdbc.pgconnection.<init>(pgconnection.java:194) @ org.postgresql.driver.makeconnection(driver.java:431) @ org.postgresql.driver.connect(driver.java:247) @ schemacrawler.schemacrawler.basedatabaseconnectionoptions.getconnection(basedatabaseconnectionoptions.java:161) ... 3 more caused by: javax.security.auth.login.loginexception: no loginmodules configured pgjdbc @ javax.security.auth.login.logincontext.init(unknown source) @ javax.security.auth.login.logincontext.<init>(unknown source) @ org.postgresql.gss.makegss.authenticate(makegss.java:56) ... 10 more
is there anyway can resolve this?
schemacrawler allows alternate way connect, using jdbc database connection url string. please refer postgresql documentation relating "connecting database" construct appropriate url string.
then, instead of host , port, use url instead example below. if not plan to, or not required to, use password, please make sure provide empty password -password=
.
example snippet of schemacrawler command-line: -server=postgresql -url=<appropriate url here> -database=networx -schemas=public -user=phayes -password= -infolevel=standard -command=schema
sualeh fatehi, schemacrawler
Comments
Post a Comment