[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Chinese characters
> John Kristian wrote:
>
> > Characters should be represented in UTF-8, if you're using LDAP v3.
> > See RFC 2253 (DN string representation) and RFC 2279 (UTF-8).
csima wrote:
>
> Is there any way I could get a quick example of what a bind call would
> look like using this method, like binding in chinese or another language?
Here are Japanese and Swedish examples:
ldap_simple_bind_s (ld,
"cn=\351\253\230\347\224\260 sato, o=airius.com", /* Sato Takada */
"\347\224\237\345\221\275");
ldap_simple_bind_s (ld,
"cn=John \303\226str\303\266m, o=airius.com", /* John Ostrom */
"password");
I attach some sample directory entries, in LDIF <draft-good-ldap-ldif-00.txt>.
dn:: Y24944G+44Gk44GX44Gf44G+44GT44GoLCBvPWFpcml1cy5jb20=
cn:: 44G+44Gk44GX44Gf44G+44GT44Go
cn: Makoto `MAR_kun' MATSUSHITA
sn:: 44G+44Gk44GX44Gf
sn: MATSUSHITA
givenname:: 44G+44GT44Go
givenname: Makoto
mail: matusita@ics.es.osaka-u.ac.jp
title: Assistant Professor
ou: Information & Computer Sciences
ou: Osaka Univ., JAPAN
telephonenumber: +011 81 6 999 51
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2496auY55SwIHNhdG8sIG89YWlyaXVzLmNvbQ==
cn:: 6auY55SwIHNhdG8=
cn: sato takada
sn:: 6auY55Sw
sn: takada
givenname: sato
mail: stakada@mars.dtinet.or.jp
ou: Dream Train Internet
telephonenumber: +011 81 6 999 69
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y24954mH5YCJIOengOetliwgbz1haXJpdXMuY29t
cn:: 54mH5YCJIOengOetlg==
cn: Shuusaku Katakura
sn:: 54mH5YCJ
sn: Katakura
givenname:: 56eA562W
givenname: Shuusaku
mail: kata@surfline.ne.jp
uid: kata
title: Vice President
ou: Product Development
telephonenumber: +011 81 6 999 2
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495YmN55Sw5Ymj5aSq6YOOLCBvPWFpcml1cy5jb20=
cn:: 5YmN55Sw5Ymj5aSq6YOO
cn: Kentarou Maeda
sn:: 5YmN55Sw
sn: Maeda
givenname:: 5Ymj5aSq6YOO
givenname: Kentarou
mail: JBA01025@niftyserve.or.jp
uid: JBA01025
title: Member of Technical Staff
ou: Product Development
telephonenumber: +011 81 6 999 5
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495rGf6Jek5Y2a5paHLCBvPWFpcml1cy5jb20=
cn:: 5rGf6Jek5Y2a5paH
cn: Hirofumi ETO
sn:: 5rGf6Jek
sn: Eto
givenname:: 5Y2a5paH
givenname: Hirofumi
mail: etoh@bunroku.cc.saga-u.ac.jp
title: Visiting Professor
ou: Faculty of Science
ou: University of Tokyo, Japan
telephonenumber: +011 81 6 999 10
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495Lit5bed5a+b5rK7LCBvPWFpcml1cy5jb20=
cn:: 5Lit5bed5a+b5rK7
cn: Kanji Nakagawa
sn:: 5Lit5bed
sn: Nakagawa
givenname:: 5a+b5rK7
givenname: Kanji
mail: kanjy@sharp.co.jp
ou: Information Systems Group, SHARP Corp., Nara, Japan
telephonenumber: +011 81 6 999 11
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495LiJ5bO2IOm+jeWkqumDjiwgbz1haXJpdXMuY29t
cn:: 5LiJ5bO2IOm+jeWkqumDjg==
cn: Ryutarou Mishima
sn:: 5LiJ5bO2
sn: Mishima
givenname:: 6b6N5aSq6YOO
givenname: Ryutarou
mail: ryutaro@sanmedia.or.jp
ou: Co. Ltd Sanmedia
telephonenumber: +011 81 6 999 12
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495qOu5bedIOayuywgbz1haXJpdXMuY29t
cn:: 5qOu5bedIOayuw==
cn: Osamu Morikawa
sn:: 5qOu5bed
sn: Morikawa
givenname:: 5rK7
givenname: Osamu
mail: morikawa@nibh.go.jp
ou:: 55Sf5ZG95bel5a2m5bel5qWt5oqA6KGT56CU56m25omA
telephonenumber: +011 81 6 999 13
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495aSn5LqVIOOBkeOBhOWkqiwgbz1haXJpdXMuY29t
cn:: 5aSn5LqVIOOBkeOBhOWkqg==
cn: OOI Keita
sn:: 5aSn5LqV
sn: OOI
givenname:: 44GR44GE5aSq
givenname: Keita
mail: ooik@kurims.kyoto-u.ac.jp
ou: Research Institute for Mathematical Sciences (RIMS), Kyoto Univ.,Nihon. (M1-student)
telephonenumber: +011 81 6 999 15
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495bCP5bGxIOaVpuWtkCwgbz1haXJpdXMuY29t
cn:: 5bCP5bGxIOaVpuWtkA==
cn: BA.Koyama
cn: Atsuko Koyama
sn:: 5bCP5bGx
sn: Koyama
givenname:: 5pWm5a2Q
givenname: Atsuko
mail: KHE01631@niftyserve.or.jp
telephonenumber: +011 81 6 999 16
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495a+66KW/IOmbheWtkCwgbz1haXJpdXMuY29t
cn:: 5a+66KW/IOmbheWtkA==
cn: Masako Teranishi
sn:: 5a+66KW/
sn: Teranishi
givenname:: 6ZuF5a2Q
givenname: Masako
mail: mtera@imasy.or.jp
ou: Internet Mutual Aid Society of Yokohama
telephonenumber: +011 81 6 999 17
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y249VC4gU2FrYWkgKOmFkuS6lSksIG89YWlyaXVzLmNvbQ==
cn:: VC4gU2FrYWkgKOmFkuS6lSk=
sn: Sakai
mail: sakaisan@mb.infoweb.or.jp
telephonenumber: +011 81 6 999 18
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn: cn=Masaki Kojima, o=airius.com
cn: Masaki Kojima
sn: Kojima
givenname: Masaki
mail: mkojima@mb.infoweb.or.jp
ou: InfoWeb News Service
telephonenumber: +011 81 6 999 19
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495LiJ5a6F5rOw5LiWLCBvPWFpcml1cy5jb20=
cn:: 5LiJ5a6F5rOw5LiW
cn: Yasuyo Miyake
sn:: 5LiJ5a6F
sn: Miyake
givenname:: 5rOw5LiW
givenname: Yasuyo
mail: miyake@atom.ibaraki.ntt-at.co.jp
ou: NTT-AT
telephonenumber: +011 81 6 999 20
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495pyo5LiLIOahnOWtkCwgbz1haXJpdXMuY29t
cn:: 5pyo5LiLIOahnOWtkA==
cn: Sakurako Kinoshita
sn:: 5pyo5LiL
sn: Kinoshita
givenname:: 5qGc5a2Q
givenname: Sakurako
mail: skinoshi@psy.senshu-u.ac.jp
ou: ASCII Internet Freeway, Japan
telephonenumber: +011 81 6 999 22
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495bKh5pys5ZiJ5YmHLCBvPWFpcml1cy5jb20=
cn:: 5bKh5pys5ZiJ5YmH
cn: Yoshinori Okamoto
sn:: 5bKh5pys
sn: Okamoto
givenname:: 5ZiJ5YmH
givenname: Yoshinori
mail: laputa@osk.threewebnet.or.jp
ou: 3Web internet service
telephonenumber: +011 81 6 999 23
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495bCP5r6kIOWLiSwgbz1haXJpdXMuY29t
cn:: 5bCP5r6kIOWLiQ==
cn: Tsutomu Ozawa
sn:: 5bCP5r6k
sn: Ozawa
givenname:: 5YuJ
givenname: Tsutomu
mail: ozawa@po.cnet.or.jp
telephonenumber: +011 81 6 999 25
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495pyo5LiLIOmbheWkqywgbz1haXJpdXMuY29t
cn:: 5pyo5LiLIOmbheWkqw==
cn: Masao Kinoshita
sn:: 5pyo5LiL
sn: Kinoshita
givenname:: 6ZuF5aSr
givenname: Masao
mail: RHC02314@niftyserve.or.jp
telephonenumber: +011 81 6 999 26
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495YmN55Sw5pWm5Y+4LCBvPWFpcml1cy5jb20=
cn:: 5YmN55Sw5pWm5Y+4
cn: MAEDA Atusi
sn:: 5YmN55Sw
sn: MAEDA
givenname:: 5pWm5Y+4
givenname: Atusi
mail: mad@math.keio.ac.jp
ou: Faculty of Sci. and Tech.
ou: Keio Univ., Yokohama, Japan.
telephonenumber: +011 81 6 999 27
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y2495aSa55Sw5rK7LCBvPWFpcml1cy5jb20=
cn:: 5aSa55Sw5rK7
cn: Osamu Tada
sn:: 5aSa55Sw
sn: Tada
givenname:: 5rK7
givenname: Osamu
mail: NBH02633@niftyserve.or.jp
telephonenumber: +011 81 6 999 28
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y24955+i5baL6IGhLCBvPWFpcml1cy5jb20=
cn:: 55+i5baL6IGh
cn: SATOSHI YASHIMA
sn: YASHIMA
mail: ysatoshi@tokio.fsd.fujifilm.co.jp
ou:: 77ym77yz77yk
telephonenumber: +011 81 6 999 29
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: ja
objectclass: top
objectclass: person
objectclass: inetOrgPerson
dn:: Y249Sm9obiDDlnN0csO2bSwgbz1haXJpdXMuY29t
cn:: Sm9obiDDlnN0csO2bQ==
givenname: John
sn:: w5ZzdHLDtm0=
mail: john@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
title: Member of Technical Staff
ou: Product Development
telephonenumber: +011 46 8 123 4567
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv
dn:: Y249TWlrYWVsIMOFaGx1bmQsIG89YWlyaXVzLmNvbQ==
cn:: TWlrYWVsIMOFaGx1bmQ=
givenname: Mikael
sn:: w4VobHVuZA==
mail: mikael@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
title: Vice President
ou: Product Development
telephonenumber: +011 46 8 555 9069
facsimiletelephonenumber: +011 46 8 555 1992
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv
dn:: Y249w5ZyamFuIEFobHF1aXN0LCBvPWFpcml1cy5jb20=
cn:: w5ZyamFuIEFobHF1aXN0
givenname:: w5ZyamFu
sn: Ahlquist
mail: orjan@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
title: Vice President
ou: Sales
telephonenumber: +011 46 555 9280
facsimiletelephonenumber: +011 46 555 8473
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv
dn:: Y249w4VzYSDDhHJsZWJyYW5kLCBvPWFpcml1cy5jb20=
cn:: w4VzYSDDhHJsZWJyYW5k
givenname:: w4VzYQ==
sn:: w4RybGVicmFuZA==
mail: asa@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
title: Associate
ou: Sales
telephonenumber: +011 46 555 6067
facsimiletelephonenumber: +011 46 555 0111
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv
dn:: Y249S2FybCDDlnN0ZSwgbz1haXJpdXMuY29t
cn:: S2FybCDDlnN0ZQ==
givenname: Karl
sn:: w5ZzdGU=
mail: karl@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
title: Member of Technical Staff
ou: Product Development
telephonenumber: +011 46 555 4992
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv
dn:: Y249w5Z5dmluZCDDhXN0csO2bSwgbz1haXJpdXMuY29t
cn:: w5Z5dmluZCDDhXN0csO2bQ==
givenname:: w5Z5dmluZA==
sn:: w4VzdHLDtm0=
mail: oyvind@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
title: Associate
ou: Sales
telephonenumber: +011 46 555 5688
facsimiletelephonenumber: +011 46 555 0111
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv
dn: cn=Astrud Cederquist, o=airius.com
cn: Astrud Cederquist
givenname: Astrud
sn: Cederquist
mail: astrud@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
title: Regional Manager
ou: Sales
telephonenumber: +011 46 555 8815
facsimiletelephonenumber: +011 46 555 4774
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv
dn: cn=Zoltan Grzbac, o=airius.com
cn: Zoltan Grzbac
givenname: Zoltan
sn: Grzbac
mail: zoltan@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
telephonenumber: +011 46 555 2567
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv
dn: cn=Olaf Pedersen, o=airius.com
cn: Olaf Pedersen
givenname: Olaf
sn: Pedersen
mail: olaf@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
title: Administrative Assistant
telephonenumber: +011 46 555 0957
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv
dn:: Y249TGVpZiBIZWRzdHLDtm0sIG89YWlyaXVzLmNvbQ==
cn:: TGVpZiBIZWRzdHLDtm0=
givenname: Leif
sn:: SGVkc3Ryw7Zt
mail: leif@EssIndustrier.se
objectclass: top
objectclass: person
objectclass: inetOrgPerson
title: Member of Technical Staff
ou: Information Systems
telephonenumber: +011 46 555 1660
userpassword: {SHA}W6ph5Mm5Pz8GgiULbPgzG37mj9g=
preferredlanguage: sv