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

UTF-8 support #6

Open
stdweird opened this issue Apr 1, 2016 · 0 comments
Open

UTF-8 support #6

stdweird opened this issue Apr 1, 2016 · 0 comments
Assignees

Comments

@stdweird
Copy link
Owner

stdweird commented Apr 1, 2016

IPA returns data encoded in utf-8. Check if this is correctly handled. Also, data should be send in utf8.

Example of user_show.

In this example employeeType has the value: Dado de baja automáticamente..

Send

{"params":[["notif362_industria"],{"version":"2.156","all":"1","raw":true}],"method":"user_show"}

Received

HTTP/1.1 200 Success
Connection: close
Date: Sat, 02 Apr 2016 19:59:49 GMT
Server: Apache/2.4.6 (Red Hat Enterprise Linux) mod_auth_gssapi/1.3.1 mod_nss/2.4.6 NSS/3.19.1 Basic ECC mod_wsgi/3.4 Python/2.7.5
Vary: Accept-Encoding
Content-Length: 2562
Content-Type: application/json; charset=utf-8
Client-Date: Sat, 02 Apr 2016 19:59:52 GMT
Client-Peer: 10.11.0.34:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /O=EXAMPLE.COM/CN=Certificate Authority
Client-SSL-Cert-Subject: /O=EXAMPLE.COM/CN=ipa.example.com
Client-SSL-Cipher: AES256-SHA
Client-SSL-Socket-Class: IO::Socket::SSL
Set-Cookie: ipa_session=c2369ac3a5ce75d7af408c1e2c6dfed2; Domain=ipa.example.com; Path=/ipa; Expires=Sat, 02 Apr 2016 20:19:49 GMT; Secure; HttpOnly

{
    "error": null, 
    "id": null, 
    "principal": "[email protected]", 
    "result": {
        "result": {
            "cn": [
                "Juan Manuel Moreno"
            ], 
            "displayName": [
                "Juan Manuel Moreno"
            ], 
            "dn": "uid=notif362_industria,cn=users,cn=accounts,dc=example,dc=com", 
            "employeeType": [
                "Dado de baja autom\u00e1ticamente."
            ], 
            "gecos": [
                "Juan Manuel Moreno"
            ], 
            "gidnumber": [
                "228000176"
            ], 
            "givenname": [
                "Juan Manuel"
            ], 
            "has_keytab": [
                "TRUE"
            ], 
            "has_password": [
                "TRUE"
            ], 
            "homedirectory": [
                "/home/notif362_industria"
            ], 
            "initials": [
                "JM"
            ], 
            "ipaUniqueID": [
                "fb46d718-f5f5-11e5-ae9c-005056b63f59"
            ], 
            "krbLastPwdChange": [
                "20160402193345Z"
            ], 
            "krbPasswordExpiration": [
                "20160402193345Z"
            ], 
            "krbPrincipalName": [
                "[email protected]"
            ], 
            "loginshell": [
                "/bin/sh"
            ], 
            "mail": [
                "[email protected]"
            ], 
            "memberof": [
                "cn=ipausers,cn=groups,cn=accounts,dc=example,dc=com"
            ], 
            "nsaccountlock": [
                "FALSE"
            ], 
            "objectClass": [
                "ipaobject", 
                "person", 
                "top", 
                "ipasshuser", 
                "inetorgperson", 
                "organizationalperson", 
                "krbticketpolicyaux", 
                "krbprincipalaux", 
                "inetuser", 
                "posixaccount", 
                "ipaSshGroupOfPubKeys", 
                "mepOriginEntry"
            ], 
            "sn": [
                "Moreno"
            ], 
            "title": [
                "Ninguno"
            ], 
            "uid": [
                "notif362_industria"
            ], 
            "uidnumber": [
                "228000176"
            ]
        }, 
        "summary": null, 
        "value": "notif362_industria"
    }, 
    "version": "4.2.0"
}
@NickCis NickCis self-assigned this Apr 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants