RE: Fwd: General Feedback

"Kumar Singh, Rahul" <[email protected]> Thu, 28 Feb 2013 11:36:10 +0000
Newsgroups gmane.network.open-pegasus.general
Message-ID <7920D41A70030741B7899F203CCD286B16B61D8C@G5W2723.americas.hpqcorp.net>
Hi Vijayalakshmi

We were able to reproduce this issue locally.
There are two bugs you can use to track progress on this issue.

1.      http://bugzilla.openpegasus.org/show_bug.cgi?id=9599

2.      http://bugzilla.openpegasus.org/show_bug.cgi?id=9598

First authentication failing for this username did not have anything to do with content language.
It was logic within Pegasus code that had problem handling usernames with special characters.
You can use bug no: 9598 on OpenPegasus Bugzilla for changes with regards to this.
You can find more information there.

Also for cimuser and cimauth applications, the expected input is UTF-8 encoded.
You can follow bug no: 9599 on OpenPegasus Bugzilla for progress on this issue.

As for workaround to this problem  with cimuser and cimauth,
You can change the font of command prompt window to Lucida Console
And change code page to 65001 (UTF-8) using command chcp 65001.
And in the command give UTF-8 encoded values of username with special characters.

e.g, for this user "Ädministrator" you can give a command to add
cimuser -a -u  Ã"dministrator -w password

Regards
Rahul

From: Deshpande, Rohini (IESL)
Sent: 05 February 2013 21:05
To: Devchandra L Meetei; Vijayalakshmi Subramanyam
Cc: [email protected]
Subject: RE: Fwd: General Feedback

Hi Vijayalakshmi,

We are trying to reproduce this issue locally so that we can help you. Can you tell us the steps to reproduce? What client are you using ? Have you tried using some other client? By client I mean CIMClient, cimcli or wbemexec.

I'm guessing it is on Windows OS since the user is "Administrator".

Regards,
Rohini
Software Engineer/OpenPegasus Committer
Hewlett Packard

From: Devchandra L Meetei [mailto:[email protected]]
Sent: Tuesday, January 22, 2013 4:07 PM
To: Vijayalakshmi Subramanyam
Cc: [email protected]<mailto:[email protected]>
Subject: Re: Fwd: General Feedback

Considerring that you are building yourself from sources ,
I guess g11n and l18n support in pegasus is done through ICU.
May be you can try with ICU version lesser than 3.6.

On Tue, Jan 22, 2013 at 4:03 PM, Vijayalakshmi Subramanyam <[email protected]<mailto:[email protected]>> wrote:
Hi Devchandra,

Currently we have not building our code with any ICU version. I do not see the environment variable
PEGASUS_HAS_ICU defined on my system.

Thanks,
Viji
On Tue, Jan 22, 2013 at 3:45 PM, Devchandra L Meetei <[email protected]<mailto:[email protected]>> wrote:
Which version of ICU you are using, We will just check and get back tou you

On Tue, Jan 22, 2013 at 3:34 PM, Martin Kirk <[email protected]<mailto:[email protected]>> wrote:
Hi,

We are using the Open Pegasus version 2.10 in our application.
When we login to the application, we authenticate the username with the cimserver Authentication

In order to support Russian and German users, how can we authenticate usernames with special characters ?
Currently any username with special character is not being authenticated correctly. It is returned as "unauthorised" though a valid user is present.

Here is an extract of the cimserver.trc and log for a German username - Ädministrator

We have changed the Accept-Language header to accept German language and I ran this test on a German OS.

cimserver.trc

Connection: Keep-alive
11-CIMOperation: MethodCall
Content-type: application/xml; charset="utf-8"
Content-Language: de
11-CIMMethod: EnumerateInstances
Content-length: 670
Man: http://www.dmtf.org/cim/mapping/http/v1.0;ns=11
TE: trailers
Accept-Language: de, de-DE, *
Host: 127.0.0.1
11-CIMObject: root/PG_InterOp
Cache-Control: no-cache
11-CIMProtocolVersion: 1.0
Accept: text/html, text/xml, application/xml

<?xml version="1.0" encoding="UTF-8"?>
<CIM CIMVERSION="2.0" DTDVERSION="2.0"><MESSAGE ID="419577" PROTOCOLVERSION="1.0"><SIMPLEREQ><IMETHODCALL NAME="EnumerateInstances"><LOCALNAMESPACEPATH><NAMESPACE NAME="root"/><NAMESPACE NAME="PG_InterOp"/></LOCALNAMESPACEPATH><IPARAMVALUE NAME="ClassName"><CLASSNAME NAME="ARC_RegisteredProfile"/></IPARAMVALUE><IPARAMVALUE NAME="LocalOnly"><VALUE>true</VALUE></IPARAMVALUE><IPARAMVALUE NAME="DeepInheritance"><VALUE>true</VALUE></IPARAMVALUE><IPARAMVALUE NAME="IncludeQualifiers"><VALUE>false</VALUE></IPARAMVALUE><IPARAMVALUE NAME="IncludeClassOrigin"><VALUE>false</VALUE></IPARAMVALUE></IMETHODCALL></SIMPLEREQ></MESSAGE></CIM>
1358468400s-694352us: Http [1964:18446744073709551614:HTTPAuthenticatorDelegator.cpp:115]: Entering method HTTPAuthenticatorDelegator::_sendResponse
1358468400s-694352us: Http [1964:18446744073709551614:HTTPConnection.cpp:350]: Entering method HTTPConnection::handleEnqueue
1358468400s-694352us: Http [1964:18446744073709551614:HTTPConnection.cpp:375]: HTTPConnection::handleEnqueue - HTTP_MESSAGE
1358468400s-694352us: XmlIO [1964:18446744073709551614:HTTPConnection.cpp:479]: <!-- Response: queue id: 21 -->
HTTP/1.1 401 Unauthorized

Log File

01/18/13-05:50:00 INFO    cimserver: Authentication failed for user Ädministrator from client IP address 127.0.0.1.
01/18/13-05:52:43 INFO    cimserver: Authentication failed for user Ädministrator from client IP address 127.0.0.1.
01/18/13-05:55:12 INFO    cimserver: Authentication failed for user Ädministrator from client IP address 127.0.0.1.

I tried adding usernames with special characters using cimauth and cimuser applications .It fails with an unknown exception.
Am I missing something ? Any help would be appreciated.

Thanks & Regards,
Vijayalakshmi Subramanyam
Staff SW Design Engineer
PMC Sierra India Pvt Ltd


--
Warm Regards
--Dev
OpenPegasus Developer
"It's Always better to try and fail instead of not doing/trying anything"




--
Warm Regards
--Dev
OpenPegasus Developer
"It's Always better to try and fail instead of not doing/trying anything"