Re: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
From: Willy Denoyette [MVP] (willy.denoyette_at_pandora.be)
Date: 03/06/04
- Next message: clintonG: "Re: My "as you type" help has disappeared!"
- Previous message: Amir Eshterayeh: "Change <link> href attribute dynamically"
- In reply to: Ágúst Kristinn Arnlaugsson: "RE: Handling of this ADSVALUE type is not yet implemented (type = 0xb)."
- Next in thread: gst Kristinn Arnlaugsson: "Re: Handling of this ADSVALUE type is not yet implemented (type = 0xb)."
- Reply: gst Kristinn Arnlaugsson: "Re: Handling of this ADSVALUE type is not yet implemented (type = 0xb)."
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 6 Mar 2004 18:08:11 +0100
What directory server are you talking to, what version of LDAP does it
supports?
Did you try first using the adsedit tool?
Willy.
"gst Kristinn Arnlaugsson" <agustkri@xxxxxxx.simnet.is> wrote in message
news:87EA76FB-4463-4AE6-939E-1A2D60FBB8FF@microsoft.com...
>
> Hi,
>
> Ive tried a few things but cant seem to get it to work yet, im not
> connecting to AD but "3rd party" ldap server.
> I get the same error when i use winform instead of asp, i have managed to
> write out objectClass with vb script using getinfoex but it would be best
> if i could use .net and directoryservices.
>
> I know im connected to the ldap server cause if i change the pw i get an
> error and also im able to write out some properties and not others.
>
> Im totally lost, if anyone has any idea it would be appreciated.
>
> Best Regards
> gst Kristinn Arnlaugsson
>
> ----- gst Kristinn Arnlaugsson wrote: -----
>
> Hi,
>
> Maybe this subject has come up before but here it goes.
>
> Im using c# in asp.net and im connecting to ldap server to retrieve
> some
> properties from it, some properties work ok but for others i get the
> error
> mentioned in the subject line, im using DirectoryService and here is
> the
> code.
> I add 3 properties, cn wich is not multi value, mail wich is and
> objectClass
> is multi also, objectClass is the one that generates the error(when i
> take
> the try catch out).
>
>
>
>
> **Code Start**
> DirectorySearcher searcher = new DirectorySearcher();
>
> searcher.SearchRoot = new
> DirectoryEntry(LDAP://someserver/cn=somewhere);
>
> searcher.SearchScope = SearchScope.Subtree;
>
> searcher.Filter = "(uid=some)";
>
> searcher.PropertiesToLoad.Add("cn");
> searcher.PropertiesToLoad.Add("mail");
> searcher.PropertiesToLoad.Add("objectClass");
>
> SearchResultCollection results = searcher.FindAll();
>
> foreach(SearchResult result in results)
> {
> Response.Write("mail=" + result.Properties["mail"][0] + "<br>");
>
> if (result.Properties["mail"].Count > 1)
> {
> for (int i = 0;i < result.Properties["mail"].Count;i++)
> {
> Response.Write("mail=" + result.Properties["mail"][i] + "<br>");
> }
> }
> else
> {
> Response.Write("mail=" + result.Properties["mail"][0] + "<br>");
> }
>
>
> try
> {
> if (result.Properties["objectClass"].Count > 1)
> {
> for (int i = 0;i < result.Properties["objectClass"].Count;i++)
> {
> Response.Write("objectClass=" +
> result.Properties["objectClass"][i].ToString() + "<br>");
> }
> }
> else
> {
> Response.Write("objectClass=" +
> result.Properties["objectClass"][0].ToString() + "<br>");
> }
> }
> catch
> {
> Response.Write("Couldnt write objectClass Property<br>");
> }
> }
>
> **Code End**
>
>
>
> Any help appreciated.
>
> Best Regards
> Agust
>
>
>
>
- Next message: clintonG: "Re: My "as you type" help has disappeared!"
- Previous message: Amir Eshterayeh: "Change <link> href attribute dynamically"
- In reply to: Ágúst Kristinn Arnlaugsson: "RE: Handling of this ADSVALUE type is not yet implemented (type = 0xb)."
- Next in thread: gst Kristinn Arnlaugsson: "Re: Handling of this ADSVALUE type is not yet implemented (type = 0xb)."
- Reply: gst Kristinn Arnlaugsson: "Re: Handling of this ADSVALUE type is not yet implemented (type = 0xb)."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|