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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=78893 --- 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: +OS Details: +Status: NEW +Resolution: +Severity: Unknown +Priority: Minor +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Novell.Directory.Ldap - System.NullReferenceException in LdapConnection.FetchSchema + +Description of Problem: + +Hello, + +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-1.1.16.1). +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.3.3.2.0.3 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 + +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 :-). + +bye, +Daniel Mueller + +[1] http://directory.fedora.redhat.com/wiki/Main_Page +[2] +http://www.danm.de/files/src/mono/patches/mono-1.1.16.1-FedoraDsSchema.patch + + +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!) +http://www.danm.de/files/src/mono/patches/mono-1.1.16.1-FedoraDsSchema.patch _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
