# Windows AD/LDAP Problems

**URL:** <https://community.f5.com/t/windows-ad-ldap-problems/33791>\
**Category:** Technical Forums\
**Tags:** management, monitoring\
**Created:** [April 14, 2011, 5:18pm UTC](https://community.f5.com/t/windows-ad-ldap-problems/33791 "2011-04-14T17:18:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wintrode\_61162](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@Wintrode\_61162](https://community.f5.com/u/Wintrode_61162)\
**Post date:** [April 14, 2011, 5:18pm UTC](https://community.f5.com/t/windows-ad-ldap-problems/33791/1 "2011-04-14T17:18:43Z")

</div>

When I bind and query from the F5 using ldapsearch…it works, but when I configure the F5 to use it for auth I get an error:

Apr 14 12:57:59 local/f5devicename alert httpd[19973]: pam\_unix(httpd:account): could not identify user (from getpwnam(186137))

Apr 14 12:57:59 local/f5devicename err httpd[19973]: [error] [client 10.10.242.44] AUTHCACHE PAM: user ‘186137’ - invalid account: Authentication failure, referer: [https://f5devicename/tmui/login.jsp?msgcode=1&](https://f5devicename/tmui/login.jsp?msgcode=1&)

I see a different series of log entries when I enter a known bad ID, so this leads me to believe I am authenticating, but the F5 either does not like my all s ID, or something else is going on. Any thoughts?

---

<div class="post-metadata">

**Author:** ![hoolio](https://avatars.discourse-cdn.com/v4/letter/h/f6c823/32.png) [@hoolio](https://community.f5.com/u/hoolio)\
**Post date:** [April 15, 2011, 6:15pm UTC](https://community.f5.com/t/windows-ad-ldap-problems/33791/2 "2011-04-15T18:15:39Z")

</div>

Can you post your sanitized admin auth config from /config/bigip\_sys.conf? You could try comparing a tcpdump of your manual ldapsearch with the request LTM sends during its auth attempt.

Aaron

---

<div class="post-metadata">

**Author:** ![Wintrode\_61162](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@Wintrode\_61162](https://community.f5.com/u/Wintrode_61162)\
**Post date:** [April 26, 2011, 8:59pm UTC](https://community.f5.com/t/windows-ad-ldap-problems/33791/3 "2011-04-26T20:59:05Z")

</div>

Ok, so with the TCP dump I see the initial binding with my hard-coded credentials that conducts the lookup on the samaccountname. I then see a successful bind of the samaccountname entered at the login prompt. Then another bind of the hard-coded credentials.

I wonder if my attribute definition is wrong for the remote-role? Would that be logged somewhere?
