Active Directory - Retreiving employeeID

Started by jtrask, May 03, 2016, 11:19:08 AM

Previous topic - Next topic

jtrask

Is there something magical about the employeeID attribute on an Active Directory user account? 

When I use the ADSI extender, I'm able to retrieve the user's e-mail address, but when I use dsGetProperty to retrieve the employeeID, it comes back blank.  I CAN retrieve the information via LDAP.  Does it HAVE to be done that way?

dsGetPropName shows that employeeID is a valid property.  When I look at the user account via Users and Computers I can see the employeeID has a value.  Why does my life have to be so difficult?

td

Can't offer any advice other than checking your function parameters to make sure they are what you think they are.  The ADSI extender has no problems getting that value in our testing.  Generally, you would get an error if the problem was security related.  DsGetProperty usually returns an empty string when the property does not have any value.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade