From dev-return-43820-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Tue Jul 23 14:42:51 2013 Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFA431047E for ; Tue, 23 Jul 2013 14:42:51 +0000 (UTC) Received: (qmail 49031 invoked by uid 500); 23 Jul 2013 14:42:51 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 47730 invoked by uid 500); 23 Jul 2013 14:42:42 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Delivered-To: moderator for dev@directory.apache.org Received: (qmail 38044 invoked by uid 99); 23 Jul 2013 14:40:01 -0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) X-Env-Sender: Matthew.Goudge@qxlva.com X-Msg-Ref: server-6.tower-188.messagelabs.com!1374590353!752381!1 X-Originating-IP: [81.171.156.211] X-StarScan-Received: X-StarScan-Version: 6.9.11; banners=qxlva.com,-,- X-VirusChecked: Checked From: Matthew Goudge To: "dev@directory.apache.org" Subject: After adding new m-may attribute to a custom class in a schema, can't then add the attribute to an entry Thread-Topic: After adding new m-may attribute to a custom class in a schema, can't then add the attribute to an entry Thread-Index: Ac6HsmW6u2eBMzYjQL+/Bhev05OasA== Date: Tue, 23 Jul 2013 14:39:11 +0000 Message-ID: <6463D72BD742544CA4CEB23572C4A21BAF113A9F@Q-EX2.qxlva-domain.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [192.168.176.154] Content-Type: multipart/related; boundary="_007_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_"; type="multipart/alternative" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_007_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_ Content-Type: multipart/alternative; boundary="_000_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_" --_000_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm having odd issues with adding a new m-may attribute to a custom metaOb= jectClass in our schema. We created a custom class in the initial release= of the software with the following ldif: dn: m-oid=3D1.3.6.1.4.1.26156.30.0.0.1.12, ou=3DobjectClasses, cn=3Dconneq= t-config, ou=3Dschema objectclass: metaObjectClass objectclass: metaTop objectclass: top m-oid: 1.3.6.1.4.1.26156.30.0.0.1.12 m-name: adapterMailbox m-supObjectClass: top m-must: email m-must: smtpHost m-must: smtpPort m-must: userPassword Further changes then required the addition of an optional enabled/disabled= flag, so the following update ldif was created: dn: m-oid=3D1.3.6.1.4.1.26156.30.0.0.0.1, ou=3DattributeTypes, cn=3Dconneq= t-config, ou=3Dschema objectclass: metaAttributeType objectclass: metaTop objectclass: top m-oid: 1.3.6.1.4.1.26156.30.0.0.0.1 m-name: isActiveFlag m-description: A boolean flag to indicate if an entry is active or not m-equality: caseIgnoreMatch m-ordering: booleanMatch m-syntax: 1.3.6.1.4.1.1466.115.121.1.7 m-length: 1 m-singleValue: TRUE dn: m-oid=3D1.3.6.1.4.1.26156.30.0.0.1.12, ou=3DobjectClasses, cn=3Dconneq= t-config, ou=3Dschema changetype: modify add: m-may m-may: isActiveFlag Now the problems I have are two-fold: firstly, when I try to add the isAct= iveFlag attribute to an entry through Apache Directory Studio, it gives a = warning saying the attribute type is not allowed. Whilst I can click thro= ugh this, the second problem is that when I try to add entries programmati= cally: var name =3D string.Format("email=3D{0}", emailAddress); var entry =3D container.Children.Add(name, "adapterMailbox"); entry.Properties["userPassword"].Value =3D password; entry.Properties["smtpHost"].Value =3D smtpHost; entry.Properties["smtpPort"].Value =3D smtpPort; entry.Properties["isActiveFlag"].Value =3D isActiveFlag; entry.CommitChanges(); It is throwing a DirectoryServicesCOMException with message "The requested= operation did not satisfy one or more constraints associated with the cla= ss of the object." Anyone able to shed any light on what might be going on? Cheers Matthew Goudge Developer [Quicksilva] Quicksilva Systems Integration Solutions | www.qxlva.com Tel: 01249 751 000 | matthew.goudge@qxlva.com [Twitter][LinkedIn][MerQury] ______________________________________________________________________ The Company gives no warranty as to the accuracy or completeness of electr= onic mail messages sent over the Internet and accepts no responsibility fo= r changes made after it was sent. Any opinion expressed in this email may = be personal to the author, may not necessarily reflect the opinions of the= Company or its affiliates and may be subject to change without notice.=20= The information contained in this communication is confidential and/or pro= prietary business or technical data. If you are not the intended recipient= , you are hereby notified that any dissemination, copying or distribution = of this communication, or the taking of any action in reliance on the cont= ents of this communication, is strictly prohibited. If you have received t= his communication in error, please immediately notify us electronically by= return message, and delete or destroy all copies of this communication. Quicksilva Limited, Reg No 3860799, Incorporated at Companies House, Cardi= ff. Registered Office: Langley Gate, Swindon Road, Chippenham, Wiltshire, SN15= 5SE. Vat Reg No 762 8082 16.=20 ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ --_000_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I’m having odd issues with adding a new m-may= attribute to a custom metaObjectClass in our schema.  We created a c= ustom class in the initial release of the software with the following ldif= :

 

dn: m-oid=3D1.3.6.1.4.1.26156.30.0.0.1.12, ou=3DobjectClasses, cn=3Dconn= eqt-config, ou=3Dschema

objectclass: metaObjectClass

objectclass: metaTop

objectclass: top

m-oid: 1.3.6.1.4.1.26156.30.0.0.1.12

m-name: adapterMailbox

m-supObjectClass: top

m-must: email

m-must: smtpHost

m-must: smtpPort

m-must: userPassword

 

Further changes then required the addition of an op= tional enabled/disabled flag, so the following=20update ldif was created:<= o:p>

 

dn: m-oid=3D1.3.6.1.4.1.26156.30.0.0.0.1, ou=3DattributeTypes, cn=3Dconn= eqt-config, ou=3Dschema

objectclass: metaAttributeType

objectclass: metaTop

objectclass: top

m-oid: 1.3.6.1.4.1.26156.30.0.0.0.1

m-name: isActiveFlag

m-description: A boolean flag to indicate if an entry is active or not

m-equality: caseIgnoreMatch

m-ordering: booleanMatch

m-syntax: 1.3.6.1.4.1.1466.115.121.1.7

m-length: 1

m-singleValue: TRUE

 

dn: m-oid=3D1.3.6.1.4.1.26156.30.0.0.1.12, ou=3DobjectClasses, cn=3Dconn= eqt-config, ou=3Dschema

changetype: modify

add: m-may

m-may: isActiveFlag

 

Now the problems I have are two-fold: firstly, when= I try to add the isActiveFlag attribute to an entry through Apache Direct= ory Studio, it gives a warning saying the attribute type is not allowed.&n= bsp; Whilst I can click through this, the second problem is that when I try to add entries programmatically:

 

var name =3D string.Format("email=3D{0}", emailAddress);

var entry =3D container.Children.Add(name, "adapterMailbox");

entry.Properties["userPas= sword"].Value =3D password;

entry.Properties["smtpHos= t"].Value =3D smtpHost;

entry.Properties["smtpPor= t"].Value =3D smtpPort;

entry.Properties["isActiv= eFlag"].Value =3D isActiveFlag;

entry.CommitChanges();

 

It is throwing a Direct= oryServicesCOMException with message “The requested = operation did not satisfy one or more constraints associated with the class of the object.

 

Anyone able to shed any light on what might be goin= g on?

 

Cheers

 

Matthew Goudge

Developer

3D"Quicksilva"= =

Quicksilva Systems Int= egration Solutionswww.qxlva.com

Tel: 01249 751= 000 | = matthew.goudge@qxlva.com

3D=3D"LinkedIn"=3D"MerQury"

 


______________________________________________________________________
=
The Company gives no warranty as to the accuracy or completeness of electr= onic mail messages sent over the Internet and accepts no responsibility fo= r changes made after it was sent. Any opinion expressed in this email may = be personal to the author, may not necessarily reflect the opinions of the= Company or its affiliates and may be subject to change without notice.
The information contained in this communication is confidential and/or pro= prietary business or technical data. If you are not the intended recipient= , you are hereby notified that any dissemination, copying or distribution = of this communication, or the taking of any action in reliance on the cont= ents of this communication, is strictly prohibited. If you have received t= his communication in error, please immediately notify us electronically by= return message, and delete or destroy all copies of this communication.
Quicksilva Limited, Reg No 3860799, Incorporated at Companies House, Cardi= ff.
Registered Office: Langley Gate, Swindon Road, Chippenham, Wiltshire, SN15= 5SE. Vat Reg No 762 8082 16.

______________________________________________________________________
= This email has been scanned by the Symantec Email Security.cloud service.<= BR> For more information please visit http://www.symanteccloud.com
______________________________________________________________________
= --_000_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_-- --_007_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_ Content-Type: image/gif; name="image001.gif" Content-Description: image001.gif Content-Disposition: inline; filename="image001.gif"; size=1370; creation-date="Tue, 23 Jul 2013 14:39:11 GMT"; modification-date="Tue, 23 Jul 2013 14:39:11 GMT" Content-ID: Content-Transfer-Encoding: base64 R0lGODlhyAAjANUAAP////n9/ff39+34+Of29t7y89vx8dXv78/t7cnq68Po6L3m5rbj5LTi463f 4Kbd3Z/a25rY2ZPV1o7U1IfR0oPP0HzNznTKy3DIyXHIymvGx2XExVzAwli/wFG8vU27vEe4ukG2 tzu0tTKwsi6vsCmtriKqrCCpqxyoqhimqBGkpQqhowigogSfoQCdnwAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAHAP8ALAAAAADIACMAAAb/QIBw SCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v++sDBQcJ hIWGCAYEAX9ECAkEcQGEA3kJGyUqLpqbnJwrKB4NYAMLCV0OmimUaAEKC4tCGZoieBSdKionuru6 KiudFl4Gvy4fXBOaK5BnASOpyx2aJ7B0B5smDwYBi9vd3QMHESibBkOtC8tMBAsK1AAFISYmw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LmnG8eAlktcIChrg5YsMEHno+gugggcHDBA7AmqUEIIOwmd0QCE5wO Qgiq9+677x8ohsDuGBgrBHQhiFCTAR/87jzrH2wQAeNEJPCBCMXffr0GxhNxgAgqTOQEAQ9g4AHv zqsOQvQRQB4FARJsWyAj9Fu7hwIVXFj//vz37///AAygAAdIwAIa8IAITKACF8jABjrwgRAkQhAA ADs= --_007_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_ Content-Type: image/gif; name="image002.gif" Content-Description: image002.gif Content-Disposition: inline; filename="image002.gif"; size=469; creation-date="Tue, 23 Jul 2013 14:39:11 GMT"; modification-date="Tue, 23 Jul 2013 14:39:11 GMT" Content-ID: Content-Transfer-Encoding: base64 R0lGODlhIwAeANUAAACs7sft+0TC83XS9vL7/hq08JXc+OD1/VvK9Aeu7im58a7l+v///4rZ92vP 9dXx/Ob3/VLH86bi+RCx7yW48ITX987v/Dm/8vj9/2TN9e35/iC28BOy74/b+FrJ9LPm+nPR9k3F 853f+DK88XvU9gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAHAP8ALAAAAAAjAB4AAAbyQIZw SCwaj8ikcslsWjqIjqWoQT4wzIMjAegmHBCGJSJBChDLg6LL7ipCgBEGW3wUABlCMtLuAzYiHQ9G AVwAF1OEfn0TEyR0RHZsCSQHRR2LbZRJAn0UIAFhDA2ZbA5KC4ZtExQeFQilXQ1JEBYZqrGZBkkB HBu4uX4fSRojwbEblkmkx5kXSxhwzX4VTBgVa9NeykoEA9nap9ad2gAFg00HxtodTUMHEcClaO5E tsEhevVCBx0UuR70LYHwQYIEKBNycagAaQkBCeBiTUCQaB8ECQ7WMRLQIMC+IxACiCCRwYGBBQ8E flzJsqXLlzDdBQEAOw== --_007_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_ Content-Type: image/gif; name="image003.gif" Content-Description: image003.gif Content-Disposition: inline; filename="image003.gif"; size=541; creation-date="Tue, 23 Jul 2013 14:39:11 GMT"; modification-date="Tue, 23 Jul 2013 14:39:11 GMT" Content-ID: Content-Transfer-Encoding: base64 R0lGODlhHAAeANUAAABbpZ7M41KcyfD5/CKCuYW/3NPo8gB0szeSxLfa6xB5tXGz1QBkqpPB3AB7 tv///87m8GSr0SeCutzs9ABxsK7W6BSFvJnH4EeayOXx94y93gd8tiOCunu72Qp2swBrrRd8tlek zWutzkiWxsbi75zO3huAuabR5tnr9Or0+TKLv06iywCAuJXH4EGSw/X6/b3d7CGMvY3E3oW62bLW 6BWGvGyu0/D4+gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAHAP8ALAAAAAAcAB4AAAb/wIdw SCwaj4+CY8lsOp8yYsfyrFprsKHz87F6o0Lm4TBSUbzVlnbpCbwyoTO6qQ47PoIhyXOYM+sPSx8u N0IwY35LgEwUEQYwKn1OY5J0a0sMXB8sLJqUHh4fcoqXCgszMysfMQUNHR4qAQkVMwqjiw4UBClC JwAYQwETRDAgkrgUJsMPFwAuA0gPC10OyCYoQs2EQw0CAUM0HqR2ydjMzoUPAQwMChBCJAp91uba 6RFdB98PEMbVa+WyoRMSgYEDfUL6zQN4TeC2B/gO7lP4j1zDcw8jIuTnj57De/kmdgRIIIOQAL+G 2DB44ISQCf4uMEyAAkUBBggg1AxBrcCEOgkJ5G0MxMQEBw4gHGwgwHQDExASJJj4cykXhaucrl4V o5UJmAdTEl3JMkSJWCjR0qpdy7at27dvgwAAOw== --_007_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_ Content-Type: image/gif; name="image004.gif" Content-Description: image004.gif Content-Disposition: inline; filename="image004.gif"; size=639; creation-date="Tue, 23 Jul 2013 14:39:11 GMT"; modification-date="Tue, 23 Jul 2013 14:39:11 GMT" Content-ID: Content-Transfer-Encoding: base64 R0lGODlhTQAeANUAAMDo6zKqtkC4w8zMzLe4uqanqJmZmbq6uv///+Hh4YDQ17KysvDw8GbMzPD5 +rDi5ujo6FC+yBCmtO7v7yGZpOfo6d3e39rb3JDW3OTl5qurq9Dt8KDc4eHh4iCsueDz9a2ur6+v sevr7DCyvoiIiLy8vrO0tTy0wDOZmbi5uYOXme3t7aqrrEqQlunp6iWdqGaZmby9vrS1toSEhACg rwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAAAAAAALAAAAABNAB4AAAb/QIRw SCwaj8ikcslsOjcNAW1KrVY9EY5zy102rODwdOToms1fsboqOLubn7Wc+njbkZhqY8MEpKcNd4JE f4FbClRtg4NSUwBcAImLbhMdAwMdJ1SPW5FTAhWXFiKTSxMWl6kDAZuQVAGqlxekpUOnsaqsjq5T sLiyFYIVGRe/uLo0nE6eNL7GqhkZE1wrAwUhBNnaxsjKTczOsSUl2gQmBTEuSQmXBwYGM/HxJAYm z6utna/3BO/y8e8WXErAQMiABf7+AUwBooDDX914NfvFwiEIGfAUzgg4oKASBgM0/Hv3jkSqiPp6 pSJJUp6BARDODMioceQllMv2DQihkSbAnANd2MWC5y/jS5zf9hUAyPRlrAR2GGhYwE5DggP/KOTL OeXFSAgCIbiLWYvIgKxbk06h8G9AWSYL5KGgooALBypsAb5tcnZGCyoSMDRxgEECFRTxgO5twuCA CjACIkueLGAEGBgHPC4+NGdNhM1uEHUGE6EM6DMfGngYPUUCn9N2HACYTbv2HzqwFwMwTDf3YgcR cPte/EBBnUlBAAA7 --_007_6463D72BD742544CA4CEB23572C4A21BAF113A9FQEX2qxlvadomain_--