Hi Harry, thanks for your feedback! Comments inlined

On 12/5/07, Harald Braumann <[EMAIL PROTECTED]> wrote:
> >
> Why so complicated? Why not just use a single <query/> tag, or some
> such, that contains the whole ldap query (including substituting
> node/domain for %u/%d). In case the query tag is given, the legacy uid
> and append-realm tags would just be ignored. IMHO that would be much
> simpler and more flexible. To quote your example, it would be something
> like <query>(&(uid=%u)(objectClass=inetorgerson))</query> (of
> course with stupid XML excapes).

You're right, this would be simpler, though I hate to present a
problem of escapes to the user. (I don't think there is such a problem
anywhere else in the configs, in fact.) I'll have a look into it.

> Actually "domain" and "realm" are two different things in jabberd2. The
> "domain" is the part of the jid after the `@' (without the resource
> part). This is also the term the XMPP RFC uses. The "realm" is whatever
> you specify as attribute in the <id/> tag. Thus "%r" and "%d"
> should map to different things. If you only support the domain part of
> the jid in the query, it should be "%d" only.

Ah, I wasn't aware of the distinction. In my case, I refer to the
realm defined in the c2s' and sm's configuration <id> tag. In fact, I
believe it really refers to a domain (in the code, on the query, the
"realm" variable only contains the domain part, without the
ressource). Even more confusing. Nevertheless, in light of your
explanation I guess I'll keep only '%d'


> Regards,
> harry

Best,
Jean
_______________________________________________
Jabberd2 mailing list
[email protected]
http://lists.xiaoka.com/listinfo.cgi/jabberd2-xiaoka.com

Reply via email to