[Kolab-devel] Cyrus ptloader and canonification ( '.' and '^' divider in addresses )

Cornelius Hald hald at icandy.de
Tue Feb 17 13:22:05 CET 2015


Hmm, well yes. The question is why :)
I guess I need to dig deeper into that code...

Thanks,
Conny

On Wed, 2015-02-11 at 21:48 +0100, Daniel Hoffend wrote:
> Sounds like a mixup between the external and internal userid. The (wrong)!one with ^ is the Cyrus internal notation while the correct one would the external.
> 
> --
> Regards
> Daniel Hoffend
> 
> > Am 11.02.2015 um 20:02 schrieb Cornelius Hald <hald at icandy.de>:
> > 
> > Hi guys!
> > 
> > Yesterday I've tried again to hunt down my mysterious crashes in
> > ptloader. Therefore I've forked the cyrus package on OBS and added a lot
> > of debug output to ptclient/ldap.c. In particular to ptsmodule_get_dn()
> > because that is where the crash occurs.
> > 
> > I'm still not sure what causes the crash, but found something else I
> > can't really explain. So I'm hoping someone here could point me in the
> > right direction.
> > 
> > It looks like ptsmodule_get_dn() tries to find the DN for a given user
> > (or email address, or alias, etc.)
> > 
> > Usually the generated LDAP filter looks like this:
> > (|(&(|(uid=cyrus-admin)(uid=cyrus-murder))(uid=peter.weber))(&(|(uid=peter.weber)(mail=peter.weber at example.com)(mail=peter.weber@))(objectclass=kolabinetorgperson)))
> > 
> > And returns a DN like that:
> > uid=weber,ou=People,dc=example,dc=com
> > 
> > So far so good. But sometimes I see queries for the same user but with
> > '^' instead of '.' as divider between first name and last name.
> > 
> > Like this:
> > (|(&(|(uid=cyrus-admin)(uid=cyrus-murder))(uid=peter^weber))(&(|(uid=peter^weber)(mail=peter^weber at example.com)(mail=peter^weber@))(objectclass=kolabinetorgperson)))
> > 
> > Those queries do not return a valid DN but PTSM_FAIL.
> > 
> > So my question is: Why are the requests sometimes in one format and
> > sometimes in a different format. And is that intentional.
> > 
> > Thanks!
> > Conny
> > 
> > _______________________________________________
> > devel mailing list
> > devel at lists.kolab.org
> > https://lists.kolab.org/mailman/listinfo/devel
> _______________________________________________
> devel mailing list
> devel at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/devel



More information about the devel mailing list