apacheds: Imported custom object classes not visible - ldap

I am running an ldapv3 server on apacheds2.0.0 using Apache Directory Studio. I have successfully imported a schema that defines my own custom object classes, Here is an example from the schema:
objectclass ( 7.7.7.7
NAME 'Dog'
SUP Animal
STRUCTURAL
MUST dogName
MAY ( lead$ collar$ house$ age$ color$ etc$)
)
When I start up the server and try to add a new Dog entry the objectClass Dog is not an option.
Does something else need to be done programatically or otherwise, before my custom object classes can be used?

Try re-loading the schema from the connection properties.
right-click on the connection, properties->connection->schema->reload schema

Click the reload button and see you custom schema object.

Related

Wrong "ReflectedWorkItemIDFieldName" while migrating Azure DevOps Work Items

I am testing the azure-devops-migration-tools and have create a project using https://azuredevopsdemogenerator.azurewebsites.net/ (Parts Unlimited). I have generated the configuration.json and changed the Source and Target so I can test a migration, but I'm getting errors while migrating Work Items.
[15:14:41 ERR] Error running query
Microsoft.TeamFoundation.WorkItemTracking.Client.ValidationException: TF51005: The query references a field that does not exist. The error is caused by «ReflectedWorkItemId».
I've tried different options on the "ReflectedWorkItemIDFieldName" field, Scrum, Basic, Agile, Custom, empty but am still unable to migrate the work items.
How can I get the value to put on this field for the specific project?
Thanks,
Bruno
Quick Solution: Most ADO instances use the prefix 'custom' for new fields. Try "Custom.ReflectedWorkItemId" in your configuration.json to see if that resolves the problem.
More details: It's hard to tell without an actual configuration.JSON file to review. One possible problem is that you need to use the actual and full internal 'Name' of the ReflectedWorkItemID field. This doesn't show in ADO, or the Process Template when created. The recommendation is that you create a query referencing your custom field, and export the WIQL file (query file). Once you export the WIQL file, you can then open the file and see the full syntax of the custom field.
Exporting Queries: If you don't know how to do this, it can be done with VisualStudio. If you don't know how to do that, you can install this extension. It's a handy WIQL import/Export and editor. Install, and your ADO Queries with have an Edit in WIQL Editor option. Create a query that exposes your 'ReflectedWorkItemID' as a column, then edit that query in the WIQL editor and see the full names of the Reflected Work Items ID Feild. https://marketplace.visualstudio.com/items?itemName=ottostreifel.wiql-editor
SELECT
[System.Id],
[System.WorkItemType],
[System.Title],
[System.AssignedTo],
[System.ChangedBy],
[Custom.ReflectedWorkItemId]
FROM workitems
WHERE ...
I found a possible solution. I have created a custom process, change the process from the projects to this new one and add a new field. This is the field I'm using on the configuration.json and now I'm able to migrate work items
To make the migration in the "ReflectedWorkItemIDFieldName" you must do:
"Organization Settings" -> Process -> Select the process where you project are (Basic, Scrum, Agil, or CMMI).
then click on the 3 dots and create a new Inherited process.
Then with the inherited process, you are able to create a new field for each work item type. The name that you type (could be "IronMan") that name will be in your configuration file.

Using template message body on WCF-SQL adapter in Biztalk to insert promoted properties into SQL database

I need to insert some data from an XML document into an SQL table using a stored procedure. This should be done using the WCF-SQL adapter on a send port in Biztalk. I've set up the connection properties on the adapter, but I am missing the message part.
I'm currently using the below code with some hardcoded values inside a body template:
<SaveDocument xmlns="http://schemas.microsoft.com/Sql/2008/05/Procedures/dbo">
<conversationID>123456</conversationID>
<dataType>OIO</dataType>
<fromID></fromID>
<toID></toID>
<msgInfoExtension><![CDATA[<infoExt><fileInfo fileName="ublinvoice.xml" encoding="utf-8" /></infoExt>]]></msgInfoExtension>
<msgBody>
<bts-msg-body xmlns="http://www.microsoft.com/schemas/bts2007" encoding="string"/>
</msgBody>
<msgBodyBin></msgBodyBin>
</SaveDocument>
Instead of the hardcoded values, I need to grab some of the promoted properties in an XML document, but I'm unsure how to correctly go about doing this.
In the MS documentation I found this page, which describes the structure of the request: https://learn.microsoft.com/en-us/biztalk/adapters-and-accelerators/adapter-sql/message-schemas-for-procedures-and-functions
Distinguish the properties that you want to set in the SaveDocument schema
Create a map that populates the fields, the ones you want to set from the Promoted properties, just fill them with some constants from the map.
In an Orchestration have a Construct Message that contains both the map shape pointing to the above map and a message assignment shape.
In the message assignment shape have some statements like saveSG.conversationID = sourceMSG(PropmotedProperty).
P.S. I think you have manually tried to create the SaveDocument schema. This is probably not correct. The correct way is to create the stored procedure and then use the Generate Instance dialogue in Visual Studio, and to configure that to auto generate the schema for you, and as a bonus, it even generates a binding file containing the settings you need for your send port.
You might be able to use the often overlook Property Demotion feature.
It's basically the reverse of Promotion and is done by the XmlAssembler component.

Create new ObjectProperty in Protege .The tag name is different

I found something different when I create a new ObjectProperty. This is my ontology.
This ObjectProperty hasSymptom is been created
But now when I create new ObjectProperty hasObject
I founded when I create new Object Property. The tag name will different
1)rdf:about="http://www.semanticweb.org/pllab/ontologies/2013/11/untitled-ontology-2#"hasSymptom/>
2)rdf:about="&ont;hasObject"
Why this happend? Thanks
Obviously, as I already told you, you have changed something in the settings of Protege - because the default namespace for the creation of new entities doesn't change by chance.
File -> Preferences -> New Entities tab -> Click on Active ontology IRI (or change the Specified IRI to the one that you want)
By the way, you should use your own namespace and not that one that is auto-generated by Protege.

Can we create additional uid/cn in Wso2 IS embedded Ldap

I used ApacheDS to view the structure of the Domain & its children (New tenants).
But couldn't create any values on it.
Below image depicts
I want to add uid/cn under each domain[i].com purpose is to just store some extra details about those domains.
Is that possible?
if I add uid, it throws non-structural object exception.
if I add ou, it throws object doesn't exist!
Is that possible?
Edit: or either as a custom attribute for each users/ #domain[i].com level ?

howto write an LDAP schema?

i want to introduce a new class "MyAppValues".
when you add this to class to an existiting objects it should be possible add the following attributes:
MyAppKey is a mandantory string, that cannot be emtpy
MyAppOptionalValue is an optional string, that can be empty
How can this be done?
Is there an easy tutorial out there?
You need to define your own schema, read this page to understand the LDAP schema basics and
then you can use Apache Directory studio to create the schema.