[Mono-bugs] [Bug 335463] New: System.DirectoryServices.DirectoryEntry.Properties[]. Value returns only string valued attributes

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 19 23:53:40 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=335463

           Summary: System.DirectoryServices.DirectoryEntry.Properties[].Val
                    ue returns only string valued attributes
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: mvellon at centeris.com
         QAContact: mono-bugs at ximian.com
          Found By: Customer


If I bind to an Active Directory object and list its property types, they all
return "System.String". For example:

DirectoryEntry de = new DirectoryEntry("ldap://dc=foo,dc=com");

foreach(string s in de.Properties.PropertyNames)
    Console.WriteLine(string.Format("Property {0} is of type {1}", s, 
                      de.Properties[s].Value.GetType().ToString()));

THis is not correct. The attribute "objectSid", for example, should be of type
byte[].


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list