Hi, I'm having odd issues with adding a new m-may attribute to a custom metaObjectClass in our schema. We created a custom class in the initial release of the software with the following ldif:
dn: m-oid=1.3.6.1.4.1.26156.30.0.0.1.12, ou=objectClasses, cn=conneqt-config, ou=schema 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=1.3.6.1.4.1.26156.30.0.0.0.1, ou=attributeTypes, cn=conneqt-config, ou=schema 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=1.3.6.1.4.1.26156.30.0.0.1.12, ou=objectClasses, cn=conneqt-config, ou=schema 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 Directory Studio, it gives a warning saying the attribute type is not allowed. Whilst I can click through this, the second problem is that when I try to add entries programmatically: var name = string.Format("email={0}", emailAddress); var entry = container.Children.Add(name, "adapterMailbox"); entry.Properties["userPassword"].Value = password; entry.Properties["smtpHost"].Value = smtpHost; entry.Properties["smtpPort"].Value = smtpPort; entry.Properties["isActiveFlag"].Value = isActiveFlag; entry.CommitChanges(); It is throwing a DirectoryServicesCOMException 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 going on? Cheers Matthew Goudge Developer [Quicksilva]<http://www.qxlva.com/> Quicksilva Systems Integration Solutions | www.qxlva.com<http://www.qxlva.com/> Tel: 01249 751 000 | matthew.gou...@qxlva.com<mailto:matthew.gou...@qxlva.com> [Twitter]<http://twitter.com/QxlvaHealth>[LinkedIn]<http://www.linkedin.com/company/quicksilva>[MerQury]<http://www.qxlva.com/MerQury/> ______________________________________________________________________ The Company gives no warranty as to the accuracy or completeness of electronic mail messages sent over the Internet and accepts no responsibility for 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 proprietary 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 contents of this communication, is strictly prohibited. If you have received this 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, Cardiff. 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. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
<<inline: image001.gif>>
<<inline: image002.gif>>
<<inline: image003.gif>>
<<inline: image004.gif>>