I have an application in which I send a list of AD attributes I want returned, and then I display the returned set in a grid.
This works fine on my development machine (XP Pro IIS 5.1), but when I copy the application to our production server (W2K IIS 5.0) the call to AD errors out. The odd thing is that I have determined that certain attributes appear to be the culprit.
I am looking for sAMACountName, department, mail, employeeID, and cn. When I pass the request on my development machine I get a dataset of our entire Active Directory with all the above attributes displayed just fine. If I run it on the production server, I get nothing.
Through trial and error I have determined that my production server doesn't seem to like the sAMACountName, department, or employeeID attributes. If I remove those from my list, the other attributes are returned fine on the production server. If I even add just one of the 'bad' ones above, the DirectorySearcher routine blow up with a "Handling of this ADSVALUE type is not yet implemented (type = 0xb)" error.
I'm completely stumped on this one. Obviously AD likes my development IIS server, but not our production server, and I have no idea why.
Any ideas or suggestions would be greatly appreciated?
Thanks.