English 中文(简体)
SSIS Script Task connecting to AD
原标题:

I have written a SSIS 2005 script task that connects to Active Directory and reads user accountnames to store in database. I was able to successfully test this on my local system by executing dtexec.exe cmd. However, when I try the same on the server, the ldap query times out. The same ldap query as a console application just works fine.

I m using .NET class: System.DirectoryServices.Protocols.LdapConnection and SendRequest to retrieve user account names.

Could you let me know if I m missing something?

Thanks!

=========

Update: I m actually getting "Ldap Server is unavailable" error. Still not sure, what might be causing this error.

问题回答

Check the credentials that you are using in server to get the data from ADS. It should be a domain account I think. This will be different from what you used at development environment. Plus check if the DNS/WINS names you use is correctly getting resoled to IP address.





相关问题
Using JavaScript to get an LDAP multi-valued string attribute

I am trying to retrieve an object attribute in Active Directory that appears to be a multi-valued string (See canonicalName). After performing a search: var conn; conn.Open = Provider=ADsDSOObject; ...

Test "User Must Change Password" field in .Net 3.5

I m trying to perform some basic AD User managment tasks in C# using .Net 3.5 I ve got a System.DirectoryServices.AccountManagement.UserPrincipal object that contains the user details. I can call ...

SSIS Script Task connecting to AD

I have written a SSIS 2005 script task that connects to Active Directory and reads user accountnames to store in database. I was able to successfully test this on my local system by executing dtexec....

Update Full Name in Active Directory

I ve been thrust into the deep end with Active Directory (I m a web developer, go fig) I have a user that I ve changed first/last name on but the Full Name hasn t changed which is causing issues with ...

Authenticate against Active Directory/ISA from php [closed]

I have a complicated problem, exacerbated by the fact I don t really know where to start! Over the last few years, I ve developed a number of php web-based systems. When I built them, our network was ...

热门标签