c# - Obtaining raw property value with .NET DirectoryServices -


does know if it's possible value of ldap object's property x? seems .net or adsi removes stuff cannot handle (de.properties.values.count == de.properties.propertynames.count > de.properties.values.props.valuetable.count).

        binddn.text = "cn=admin,o=system";         bindpass.password = "xxxxx";         server.text = "10.x.x.x";         basedn.text = "cn=server,o=system";         stringbuilder basepath = new stringbuilder("ldap://");         basepath.append(server.text).append("/").append(basedn.text);          directoryentry mydirectoryentry = new directoryentry(basepath.tostring());         mydirectoryentry.username = binddn.text;         mydirectoryentry.password = bindpass.password;         mydirectoryentry.authenticationtype = authenticationtypes.serverbind;          foreach (string key in mydirectoryentry.properties.propertynames)         {             object val = mydirectoryentry.properties[key].value;          } 

this crashes on networkaddress property binary field ( http://ldapwiki.willeke.com/wiki/ldapsearch%20networkaddress ).


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -