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

Caracter with accent error #56

Open
KleyLima opened this issue Jan 11, 2021 · 1 comment
Open

Caracter with accent error #56

KleyLima opened this issue Jan 11, 2021 · 1 comment

Comments

@KleyLima
Copy link

KleyLima commented Jan 11, 2021

Maybe I am making something wrong but when I try to add this entry

[
  objectClass: ["top", "person", "inetOrgPerson"],
  cn: "rodrigo+1@email",
  sn: "Rodrigo Rebouças",
  displayName: "Rodrigo Rebouças",
  uid: "na",
  mail: "rodrigo+1@email",
  userPassword: 123
]

I receive:

14:47:07.844 [debug] add request = {'AddRequest',
                  "cn=rodrigo\\+1@email,ou=users,ou=opengalaxy,dc=opengalaxy",
                  [{'AddRequest_attributes',"objectClass",
                       ["top","person","inetOrgPerson"]},
                   {'AddRequest_attributes',"cn",["rodrigo+1@email"]},
                   {'AddRequest_attributes',"sn",["Rodrigo Rebouças"]},
                   {'AddRequest_attributes',"displayName",
                       ["Rodrigo Rebouças"]},
                   {'AddRequest_attributes',"uid",["na"]},
                   {'AddRequest_attributes',"mail",["rodrigo+1@email"]},
                   {'AddRequest_attributes',"userPassword",["123"]}]}

14:47:07.845 [debug] add reply = {ok,{'LDAPMessage',2,
                    {addResponse,
                        {'LDAPResult',invalidAttributeSyntax,[],
                            "sn: value #0 invalid per syntax",asn1_NOVALUE}},
                    asn1_NOVALUE}}

Sounds like encoding to me or if I done something wrong please tell me, thanks!!

@KleyLima
Copy link
Author

Alas, to make it clear when I just change ç for c in the sn parameter:

[
  objectClass: ["top", "person", "inetOrgPerson"],
  cn: "rogen@email",
  sn: "Rodrigo Reboucas",
  displayName: "Rodrigo Reboucas",
  uid: "na",
  mail: "rogen@email",
  userPassword: 123
]

Everything runs fine:

14:50:31.698 [debug] add request = {'AddRequest',
                  "cn=rogen@email,ou=users,ou=opengalaxy,dc=opengalaxy",
                  [{'AddRequest_attributes',"objectClass",
                       ["top","person","inetOrgPerson"]},
                   {'AddRequest_attributes',"cn",["rogen@email"]},
                   {'AddRequest_attributes',"sn",["Rodrigo Reboucas"]},
                   {'AddRequest_attributes',"displayName",
                       ["Rodrigo Reboucas"]},
                   {'AddRequest_attributes',"uid",["na"]},
                   {'AddRequest_attributes',"mail",["rogen@email"]},
                   {'AddRequest_attributes',"userPassword",["123"]}]}


14:50:31.703 [debug] add reply = {ok,{'LDAPMessage',2,
                    {addResponse,{'LDAPResult',success,[],[],asn1_NOVALUE}},
                    asn1_NOVALUE}}

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

1 participant