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

CA-150404: iSCSI login fails with non-ASCII CHAP credentials #230

Closed
wants to merge 2 commits into from

Conversation

kostaslambda
Copy link
Contributor

The fix addresses the problem of not being able to attach an iSCSI based SR to
XenServer, if the target has specified non-ASCII characters for its CHAP
username and/or password.

Usernames: 江月, üöäÜÖÄáÀ
Passwords: 江月江月江月江月江月江月, üöäÜÖÄadmin!23

After the fix:

  • Attaching an iSCSI SR using a WS2012R2 target:
    Can use any non-ASCII characters for username but only ASCII for
    passwords.
  • Attaching an iSCSI SR using an IET target:
    Can use any non-ASCII characters for username and passwords.

Signed-off-by: Kostas Ladopoulos Konstantinos.Ladopoulos@citrix.com

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.65%) when pulling d53a3a8 on kostaslamda:CA-150404 into f93497b on xapi-project:master.

@kostaslambda
Copy link
Contributor Author

Please test this.

@siddharthv
Copy link
Contributor

@kostaslamda Could you please resolve the conflicts and rebase your patch ?

@siddharthv
Copy link
Contributor

@kostaslamda Why does a WS2012R2 target not allow non-ASCII characters for passwords ?

The fix addresses the problem of not being able to attach an iSCSI based SR to
XenServer, if the target has specified non-ASCII characters for its CHAP
username and/or password.

Usernames: 江月, üöäÜÖÄáÀ
Passwords: 江月江月江月江月江月江月, üöäÜÖÄadmin!23

After the fix:
    * Attaching an iSCSI SR using a WS2012R2 target.
      Can use any non-ASCII characters for username but only ASCII for
      passwords.

    * Attaching an iSCSI SR using an IET target.
      Can use any non-ASCII characters for username and passwords.

Signed-off-by: Kostas Ladopoulos <konstantinos.ladopoulos@citrix.com>
Signed-off-by: Kostas Ladopoulos <konstantinos.ladopoulos@citrix.com>
@kostaslambda
Copy link
Contributor Author

Please test this

@kostaslambda
Copy link
Contributor Author

Please retest this

andrey-podko pushed a commit to andrey-podko/sm that referenced this pull request Aug 16, 2022
GitHub: closes xapi-project#230 on xapi-project/sm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants