[Mono-bugs] [Bug 78893][Min] New - Novell.Directory.Ldap - System.NullReferenceException in LdapConnection.FetchSchema

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jul 18 16:53:42 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by mono at danm.de.


--- shadow/78893	2006-07-18 16:53:42.000000000 -0400
+++ shadow/78893.tmp.17813	2006-07-18 16:53:42.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 78893
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Severity: Unknown
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mono at danm.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Novell.Directory.Ldap - System.NullReferenceException in LdapConnection.FetchSchema
+Description of Problem:
+first I have to say that I'm not sure whether this is a bug of RedHat's
+default configuration or Novell's LDAP libraries (included in mono-
+The latest Fedora Directory Server release 1.0.2[1] has a weird schema
+entry. The default installation has one matching rule without NAME tag:
+2.16.840.1.113730. SYNTAX
+After googling for it I found out that the NAME should be
+'caseExactSubstringMatch'. However if you call the
+LdapConnection.FetchSchema(string DN) method the interpreter throws a
+System.NullReferenceException. That means you won't get ANYTHING - not even
+the correct entries. I backtracked the error to
+Novell.Directory.Ldap.Utilclass/SchemaParser.cs. On my website you can find
+a small patch[2] that initializes the 'names' variable with an empty
+string. After applying that patch everything worked as expected (at least
+on my system :-).
+Daniel Mueller
+[1] http://directory.fedora.redhat.com/wiki/Main_Page
+Steps to reproduce the problem:
+1. setup a Fedora Directory Server
+2. call the LdapConnection.FetchSchema("cn=schema") function
+Actual Results:
+- System.NullReferenceException.
+Expected Results:
+- Getting a valid LdapSchema object.
+How often does this happen? 
+- everytime
+Additional Information:
+- patch (hack!)

More information about the mono-bugs mailing list