[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-14 Thread Rohini Jori (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17135081#comment-17135081
 ] 

Rohini Jori commented on SSHD-1014:
---

Hi [~lgoldstein] 

It is resolved. I have implemented this 'handleClientPasswordChangeRequest' in 
PasswordAuthenticator. and used the sshd jar version 2.4.0. So it is working 
now.

Thank You [~lgoldstein] and [~gnodet] for your support.

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Authenticate method code - Throws the 
> PasswordChangeRequiredException.txt, Normal-Login-LOGS.txt, POC LOGS 
> -password-change  version 2.3.1.txt, Password-change-Not Working- version 
> -2.3.1 - WinScp LOGS.txt, Password-change-Not Working- version -2.3.1.txt, 
> SERVER LOGS.txt, SSHDPasswordAuthenticator.java, SftpClientSSHD.java, 
> SftpServerDemo.java, SshdApplication.java, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt, 
> sshd.zip
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-11 Thread Lyor Goldstein (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17133359#comment-17133359
 ] 

Lyor Goldstein commented on SSHD-1014:
--

Your {{PasswordAuthenticator}} did not override the 
{{handleClientPasswordChangeRequest}} method so the default implementation was 
invoked - one that throws this exact exception...
{code:java}
default boolean handleClientPasswordChangeRequest(
ServerSession session, String username, String oldPassword, String 
newPassword) {
throw new UnsupportedOperationException("Password change not 
supported");
}
{code}

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Authenticate method code - Throws the 
> PasswordChangeRequiredException.txt, Normal-Login-LOGS.txt, POC LOGS 
> -password-change  version 2.3.1.txt, Password-change-Not Working- version 
> -2.3.1 - WinScp LOGS.txt, Password-change-Not Working- version -2.3.1.txt, 
> SERVER LOGS.txt, SSHDPasswordAuthenticator.java, SftpClientSSHD.java, 
> SftpServerDemo.java, SshdApplication.java, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt, 
> sshd.zip
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-10 Thread Rohini Jori (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17130481#comment-17130481
 ] 

Rohini Jori commented on SSHD-1014:
---

[^POC LOGS -password-change  version 2.3.1.txt]

[^sshd.zip]

 

Hi [~lgoldstein]

I have created one POC for password change. I am using jar with version 2.3.1.  
 

But I am getting this error in logs: *Failed (UnsupportedOperationException) to 
authenticate using factory method=password: Password change not supported.*

So how can we support the password change? Do we need to do any server 
configuration for that? ** 

 

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Authenticate method code - Throws the 
> PasswordChangeRequiredException.txt, Normal-Login-LOGS.txt, POC LOGS 
> -password-change  version 2.3.1.txt, Password-change-Not Working- version 
> -2.3.1 - WinScp LOGS.txt, Password-change-Not Working- version -2.3.1.txt, 
> SERVER LOGS.txt, SSHDPasswordAuthenticator.java, SftpClientSSHD.java, 
> SftpServerDemo.java, SshdApplication.java, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt, 
> sshd.zip
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-10 Thread Rohini Jori (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17130295#comment-17130295
 ] 

Rohini Jori commented on SSHD-1014:
---

 

[^Password-change-Not Working- version -2.3.1 - WinScp LOGS.txt]

[^SERVER LOGS.txt]

[^Authenticate method code - Throws the PasswordChangeRequiredException.txt]

 

Hi [~lgoldstein]

Yes, we have thrown the  PasswordChangeRequiredException in authenticate() 
method.  I have attached the server logs where you can see in logs says ' 
password change required'.  But after that the 
'handleClientPasswordChangeRequest' method not getting invoked. 

And this is happening for the versions 2.3.1 and above. 

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Authenticate method code - Throws the 
> PasswordChangeRequiredException.txt, Normal-Login-LOGS.txt, 
> Password-change-Not Working- version -2.3.1 - WinScp LOGS.txt, 
> Password-change-Not Working- version -2.3.1.txt, SERVER LOGS.txt, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt, 
> server logs.png
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-09 Thread Lyor Goldstein (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17129474#comment-17129474
 ] 

Lyor Goldstein commented on SSHD-1014:
--

[~rohinijori] I have reviewed the code and I did not find any changes that 
would explain what this issue describes. I recommend debugging it since you 
seem to be able to reproduce it. I would also suggest enabling DEBUG level logs 
as well as perhaps describing the scenario you claim work on version 2.3.1...

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Normal-Login-LOGS.txt, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-09 Thread Lyor Goldstein (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17129404#comment-17129404
 ] 

Lyor Goldstein commented on SSHD-1014:
--

{quote}
What could be the possible reasons that 'handleClientPasswordChangeRequest'  
method is not getting invoked even after the 'PasswordChangeRequiredException' 
exception throws? 
{quote}
Cannot tell - I  believe there are unit tests that check this (will need to 
verify). Anyway, are you sure {{PasswordChangeRequiredException}} is thrown ? 
remember, debugging is always an option...

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Normal-Login-LOGS.txt, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-09 Thread Rohini Jori (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17129372#comment-17129372
 ] 

Rohini Jori commented on SSHD-1014:
---

Hi [~gnodet]

Setting this '_UserAuthMethodFactory.ALLOW_NON_INTEGRITY_AUTH'_ property did 
not help. 

Do you have any other suggestion so that it will work with sshd-core jar 
version 2.3.1?

 

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Normal-Login-LOGS.txt, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-08 Thread Lyor Goldstein (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128445#comment-17128445
 ] 

Lyor Goldstein commented on SSHD-1014:
--

I am not sure that this flag is related to the 
{{handleClientPasswordChangeRequest}} - it only relaxes the requirement that 
password authentication take place only if executed over secure connection. It 
still  does not explain the behavior - if indeed it is a bug. As far as I can 
tell the method is invoked only if {{SSH_MSG_USERAUTH_REQUEST}} message has a 
TRUE indicator - as described in [RFC4252 - secion 
8|https://tools.ietf.org/html/rfc4252#section-8]

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Normal-Login-LOGS.txt, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-08 Thread Guillaume Nodet (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128307#comment-17128307
 ] 

Guillaume Nodet commented on SSHD-1014:
---

It's part of 2.4.0 release (2.3.1 does not actually exists).  See 
https://github.com/apache/mina-sshd/blob/sshd-2.4.0/sshd-common/src/main/java/org/apache/sshd/common/auth/UserAuthMethodFactory.java#L70

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Normal-Login-LOGS.txt, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[jira] [Commented] (SSHD-1014) Password Change Request - 'handleClientPasswordChangeRequest' not getting invoked with the sshd-core-2.3.1 jar version used.

2020-06-08 Thread Guillaume Nodet (Jira)


[ 
https://issues.apache.org/jira/browse/SSHD-1014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17128203#comment-17128203
 ] 

Guillaume Nodet commented on SSHD-1014:
---

That looks like a consequence of https://issues.apache.org/jira/browse/SSHD-948 
which has been fixed in 2.3.1.

> Password Change Request - 'handleClientPasswordChangeRequest' not getting 
> invoked with the sshd-core-2.3.1 jar version used.
> 
>
> Key: SSHD-1014
> URL: https://issues.apache.org/jira/browse/SSHD-1014
> Project: MINA SSHD
>  Issue Type: New Feature
>Reporter: Rohini Jori
>Priority: Major
> Attachments: Normal-Login-LOGS.txt, error1.png, 
> handleClientPasswordChange  CODE.txt, password-change-Request- LOGS.txt
>
>
> *Question:*
> Wanted to know  why the 'handleClientPasswordChangeRequest' method is working 
> with 'sshd-core-2.3.0' jar and not with the 'sshd-core-2.3.1' jar?
> *Description*:
>  In case of password change request, the authenticate method of 
> PasswordAuthenticator class throws the 'PasswordChangeRequiredException' 
>  which will internally calls 'handleClientPasswordChangeRequest' method where 
> the password is changed for the user.
> Method calls sequence-
>  1. PasswordAuthenticator.authenticate()
>  2. authenticate() method throws PasswordChangeRequiredException.
>  3. UserAuthPassword.checkPassword()
>  4. UserAuthPassword.handlePasswordChangeRequest()
>  5. shows the prompt to get the new password from user. Then click ok.
>  6. UserAuthPassword.handleClientPasswordChangeRequest() - change old 
> password.
>   
>   
>  *So the problem* is that  when we used the sshd-core-2.3.1 jar, The 
> 'handleClientPasswordChangeRequest' is not getting called after we receive 
> the password-change request. 
>   
>  But  When we used the 'sshd-core-2.3.0' jar  the 
> 'handleClientPasswordChangeRequest' method is getting called and also the 
> password changed successfully.
>  But after that we got the problem in authentication. we get the  'Server 
> refused to start a shell/command' authentication failed error.
> I have attached the logs & image for reference.
>  
> So Is this dependent on 'sshd-core' jar? Could you please help?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org