I'm facing very strange problem. I have a program which connects to
SQL database and picks up employee records one by one and then the
same record is searched in the AD (Windows 2003 Server) using LDAP
fields like UserPrincipalName, ObjectCategory and ObjectClass. It then
updates fields like first name, last name, reporting manager.
Strange part is that it mostly works find but sometimes it updates
wrong details. That is it picks up the wrong AD account during search
and updates the account as well without any error.
Suppose program picks the details of employee A and then it attempts
to findout employee A on AD instead of employee A it gets employee C
and it replaces the details of employee C with that of employee A over
AD.
It runs daily under scheduler and processes 3000 records daily. Out of
these 3000 , sometimes 1 or 2 gets messed up.
I'm using .Net 2.0
Any help or insight in this will be greatly appreciated....
Thanks
> Suppose program picks the details of employee A and then it attempts
> to findout employee A on AD instead of employee A it gets employee C
> and it replaces the details of employee C with that of employee A over
> AD.
You'd need to check the logs generated by your app to see if the account
obtained from SQL was correct in the first place. If it was, you'd need to
post the part of the code that searches AD for the user; <search
base>;LDAPFilter, what your app logged as the found account, then how you
bound to the user object, and what your app logged as the bound object.
--
Gerry Hickman
London (UK)
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
"Gaurav Saxena" <gaur...@gmail.com> wrote in message
news:53273f96-ae14-4d4b...@u16g2000pru.googlegroups.com...