Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Query active directory's custom attribute

$
0
0

Hi

I'm having trouble getting at custom value from our Active directory(AD) via linked server.

we recently added a new attribute (named noxNotes) in our AD and that attribute is only viewable to one user(AD user).
I've created a linked server on my SQL Server and added that user as the security context for the linked server. when i query the ADwithout asking for the new attribute everything works fine, but when i add the noxNotes attribute to the query i get an error.

Error:
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "ADsDSOObject" for linked server "ADSI_nox" reported an error. The provider did not give any information about the error.
Msg 7350, Level 16, State 2, Line 1
Cannot get the column information from OLE DB provider "ADsDSOObject" for linked server "ADSI_nox".

I know the users permissions are correct because in other systems i can see and edit the AD attribute with the user.

Does anybody have any experience with querying the AD for at custom attribute with security?

Thanks

Jacob


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>