Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Given the following standard workflow:

  1. A user supplies a username and password to an application (ie, webmail).
  2. The application authenticates the user against LDAP or AD.
  3. LDAP or AD log the authentication attempt, including the source of the request, which appears as the application IP.

Is it possible to include the IP of the user in an LDAP or AD request, in such a fashion it ends up in the LDAP or AD authentication log entries? Either: appending the information, or, replacing the application IP?

share|improve this question
Um, what do you mean by "include the IP of the user?" Users don't have IPs. Computers have IPs. – HopelessN00b Jul 18 '12 at 14:09
HopelessN00b - I think we all know what he meant. – mfinni Jul 18 '12 at 14:14

I'm fairly certain that this can't be done with AD as requested. However, nothing is preventing the application itself from logging the user's IP in either a text log or its own Windows application event log (assuming you have some level of code control over the application), and then this could be correlated with the AD logs, assuming your servers' timekeeping is in sync.

For generic/undefined LDAP, this is a more difficult question to concretely answer, but I think it's similar to the AD answer. Of course, if you have access to the code for the application and the LDAP server, you can pass and log whatever info you want to.

If you don't have access to the code of the application, and it doesn't have an option for logging the info now, there's nothing you can do to make it. Of course, if you control the firewall(s) or router(s), you could also be logging this info, as long as the username is passed as plaintext for the network to see.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.