Hi,

Merry pagan festival time to all!

I am using $ldap->compare in a script to synchronise an LDAP database from a MySQL database (http://ssis.sourceforge.net/), and am getting a return error code of 18 (LDAP_INAPPROPRIATE_MATCHING).

The code is a cut and paste from another attribute, which works fine, and while I have looked for stupid code errors, I could not see any.

I then started looking at the schema, and realised that there is no EQUALITY or SUBSTR defined in the facsimileTelephoneNumber attribute and wondered if this might be causing the problem.

I also found on Google a reference to a draft RFC to add EQUALITY and SUBSTR to the attribute definition, dated only a few months ago. A search at the iefc doesn't show anything up, and the latest core schema at the openLDAP site seems to have the same definition for the attribute as I have on my LDAP server.

So, simple question: Should the $ldap->compare code work with facsimileTelephoneNumber (in which case I am doing something stupid) or does the lack of a EQUALITY / SUBSTR line in the definition mean that compare command cannot work, and therefore I need to re-work my code.

I am not subscribed to the list so can people please make sure my email address is in the to or cc line.

Happy new year to all,

Regards,


-- Marco van Beek =================== Supporting Role Ltd Tel: 0870 757 2824 Fax: 0870 757 2826 Mob: 0788 770 3604 ===================

Reply via email to