cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
489
Views
0
Helpful
1
Replies

LDAP error with C# objects

mnelvers1
Level 1
Level 1

I am trying to write a C# application that extracts data from the Cisco CallManager directory. We have CallManager version 4.1. I seem to be able to connect to the server alright and I can get the list of property names but almost all of the values come back with the following error text "System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type = 0xb).". I have tries using the C# DirectoryEntry and DirectorySearcher object and I have tried making straight ADSI calls. Neithor one works. Also, the number of properties is quite small. Has anyone seen this problem and do you have a solution. I will really appreciate any help. I have attached a small file with some sample output.

ADSVALUE

error

1 Reply 1

rperzul
Level 1
Level 1

As an alternative for querying CallManager DC Directory or other LDAP based directories I can

strongly recommend LDAP Libraries for C# which are available as open source from Novell.

http://forge.novell.com/modules/xfmod/project/?ldapcsharp

In order to use it you will have to install Mono as well.

http://www.mono-project.com

I suggest you download the Samples from Novell and create a new console application using

"search.cs". I have just tried it out and after passing a string similar like the following

search.exe callmanager_ip 8404 "cn=Directory Manager,o=cisco.com" password "ou=Users,o=cisco.com" "(objectclass=*)"

directory entries will be returned like this one:

cn=rperzul,ou=Users,o=cisco.com

userPassword;hash-md5value:A2BFOlNE

ciscoatUserProfileStringvalue:cn=rperzul-profile, ou=profiles, ou=CCN, o=cisco.com

cnvalue:rperzul

snvalue:Perzul

givenNamevalue:Ronald

objectClassvalue:inetOrgPerson

mailvalue:rperzul

ciscoatUserProfilevalue:cn=rperzul-profile,ou=profiles,ou=CCN,o=cisco.com

ciscoatGUIDvalue:-{650401215122003}

telephoneNumbervalue:67

Hope that helps.