Hello,
Hello team,
I am looking for help with trying to return values from an Unix LDAP
server via a query from MS SQL Linked server.
Here is what I have been doing:
--using sample code from the net, I create the linked server
EXEC sp_addlinkedserver 'ADSI', 'Active Directory Services 2.5',
'ADSDSOObject', 'adsdatasource'
GO
-- then I run a simple query like the following:
SELECT givenName FROM
OPENQUERY(ADSI,'''SELECT givenName
FROM ''LDAP://directory.domain.nul/o=US''')
--the server directory.domain.nul/o=US is not the real name.
--just changed the name for this example.
--givenName is an actual field in the LDAP Schema
The data that returns from the query matches the actual number of
records that match the query except that each record says NULL vice
showing the value of the data which should be a person's name like
"John Smith"
My understanding that it might be something related to UniCode but I
am hopeful someone else has done the same and came up with a solution.
Thanks for any help.
Luis