[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_modify_s() and EQUALITY (ITS#1929)



Zitat von Kurt Zeilenga <openldap-its@OpenLDAP.org>:

> Questions regarding LDAP and/or OpenLDAP software should
> be directed to an appropriate forum.  This ITS will be
> closed.
> 


Sorry,

but in my opinion it's a bug (slapd or schema), 
which will cause a lot of problems for client 
developers.

if I try to add/modify/delete attributes
withing a c programm using schema informations,
I run into trouble:

problem:
  the schema tells me, that it is possible, to
  add more than one "facsimilienumbers", but
  if I try to do this, an error "inappropriate matching" 
  occurs.
  I did some test, and puzzled out, that this problem 
  belongs to attributes which have a SYNTAX, but 
  no EQUALITY.
  
  at the the moment I use a workaround, which enforces
  single-valueness

LDAPAttributeType *lat
..
#ifdef OPENLDAPBUG
if(lat->at_equality_oid == NULL && lat->at_syntax_oid != NULL){
 /* enforce single-value */
 single_value = 1;
}
#endif
..


regards

thomas

----------------------------------------------------------------
Thomas.Reith@rhoen.de
http://webtomware.rhoen.de