# Having issues setting up LDAP/Active Directory auth

**URL:** <https://discourse.openondemand.org/t/having-issues-setting-up-ldap-active-directory-auth/675>\
**Category:** Get Help\
**Tags:** question\
**Created:** [January 16, 2020, 10:17pm UTC](https://discourse.openondemand.org/t/having-issues-setting-up-ldap-active-directory-auth/675 "2020-01-16T22:17:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [January 17, 2020, 4:08pm UTC](https://discourse.openondemand.org/t/having-issues-setting-up-ldap-active-directory-auth/675/3 "2020-01-17T16:08:48Z")

</div>

For reference (my own as much as anyone else’s’), here’s the ldapsearch translation of that `AuthLDAPURL`.

`“ldap://ldap.domain.local:389/OU=Users,DC=domain,DC=local?sAMAccountName”’`

`ldapsearch -W -h "ldap.domain.local" -b "OU=Users,DC=domain,DC=local" cn=test.user sAMAccountName`

If I do something similar for myself, I can find myself in our LDAP.

```bash
[johrstrom@host ~]$ ldapsearch -x -h "host" -b "ou=People,dc=osc,dc=edu" cn=johrstrom uid
# extended LDIF
#
# LDAPv3
# base <ou=People,dc=osc,dc=edu> with scope subtree
# filter: cn=johrstrom
# requesting: uid 
#

# johrstrom, People, osc.edu
dn: cn=johrstrom,ou=People,dc=osc,dc=edu
uid: johrstrom

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

```

---

_[View the full topic](https://discourse.openondemand.org/t/having-issues-setting-up-ldap-active-directory-auth/675)._
