473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ldap DirectoryServices.DirectoryEntry System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).

m96
hi,

i'm trying to make a query to a ldap server (version v2 or v3 doen't
matter) with c#. the query works just fine but the problem is that i can't
read the custom attributes/fields, since .net gives the following error:

System.NotImplementedException: Handling of this ADSVALUE type is not yet
implemented (type = 0xb).

after googling for a long time i found out that many other have the same
problem like me but nobody has a solution for this.

i would even be happy if i would be able to figure out how to implement
handlers for custom fields, so at least i can see them...

i would really appreciate any, really any help on this topic...

thank you in advance...
Nov 16 '05 #1
4 27914

My guess is that your LDAP Server is in LDAP v2 (MMS ?).
When you call a LDAP v2 Server with ADSI or with DirectoryServices, you
can't use custom attribute.
The reason is that ADSI/Directory Services need the schema to expose
attributes as object properties. Unfortunatly, LDAP schema is only published
in LDAP v3. So, when ADSI find a custom attribute, it can't determine its
type and raise an exception.

On a LDAP v2 server you must use only standard LDAP attribute with
ADSI/Directory Services . If you really need using custom attributes, you
must call the native C/LDAP API (and it's not fun !).

Lionel.
"m96" <m9*@gmx.li> a écrit dans le message de news:
pa****************************@gmx.li...
hi,

i'm trying to make a query to a ldap server (version v2 or v3 doen't
matter) with c#. the query works just fine but the problem is that i can't
read the custom attributes/fields, since .net gives the following error:

System.NotImplementedException: Handling of this ADSVALUE type is not yet
implemented (type = 0xb).

after googling for a long time i found out that many other have the same
problem like me but nobody has a solution for this.

i would even be happy if i would be able to figure out how to implement
handlers for custom fields, so at least i can see them...

i would really appreciate any, really any help on this topic...

thank you in advance...

Nov 16 '05 #2
m96
hi,
My guess is that your LDAP Server is in LDAP v2 (MMS ?).
the problem also occurs on ldap v3 servers like the free novell ldap
server at www.nldap.com port 80 for informations and port 389 for the ldap
server. you can also create an account for authorized access. and even
then it won't work....

for example this is what i get from the server above for a search
(cn=admin):

objectclass := inetOrgPerson
objectclass := organizationalPerson
objectclass := person
objectclass := top
objectclass := ndsLoginProperties
passwordrequired := False
messageserver := cn=DEVNET-PUBLIC_SYS,o=NOVELL
logintime := 2/4/2005 2:13:37 AM
networkaddress := System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
nrdregistryindex := System.Byte[]
language := System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
passwordallowchange := True
adspath := LDAP://www.nldap.com:389/cn=admin,o=NOVELL
equivalenttome := cn=bfjeldst,o=NOVELL
equivalenttome := cn=jcox,o=NOVELL
equivalenttome := cn=cseamons,o=NOVELL
equivalenttome := cn=AClark,o=NOVELL
equivalenttome := cn=FZhao,o=NOVELL
sn := admin
cn := admin
acl := System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
acl := System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
acl := System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
acl := System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).
nrdregistrydata := System.Byte[]
When you call a LDAP v2 Server with ADSI or with DirectoryServices, you
can't use custom attribute.
The reason is that ADSI/Directory Services need the schema to expose
attributes as object properties. Unfortunatly, LDAP schema is only published
in LDAP v3. So, when ADSI find a custom attribute, it can't determine its
type and raise an exception.

On a LDAP v2 server you must use only standard LDAP attribute with
ADSI/Directory Services . If you really need using custom attributes, you
must call the native C/LDAP API (and it's not fun !).


so that means you can not add handler for user specific types... that's a
shame...

thank you very much for your help...
Nov 16 '05 #3

"m96" <m9*@gmx.li> wrote in message
news:pa****************************@gmx.li...
hi,
My guess is that your LDAP Server is in LDAP v2 (MMS ?).


the problem also occurs on ldap v3 servers like the free novell ldap
server at www.nldap.com port 80 for informations and port 389 for the ldap
server. you can also create an account for authorized access. and even
then it won't work....

for example this is what i get from the server above for a search
(cn=admin):

objectclass := inetOrgPerson
objectclass := organizationalPerson
objectclass := person
objectclass := top
objectclass := ndsLoginProperties
passwordrequired := False
messageserver := cn=DEVNET-PUBLIC_SYS,o=NOVELL
logintime := 2/4/2005 2:13:37 AM
networkaddress := System.NotImplementedException: Handling of this
ADSVALUE type is not yet implemented (type = 0xb).
nrdregistryindex := System.Byte[]
language := System.NotImplementedException: Handling of this ADSVALUE type
is not yet implemented (type = 0xb).
passwordallowchange := True
adspath := LDAP://www.nldap.com:389/cn=admin,o=NOVELL
equivalenttome := cn=bfjeldst,o=NOVELL
equivalenttome := cn=jcox,o=NOVELL
equivalenttome := cn=cseamons,o=NOVELL
equivalenttome := cn=AClark,o=NOVELL
equivalenttome := cn=FZhao,o=NOVELL
sn := admin
cn := admin
acl := System.NotImplementedException: Handling of this ADSVALUE type is
not yet implemented (type = 0xb).
acl := System.NotImplementedException: Handling of this ADSVALUE type is
not yet implemented (type = 0xb).
acl := System.NotImplementedException: Handling of this ADSVALUE type is
not yet implemented (type = 0xb).
acl := System.NotImplementedException: Handling of this ADSVALUE type is
not yet implemented (type = 0xb).
nrdregistrydata := System.Byte[]
When you call a LDAP v2 Server with ADSI or with DirectoryServices, you
can't use custom attribute.
The reason is that ADSI/Directory Services need the schema to expose
attributes as object properties. Unfortunatly, LDAP schema is only
published
in LDAP v3. So, when ADSI find a custom attribute, it can't determine its
type and raise an exception.

On a LDAP v2 server you must use only standard LDAP attribute with
ADSI/Directory Services . If you really need using custom attributes, you
must call the native C/LDAP API (and it's not fun !).


so that means you can not add handler for user specific types... that's a
shame...

thank you very much for your help...


Note that acl is not a property of the inetOrgPerson in the Active Directory
schema. Didn't you try using the NDS ADSI provider instead of the LDAP
provider?

Willy.
Nov 16 '05 #4
If you don't like System.DirectoryServices, you can get third-party LDAP
libs for C#.
eg
http://forge.novell.com/modules/xfmo...ct/?ldapcsharp

(updated last week)

-Dino

"Willy Denoyette [MVP]" <wi*************@pandora.be> wrote in message
news:eV*************@TK2MSFTNGP15.phx.gbl...

"m96" <m9*@gmx.li> wrote in message
news:pa****************************@gmx.li...
hi,
My guess is that your LDAP Server is in LDAP v2 (MMS ?).


the problem also occurs on ldap v3 servers like the free novell ldap
server at www.nldap.com port 80 for informations and port 389 for the
ldap
server. you can also create an account for authorized access. and even
then it won't work....

for example this is what i get from the server above for a search
(cn=admin):

objectclass := inetOrgPerson
objectclass := organizationalPerson
objectclass := person
objectclass := top
objectclass := ndsLoginProperties
passwordrequired := False
messageserver := cn=DEVNET-PUBLIC_SYS,o=NOVELL
logintime := 2/4/2005 2:13:37 AM
networkaddress := System.NotImplementedException: Handling of this
ADSVALUE type is not yet implemented (type = 0xb).
nrdregistryindex := System.Byte[]
language := System.NotImplementedException: Handling of this ADSVALUE
type is not yet implemented (type = 0xb).
passwordallowchange := True
adspath := LDAP://www.nldap.com:389/cn=admin,o=NOVELL
equivalenttome := cn=bfjeldst,o=NOVELL
equivalenttome := cn=jcox,o=NOVELL
equivalenttome := cn=cseamons,o=NOVELL
equivalenttome := cn=AClark,o=NOVELL
equivalenttome := cn=FZhao,o=NOVELL
sn := admin
cn := admin
acl := System.NotImplementedException: Handling of this ADSVALUE type is
not yet implemented (type = 0xb).
acl := System.NotImplementedException: Handling of this ADSVALUE type is
not yet implemented (type = 0xb).
acl := System.NotImplementedException: Handling of this ADSVALUE type is
not yet implemented (type = 0xb).
acl := System.NotImplementedException: Handling of this ADSVALUE type is
not yet implemented (type = 0xb).
nrdregistrydata := System.Byte[]
When you call a LDAP v2 Server with ADSI or with DirectoryServices, you
can't use custom attribute.
The reason is that ADSI/Directory Services need the schema to expose
attributes as object properties. Unfortunatly, LDAP schema is only
published
in LDAP v3. So, when ADSI find a custom attribute, it can't determine
its
type and raise an exception.

On a LDAP v2 server you must use only standard LDAP attribute with
ADSI/Directory Services . If you really need using custom attributes,
you
must call the native C/LDAP API (and it's not fun !).


so that means you can not add handler for user specific types... that's a
shame...

thank you very much for your help...


Note that acl is not a property of the inetOrgPerson in the Active
Directory schema. Didn't you try using the NDS ADSI provider instead of
the LDAP provider?

Willy.

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: jeremy | last post by:
Hello. I have an asp.net application that resides on a non-DC / BDC Sharepoint Server (although it is logged into the domain). The application will perform lookups based on the current user...
1
by: Prasad Karunakaran | last post by:
I am using the C# DirectoryEntry class to retrieve the Properties of an user object in the Active Directory. I need to get the First Name and Last Name as properties. I know it is not supported...
0
by: hn | last post by:
hi! when querying ad (win2k) i keep getting the error "Handling of this ADSVALUE type is not yet implemented (type = 0xb)." but the funny thing is that i only get in with certain properties...
3
by: Jay | last post by:
I have a simple LDAP query (grabs all users from a particular AD group and populates a checkboxlist) that works perfectly fine on the development machine logged on locally as any user. When I...
1
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem...
4
by: Nico Koenig | last post by:
Hi there, I try to make an authorisation bind to the LDAP with ASP.NET. I use the DirectoryServices Namespace and the MSDN documented way to do it, but every time I get an "COMException: Server...
3
by: Chad Beckner | last post by:
I am starting to translate some code from ASP to ASP.NET (VB). I was able to query ADS to get a users groups that they belong to, and also query a group and get a list of users. However, I can't...
2
by: Neil via .NET 247 | last post by:
I have some code vb.net winforms, that works fine most of the time but stops working occasionally such as right now. The code is this Dim objDE As New DirectoryEntry("LDAP://" & DomainName) Dim...
2
by: Jay | last post by:
Hi, This is Jay Mehta. I have this problem when using LDAP. I extract names and EmailId's of all those present from LDAP and populate in a datagrid. Now when run locally, it is running...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.