From: Ralf Haferkamp Date: Wed, 20 Apr 2005 12:54:49 +0000 (+0000) Subject: support for syntax and equality matching rule X-Git-Tag: OPENLDAP_AC_BP~868 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7389cb27ed7a322ebb4d3705a5ce473a2dac89e8;p=openldap support for syntax and equality matching rule --- diff --git a/contrib/ldapc++/src/LDAPAttrType.cpp b/contrib/ldapc++/src/LDAPAttrType.cpp index f10b7208cf..121f9b6250 100644 --- a/contrib/ldapc++/src/LDAPAttrType.cpp +++ b/contrib/ldapc++/src/LDAPAttrType.cpp @@ -13,8 +13,6 @@ LDAPAttrType::LDAPAttrType(){ oid = string (); desc = string (); - equality = string (); - syntax = string (); names = StringList (); single = false; } @@ -25,8 +23,6 @@ LDAPAttrType::LDAPAttrType (const LDAPAttrType &at){ oid = at.oid; desc = at.desc; - equality = at.equality; - syntax = at.syntax; names = at.names; single = at.single; } @@ -44,8 +40,6 @@ LDAPAttrType::LDAPAttrType (string at_item) { if (a) { this->setNames (a->at_names); this->setDesc (a->at_desc); - this->setEquality (a->at_equality_oid); - this->setSyntax (a->at_syntax_oid); this->setOid (a->at_oid); this->setSingle (a->at_single_value); } @@ -70,20 +64,6 @@ void LDAPAttrType::setDesc (char *at_desc) { desc = at_desc; } -void LDAPAttrType::setEquality (char *at_equality_oid) { - equality = string (); - if (at_equality_oid) { - equality = at_equality_oid; - } -} - -void LDAPAttrType::setSyntax (char *at_syntax_oid) { - syntax = string (); - if (at_syntax_oid) { - syntax = at_syntax_oid; - } -} - void LDAPAttrType::setOid (char *at_oid) { oid = string (); if (at_oid) @@ -102,14 +82,6 @@ string LDAPAttrType::getDesc () { return desc; } -string LDAPAttrType::getEquality () { - return equality; -} - -string LDAPAttrType::getSyntax () { - return syntax; -} - StringList LDAPAttrType::getNames () { return names; } diff --git a/contrib/ldapc++/src/LDAPAttrType.h b/contrib/ldapc++/src/LDAPAttrType.h index cb35f4032d..3042ab5a33 100644 --- a/contrib/ldapc++/src/LDAPAttrType.h +++ b/contrib/ldapc++/src/LDAPAttrType.h @@ -22,7 +22,7 @@ using namespace std; class LDAPAttrType{ private : StringList names; - string desc, oid, equality, syntax; + string desc, oid; bool single; public : @@ -63,16 +63,6 @@ class LDAPAttrType{ */ string getOid (); - /** - * Returns equality matching rule - */ - string getEquality (); - - /** - * Returns attribute syntax definition - */ - string getSyntax (); - /** * Returns attribute name (first one if there are more of them) */ @@ -84,14 +74,12 @@ class LDAPAttrType{ StringList getNames(); /** - * Returns true if attribute type allows only single value + * Returns true if attribute type hllows only single value */ bool isSingle(); void setNames (char **at_names); void setDesc (char *at_desc); - void setEquality (char *at_equality_oid); - void setSyntax (char *at_syntax_oid); void setOid (char *at_oid); void setSingle (int at_single_value);