|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
[jira] Created: (DIRSTUDIO-212) Provide support for attribute references for LDIF construction during batch operationsProvide support for attribute references for LDIF construction during batch operations
-------------------------------------------------------------------------------------- Key: DIRSTUDIO-212 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-212 Project: Directory Studio Issue Type: New Feature Components: studio-ldapbrowser, studio-ldifeditor Reporter: Ersin Er The Studio allows one to specify an LDIF changetype fragment to be executed on all entries returned from a search operation. It would be nice to have a more dynamic way to specify attribute values as in the following examples: changetype: modify replace: homeDirectory homeDirectory: /home/${uid} changetype: modify replace: mail mail: ${uid}@... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (DIRSTUDIO-212) Provide support for attribute references for LDIF construction during batch operations[ https://issues.apache.org/jira/browse/DIRSTUDIO-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12772510#action_12772510 ] Martin Alderson commented on DIRSTUDIO-212: ------------------------------------------- I've just been having a look at implementing this. I'm wondering what should be done when the referenced attribute doesn't exist in the entry? I think that to keep it simple for now we should just ignore the reference. In the example this could leave an entry with a mail attribute value of "@example.com". Alternatively we could just not generate the ldif fragment for that entry. Any thoughts? > Provide support for attribute references for LDIF construction during batch operations > -------------------------------------------------------------------------------------- > > Key: DIRSTUDIO-212 > URL: https://issues.apache.org/jira/browse/DIRSTUDIO-212 > Project: Directory Studio > Issue Type: New Feature > Components: studio-ldapbrowser, studio-ldifeditor > Reporter: Ersin Er > > The Studio allows one to specify an LDIF changetype fragment to be executed on all entries returned from a search operation. It would be nice to have a more dynamic way to specify attribute values as in the following examples: > changetype: modify > replace: homeDirectory > homeDirectory: /home/${uid} > changetype: modify > replace: mail > mail: ${uid}@... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Updated: (DIRSTUDIO-212) Provide support for attribute references for LDIF construction during batch operations[ https://issues.apache.org/jira/browse/DIRSTUDIO-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Alderson updated DIRSTUDIO-212: -------------------------------------- Attachment: dirstudio-212.diff The attached dirstudio-212.diff is a possible implementation of this feature based on the current studio trunk. Any ${name} specified in the modification is replaced with the value of attribute "name" in the source entry. When a search is done the specified attributes are retrieved. When the modification is applied to an entry the cached copy is used. This means the specified attribute(s) will not be found if they have not already been requested or if the entry has not yet been cached. When an attribute is not found the ${name} is just ignored (removed). I haven't committed this yet as it is my first change to studio - any chance some one could check it out? > Provide support for attribute references for LDIF construction during batch operations > -------------------------------------------------------------------------------------- > > Key: DIRSTUDIO-212 > URL: https://issues.apache.org/jira/browse/DIRSTUDIO-212 > Project: Directory Studio > Issue Type: New Feature > Components: studio-ldapbrowser, studio-ldifeditor > Reporter: Ersin Er > Attachments: dirstudio-212.diff > > > The Studio allows one to specify an LDIF changetype fragment to be executed on all entries returned from a search operation. It would be nice to have a more dynamic way to specify attribute values as in the following examples: > changetype: modify > replace: homeDirectory > homeDirectory: /home/${uid} > changetype: modify > replace: mail > mail: ${uid}@... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (DIRSTUDIO-212) Provide support for attribute references for LDIF construction during batch operations[ https://issues.apache.org/jira/browse/DIRSTUDIO-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775177#action_12775177 ] Stefan Seelmann commented on DIRSTUDIO-212: ------------------------------------------- Thanks Martin, looks good. As you wrote it works great if the used attributes are already cached or if the search is executed and the necessary attributes are requested. It is also cool that the replacement works in LDIF fragment as well when selecting the 'Modify entries' option. However in the case where entries are not cached or attributes were not requested the result is an empty value, which is a bit confusing. Here is an example: ------------------------------------------------- dn: ... changetype: modify add: description description: - ------------------------------------------------- Do you think it makes sense to load the missing attributes in such a case? > Provide support for attribute references for LDIF construction during batch operations > -------------------------------------------------------------------------------------- > > Key: DIRSTUDIO-212 > URL: https://issues.apache.org/jira/browse/DIRSTUDIO-212 > Project: Directory Studio > Issue Type: New Feature > Components: studio-ldapbrowser, studio-ldifeditor > Reporter: Ersin Er > Attachments: dirstudio-212.diff > > > The Studio allows one to specify an LDIF changetype fragment to be executed on all entries returned from a search operation. It would be nice to have a more dynamic way to specify attribute values as in the following examples: > changetype: modify > replace: homeDirectory > homeDirectory: /home/${uid} > changetype: modify > replace: mail > mail: ${uid}@... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Commented: (DIRSTUDIO-212) Provide support for attribute references for LDIF construction during batch operations[ https://issues.apache.org/jira/browse/DIRSTUDIO-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775369#action_12775369 ] Martin Alderson commented on DIRSTUDIO-212: ------------------------------------------- Thanks for checking it out Stefan. It is a bit confusing as it is. I'll have a go at reading the attributes on demand. It doesn't look as hard as I first thought! > Provide support for attribute references for LDIF construction during batch operations > -------------------------------------------------------------------------------------- > > Key: DIRSTUDIO-212 > URL: https://issues.apache.org/jira/browse/DIRSTUDIO-212 > Project: Directory Studio > Issue Type: New Feature > Components: studio-ldapbrowser, studio-ldifeditor > Reporter: Ersin Er > Attachments: dirstudio-212.diff > > > The Studio allows one to specify an LDIF changetype fragment to be executed on all entries returned from a search operation. It would be nice to have a more dynamic way to specify attribute values as in the following examples: > changetype: modify > replace: homeDirectory > homeDirectory: /home/${uid} > changetype: modify > replace: mail > mail: ${uid}@... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
|
|
[jira] Updated: (DIRSTUDIO-212) Provide support for attribute references for LDIF construction during batch operations[ https://issues.apache.org/jira/browse/DIRSTUDIO-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Alderson updated DIRSTUDIO-212: -------------------------------------- Attachment: dirstudio-212-2.diff The attached patch is my second shot at this. It will now always search for the referenced attributes, rather than using a cached copy. Could someone (Stefan?) check this out again? > Provide support for attribute references for LDIF construction during batch operations > -------------------------------------------------------------------------------------- > > Key: DIRSTUDIO-212 > URL: https://issues.apache.org/jira/browse/DIRSTUDIO-212 > Project: Directory Studio > Issue Type: New Feature > Components: studio-ldapbrowser, studio-ldifeditor > Reporter: Ersin Er > Attachments: dirstudio-212-2.diff, dirstudio-212.diff > > > The Studio allows one to specify an LDIF changetype fragment to be executed on all entries returned from a search operation. It would be nice to have a more dynamic way to specify attribute values as in the following examples: > changetype: modify > replace: homeDirectory > homeDirectory: /home/${uid} > changetype: modify > replace: mail > mail: ${uid}@... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
| Free embeddable forum powered by Nabble | Forum Help |