You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <ji...@apache.org> on 2009/03/04 17:17:58 UTC

[jira] Created: (DIRSERVER-1322) Auto inferring context entry

Auto inferring context entry
----------------------------

                 Key: DIRSERVER-1322
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1322
             Project: Directory ApacheDS
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.5.4
            Reporter: Alex Karasulu


We've just removed the configuration in the server.xml for specifying the context entry (CE) for a partition.  There were issues with implementing this with XBean - it was very messy too.  Instead we now defer creation of the context entry until after the server is started.  So the partition is created and present yet it does not have the context entry which makes it not seen even though the entry is listed in the RootDSE under the namingContexts attribute.

It's disappointing to fire up the server and notice your namingContext is missing for a new partition you added.  The first thing the user feels is that there's something wrong with the way they configured their partition.

Rather than omit the CE, I suggest we have the partition infer a context entry based on the namingContext DN's RDN attribute.  Partitions should be able to accept a CE in which case the inference process is bypassed.  If omitted though the CE is inferred.  Some examples:

For o=apache:

dn: o=apache
objectClass: top
objectClass: organization
objectClass: extensibleObject
o: apache

For dc=apache,dc=org

dn: dc=apache,dc=org
objectClass: top
objectClass: domain
objectClass: extensibleObject
dc: apache

  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1322) Auto inferring context entry

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1322:
-----------------------------------------

    Fix Version/s: 2.0.0-RC1
                       (was: 2.0.0)

Moved back to 2.0.0-RC1

> Auto inferring context entry
> ----------------------------
>
>                 Key: DIRSERVER-1322
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1322
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.5.4
>            Reporter: Alex Karasulu
>             Fix For: 2.0.0-RC1
>
>
> We've just removed the configuration in the server.xml for specifying the context entry (CE) for a partition.  There were issues with implementing this with XBean - it was very messy too.  Instead we now defer creation of the context entry until after the server is started.  So the partition is created and present yet it does not have the context entry which makes it not seen even though the entry is listed in the RootDSE under the namingContexts attribute.
> It's disappointing to fire up the server and notice your namingContext is missing for a new partition you added.  The first thing the user feels is that there's something wrong with the way they configured their partition.
> Rather than omit the CE, I suggest we have the partition infer a context entry based on the namingContext DN's RDN attribute.  Partitions should be able to accept a CE in which case the inference process is bypassed.  If omitted though the CE is inferred.  Some examples:
> For o=apache:
> dn: o=apache
> objectClass: top
> objectClass: organization
> objectClass: extensibleObject
> o: apache
> For dc=apache,dc=org
> dn: dc=apache,dc=org
> objectClass: top
> objectClass: domain
> objectClass: extensibleObject
> dc: apache
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1322) Auto inferring context entry

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1322:
-----------------------------------------

    Fix Version/s: 2.0.0

Let's do that for 2.0

> Auto inferring context entry
> ----------------------------
>
>                 Key: DIRSERVER-1322
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1322
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.5.4
>            Reporter: Alex Karasulu
>             Fix For: 2.0.0
>
>
> We've just removed the configuration in the server.xml for specifying the context entry (CE) for a partition.  There were issues with implementing this with XBean - it was very messy too.  Instead we now defer creation of the context entry until after the server is started.  So the partition is created and present yet it does not have the context entry which makes it not seen even though the entry is listed in the RootDSE under the namingContexts attribute.
> It's disappointing to fire up the server and notice your namingContext is missing for a new partition you added.  The first thing the user feels is that there's something wrong with the way they configured their partition.
> Rather than omit the CE, I suggest we have the partition infer a context entry based on the namingContext DN's RDN attribute.  Partitions should be able to accept a CE in which case the inference process is bypassed.  If omitted though the CE is inferred.  Some examples:
> For o=apache:
> dn: o=apache
> objectClass: top
> objectClass: organization
> objectClass: extensibleObject
> o: apache
> For dc=apache,dc=org
> dn: dc=apache,dc=org
> objectClass: top
> objectClass: domain
> objectClass: extensibleObject
> dc: apache
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRSERVER-1322) Auto inferring context entry

Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678802#action_12678802 ] 

Stefan Zoerner commented on DIRSERVER-1322:
-------------------------------------------

I recommend to infer a context entry only for JDBM or XDBM partitions, not partitions in general. If a developer has created a partition on his/her own, he/she should be able to decide what should happen with the context entry.

> Auto inferring context entry
> ----------------------------
>
>                 Key: DIRSERVER-1322
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1322
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.5.4
>            Reporter: Alex Karasulu
>
> We've just removed the configuration in the server.xml for specifying the context entry (CE) for a partition.  There were issues with implementing this with XBean - it was very messy too.  Instead we now defer creation of the context entry until after the server is started.  So the partition is created and present yet it does not have the context entry which makes it not seen even though the entry is listed in the RootDSE under the namingContexts attribute.
> It's disappointing to fire up the server and notice your namingContext is missing for a new partition you added.  The first thing the user feels is that there's something wrong with the way they configured their partition.
> Rather than omit the CE, I suggest we have the partition infer a context entry based on the namingContext DN's RDN attribute.  Partitions should be able to accept a CE in which case the inference process is bypassed.  If omitted though the CE is inferred.  Some examples:
> For o=apache:
> dn: o=apache
> objectClass: top
> objectClass: organization
> objectClass: extensibleObject
> o: apache
> For dc=apache,dc=org
> dn: dc=apache,dc=org
> objectClass: top
> objectClass: domain
> objectClass: extensibleObject
> dc: apache
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRSERVER-1322) Auto inferring context entry

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678788#action_12678788 ] 

Emmanuel Lecharny commented on DIRSERVER-1322:
----------------------------------------------

I agree 100% with this approach. However, I would start with a simple injection of an entry with all the RDN AVAs and the extensibleObject objectClass (not trying to infer the ObjectClasses from the RDN...)

> Auto inferring context entry
> ----------------------------
>
>                 Key: DIRSERVER-1322
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1322
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.5.4
>            Reporter: Alex Karasulu
>
> We've just removed the configuration in the server.xml for specifying the context entry (CE) for a partition.  There were issues with implementing this with XBean - it was very messy too.  Instead we now defer creation of the context entry until after the server is started.  So the partition is created and present yet it does not have the context entry which makes it not seen even though the entry is listed in the RootDSE under the namingContexts attribute.
> It's disappointing to fire up the server and notice your namingContext is missing for a new partition you added.  The first thing the user feels is that there's something wrong with the way they configured their partition.
> Rather than omit the CE, I suggest we have the partition infer a context entry based on the namingContext DN's RDN attribute.  Partitions should be able to accept a CE in which case the inference process is bypassed.  If omitted though the CE is inferred.  Some examples:
> For o=apache:
> dn: o=apache
> objectClass: top
> objectClass: organization
> objectClass: extensibleObject
> o: apache
> For dc=apache,dc=org
> dn: dc=apache,dc=org
> objectClass: top
> objectClass: domain
> objectClass: extensibleObject
> dc: apache
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRSERVER-1322) Auto inferring context entry

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678794#action_12678794 ] 

Alex Karasulu commented on DIRSERVER-1322:
------------------------------------------

Yep that will definitely work and easier to implement really quickly.

> Auto inferring context entry
> ----------------------------
>
>                 Key: DIRSERVER-1322
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1322
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.5.4
>            Reporter: Alex Karasulu
>
> We've just removed the configuration in the server.xml for specifying the context entry (CE) for a partition.  There were issues with implementing this with XBean - it was very messy too.  Instead we now defer creation of the context entry until after the server is started.  So the partition is created and present yet it does not have the context entry which makes it not seen even though the entry is listed in the RootDSE under the namingContexts attribute.
> It's disappointing to fire up the server and notice your namingContext is missing for a new partition you added.  The first thing the user feels is that there's something wrong with the way they configured their partition.
> Rather than omit the CE, I suggest we have the partition infer a context entry based on the namingContext DN's RDN attribute.  Partitions should be able to accept a CE in which case the inference process is bypassed.  If omitted though the CE is inferred.  Some examples:
> For o=apache:
> dn: o=apache
> objectClass: top
> objectClass: organization
> objectClass: extensibleObject
> o: apache
> For dc=apache,dc=org
> dn: dc=apache,dc=org
> objectClass: top
> objectClass: domain
> objectClass: extensibleObject
> dc: apache
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRSERVER-1322) Auto inferring context entry

Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678811#action_12678811 ] 

Alex Karasulu commented on DIRSERVER-1322:
------------------------------------------

That's a good point. I think we can make it so this is only the case in a default constructor of the base class.  Another can provide the argument for the specified CE which bypasses any such inference process.

> Auto inferring context entry
> ----------------------------
>
>                 Key: DIRSERVER-1322
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1322
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.5.4
>            Reporter: Alex Karasulu
>
> We've just removed the configuration in the server.xml for specifying the context entry (CE) for a partition.  There were issues with implementing this with XBean - it was very messy too.  Instead we now defer creation of the context entry until after the server is started.  So the partition is created and present yet it does not have the context entry which makes it not seen even though the entry is listed in the RootDSE under the namingContexts attribute.
> It's disappointing to fire up the server and notice your namingContext is missing for a new partition you added.  The first thing the user feels is that there's something wrong with the way they configured their partition.
> Rather than omit the CE, I suggest we have the partition infer a context entry based on the namingContext DN's RDN attribute.  Partitions should be able to accept a CE in which case the inference process is bypassed.  If omitted though the CE is inferred.  Some examples:
> For o=apache:
> dn: o=apache
> objectClass: top
> objectClass: organization
> objectClass: extensibleObject
> o: apache
> For dc=apache,dc=org
> dn: dc=apache,dc=org
> objectClass: top
> objectClass: domain
> objectClass: extensibleObject
> dc: apache
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.