Spaces in usernames (JID)

I've install ejabberd at Win box, config it for ldap auth, create some shared groups and it work perfect. But it was for test lab, where used username 'tester'.
When I try to user really username, which in my AD has spaces ('User FG') it could not auth against LDAP server.
Can I use that usernames and auth in LDAP?
Testlab Openfire has workaround to space, if I type 'User\20FG' it auth in LDAP, in ejabberd it doesn't work.

=INFO REPORT==== 2010-04-30 12:06:23 ===
D(<0.266.0>:eldap:634) : {searchRequest,
                          {'SearchRequest',"dc=domain",wholeSubtree,
                           neverDerefAliases,0,0,false,
                           {'and',
                            [{equalityMatch,
                              {'AttributeValueAssertion',"sAMAccountName",
                               "user fg"}},
                             {present,"memberOf"}]},
                           ["sAMAccountName"]}}

=INFO REPORT==== 2010-04-30 12:06:23 ===
D(<0.266.0>:eldap:695) : {searchResEntry,
                             {'SearchResultEntry',
                                 [ 
some digits, sniped by me
                                  ],
                                 [{'PartialAttributeList_SEQOF',
                                      "sAMAccountName",
                                      ["User FG"]}]}}

=INFO REPORT==== 2010-04-30 12:06:23 ===
D(<0.266.0>:eldap:695) : {searchResDone,
                             {'LDAPResult',success,[],[],asn1_NOVALUE}}

=INFO REPORT==== 2010-04-30 12:06:23 ===
D(<0.278.0>:eldap:634) : {bindRequest,
                             {'BindRequest',3,
                                 [
                                  some digits, sniped by me],
                                 {simple,"mysecretpassword"}}}

=INFO REPORT==== 2010-04-30 12:06:23 ===
D(<0.278.0>:eldap:695) : {bindResponse,
                             {'BindResponse',success,[],[],asn1_NOVALUE,
                                 asn1_NOVALUE}}

=INFO REPORT==== 2010-04-30 12:06:23 ===
D(<0.371.0>:ejabberd_c2s:1412) : Send XML on stream = "<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><not-authorized/></failure>"

Re: Spaces in usernames (JID)

ejabberd's ldap module doesn't support "JID Escaping" (XEP-0106) so it is impossible to use usernames with spaces.

Syndicate content