You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Seelmann (JIRA)" <ji...@apache.org> on 2010/07/03 12:08:49 UTC

[jira] Commented: (DIRSTUDIO-674) errors when making connection to cn=subschema

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884903#action_12884903 ] 

Stefan Seelmann commented on DIRSTUDIO-674:
-------------------------------------------

I guess this happens when you expand the cn=subschema entry in the browser tree? In that case dirstudio performs a one-level scoped search for cn=subschema and OpenLDAP replies with error 32.

The recommended way to see the subschema subentry is to enable the "Get base DNs from Root DSE" option in the connection properties and to enable the "Show Directory Metadata" option from the Browser's menu, see attached screenshot. In that case no one-level scope search is done for the subschema subentry and no error occurs.


> errors when making connection to cn=subschema
> ---------------------------------------------
>
>                 Key: DIRSTUDIO-674
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-674
>             Project: Directory Studio
>          Issue Type: Bug
>    Affects Versions: 1.5.3
>         Environment: mac os x 10.6.4 - apache directory studio 1.5.3.v20100330
>            Reporter: ben thielsen
>            Priority: Minor
>
> hi -
> i'm using 1.5.3 to inspect cn=subschema on a 2.4.21 openldap server, and directory studio complains a bit initially when connecting:
> Error while reading entry
>  - [LDAP: error code 32 - No Such Object]
>  - [LDAP: error code 32 - No Such Object]
>   javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=Subschema'
> 	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3066)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794)
> 	at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1826)
> 	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1749)
> 	at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
> 	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$1.run(JNDIConnectionWrapper.java:356)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.checkConnectionAndRunAndMonitor(JNDIConnectionWrapper.java:1203)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.search(JNDIConnectionWrapper.java:398)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.search(SearchRunnable.java:500)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.searchAndUpdateModel(SearchRunnable.java:320)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.executeSearch(InitializeChildrenRunnable.java:361)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.initializeChildren(InitializeChildrenRunnable.java:212)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.run(InitializeChildrenRunnable.java:171)
> 	at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:114)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>   [LDAP: error code 32 - No Such Object]
>   javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=Subschema'
> 	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3066)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2987)
> 	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2794)
> 	at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1826)
> 	at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1749)
> 	at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirContext.java:368)
> 	at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCompositeDirContext.java:338)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper$1.run(JNDIConnectionWrapper.java:356)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.runAndMonitor(JNDIConnectionWrapper.java:1272)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.checkConnectionAndRunAndMonitor(JNDIConnectionWrapper.java:1203)
> 	at org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.search(JNDIConnectionWrapper.java:398)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.search(SearchRunnable.java:500)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.SearchRunnable.searchAndUpdateModel(SearchRunnable.java:320)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.executeSearch(InitializeChildrenRunnable.java:361)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.executeSubSearch(InitializeChildrenRunnable.java:337)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.initializeChildren(InitializeChildrenRunnable.java:315)
> 	at org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable.run(InitializeChildrenRunnable.java:171)
> 	at org.apache.directory.studio.connection.core.jobs.StudioConnectionJob.run(StudioConnectionJob.java:114)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>   [LDAP: error code 32 - No Such Object]
> after dismissing the errors, the contents of cn=subschema appear to be viewable, but i'm curious what directory studio is trying to do, and why it's failing.
> here are the slapd log entries that correspond to the directory studio operations:
> Jun 28 20:50:49 under slapd[7628]: conn=1074 fd=20 ACCEPT from IP=192.168.1.123:58530 (IP=0.0.0.0:389)
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=0 EXT oid=1.3.6.1.4.1.1466.20037
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=0 STARTTLS
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=0 RESULT oid= err=0 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 fd=20 TLS established tls_ssf=128 ssf=128
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=1 BIND dn="" method=128
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=1 RESULT tag=97 err=0 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=2 SRCH base="" scope=0 deref=3 filter="(objectClass=*)"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=2 SRCH attr=subschemaSubentry
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=3 SRCH base="cn=Subschema" scope=0 deref=3 filter="(objectClass=subschema)"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=3 SRCH attr=createTimestamp modifyTimestamp
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=3 SEARCH RESULT tag=101 err=0 nentries=1 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=4 SRCH base="" scope=0 deref=0 filter="(objectClass=*)"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=4 SRCH attr=namingContexts subschemaSubentry supportedLDAPVersion supportedSASLMechanisms supportedExtension supportedControl supportedFeatures vendorName vendorVersion + objectClass
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=4 SEARCH RESULT tag=101 err=0 nentries=1 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=5 SRCH base="" scope=0 deref=0 filter="(objectClass=*)"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=5 SRCH attr=*
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=5 SEARCH RESULT tag=101 err=0 nentries=1 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=6 SRCH base="cn=Subschema" scope=0 deref=0 filter="(objectClass=*)"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=6 SRCH attr=hasSubordinates objectClass
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=6 SEARCH RESULT tag=101 err=0 nentries=1 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=7 SRCH base="cn=config" scope=0 deref=0 filter="(objectClass=*)"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=7 SRCH attr=hasSubordinates objectClass
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=7 SEARCH RESULT tag=101 err=32 nentries=0 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=8 SRCH base="dc=dipswitch,dc=net" scope=0 deref=0 filter="(objectClass=*)"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=8 SRCH attr=hasSubordinates objectClass
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=8 SEARCH RESULT tag=101 err=32 nentries=0 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=9 SRCH base="cn=Monitor" scope=0 deref=0 filter="(objectClass=*)"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=9 SRCH attr=hasSubordinates objectClass
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=9 SEARCH RESULT tag=101 err=0 nentries=1 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=10 SRCH base="cn=Subschema" scope=1 deref=0 filter="(objectClass=*)"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=10 SRCH attr=hasSubordinates objectClass
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=10 SEARCH RESULT tag=101 err=32 nentries=0 text=
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=11 SRCH base="cn=Subschema" scope=1 deref=0 filter="(|(objectClass=subentry)(?objectClass=ldapSubentry))"
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=11 SRCH attr=hasSubordinates objectClass
> Jun 28 20:50:49 under slapd[7628]: conn=1074 op=11 SEARCH RESULT tag=101 err=32 nentries=0 text=
> regards-
> -ben thielsen

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