You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafodion.apache.org by "Gao, Rui-Xian (JIRA)" <ji...@apache.org> on 2016/12/21 09:53:58 UTC

[jira] [Commented] (TRAFODION-2411) connection aborted when connecting with a re-registered user

    [ https://issues.apache.org/jira/browse/TRAFODION-2411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15766638#comment-15766638 ] 

Gao, Rui-Xian commented on TRAFODION-2411:
------------------------------------------

If we provide hostname after the abort message, the connection will succeed.

SQL>connect qauser10/mypasswd;

 Server aborted abnormally or Connection timed out

Host Name/IP Address: 192.168.1.6:23400
Connected to EsgynDB Advanced

SQL>select current_user from (values(1)) t;

(EXPR)
--------------------------------------------------------------------------------------------------------------------------------
QAUSER10                                                                        

--- 1 row(s) selected.


> connection aborted when connecting with a re-registered user
> ------------------------------------------------------------
>
>                 Key: TRAFODION-2411
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2411
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: sql-security
>    Affects Versions: 2.2-incubating
>            Reporter: Gao, Rui-Xian
>            Assignee: Roberta Marton
>
> If we unregister a user and register again, then use the re-registered user to connect to database, the connection will get 'server aborted' info, and then it's actually connected as DB__ROOT.
> [trafodion@gyvm-1 security]$ trafci
> Welcome to EsgynDB Enterprise Command Interface
> Copyright (c) 2015-2016 Esgyn Corporation
> Host Name/IP Address: gyvm-1.novalocal:23400
> User Name: zz
> *** ERROR[8837] Invalid username or password.  User: ZZ [2016-12-21 11:44:15]
> User Name: trafodion
> Password:
> Role Name [Primary Role]:
> Connected to EsgynDB Advanced
> SQL>unregister user qauser10;
> --- SQL operation complete.
> SQL>register user qauser10;
> --- SQL operation complete.
> SQL>connect qauser10/mypasswd;
>  Server aborted abnormally or Connection timed out
> *************************************************************************************
> it didn't quit, asked for host name, if we don't provide any info and hit Enter directly, then we will be back to the connection as DB__ROOT, so connecting with the re-registered user failed.
> *************************************************************************************
> Host Name/IP Address:
> Unknown Host:
> Host Name/IP Address:
> Unknown Host:
> SQL>select current_user from (values(1)) t;
> (EXPR)
> --------------------------------------------------------------------------------------------------------------------------------
> DB__ROOT                                                                        
> --- 1 row(s) selected.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)