Re: LDAP query failing



Hi

you need to speak to your AD admins and find a good search base
to be using in your LDAP URL; you need to find where the user accounts
are rooted.

Also your search base format

cn=users,dc=adsdnsname

needs to be a distinguishedName so the leading part of the URL is:

ldap://myaddomain.com:389/cn=user,dc=myaddomain,dc=com

With mod_auth_ldap you will need an AD account that you can use to run
the search. You will also need some discipline on how the user accounts
are searched for if sAMAccountName is what the user will be entering that's
fine but if variations in the input e.g. userPrincipalName are likely you
will
probably need to parse those into sAMAccountNames or vice versa, this
could be tricky in a multi-domain environment and might need a global
catalog
search (your AD admins should be able to advise).

A further thing that you will want to do is to run the LDAP connection over
SSL so that the usernames and passwords that are presented for binding
do not pass over the network in cleartext. In the auth_ldap conf file you
can have a pointer to certificate store IIRC.

If you google you should find plenty of mod_auth_ldap examples for running
against
AD (and ADAM), it's quite widely used.

Lee Flight

"kevinL" <kevinL@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DE9FFEE4-C12B-4E27-8C3E-E604C854CAFC@xxxxxxxxxxxxxxxx
> My organization is really beginning to see the value of AD as an
> enterprise
> directory and I want to encourage that.
>
> We make good use of IIS for a variety of applications but our intranet
> runs
> on Apache, v 2.0.52. Users provide user names and passwords to access
> various pages on the intranet. I'd like to have Apache
> authenticate/authorize against our 2003 functional level domain ldap for
> user
> name and pw hash as well as group membership authorization. We already
> have
> our Unix servers authenticating against our AD for logins.
>
> I am attempting to use an Apache module called mod_auth_ldap for our
> intranet auth/auth.
>
> The question:
>
> An ldap query to:
>
> ldap://addnsname:389/cn=users,dc=adsdnsname,?sAMAccoutName?sub?(objectClass=user)
>
> returns:
>
> "dap_search_ext_s() for user failed"
>
> Perhaps, the query is not landing at the right place in the LDAP
> structure?
> I'd like to query against their logon name, userprincipalname or
> samaccountname.
>
> 1)Any suggestions would be appreciated.
>
> 2)Does anyone know where I could fine a graphical representation of the
> default LDAP structure of a 2003 AD? Trying to extrapolate from the
> detailed
> tools like ldp or dsquery is daunting?
>


.



Relevant Pages

  • Re: Looking for a centralized password setup for UNIX and Linux
    ... Our environment has grown from a few admins to many. ... have gone from a Solaris shop to one that includes lots of Solaris and ... Some suggestions so far have been: LDAP, NIS, Kerberos, and Active ...
    (comp.unix.admin)
  • =?iso-8859-1?q?Kann_PCs_nicht_automatisch_in_Dom=E4ne_aufnehmen?=
    ... Im LDAP ist der root auch der Domain Admins Gruppe zugeordent. ... Prev by Date: ... Next by Date: ...
    (de.comp.os.unix.networking.samba)
  • Re: Active Directory
    ... so much for admins as it doesn't really have any task-oriented ... It just lets you execute LDAP operations against an LDAP ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.windows.server.security)
  • Re: Write Privileges For OU Contacts
    ... currently they are connecting via default LDAP ... settings in Outlook. ... The search base looks fine. ... Are you suggesting I need to give each user the authority and ...
    (microsoft.public.windows.server.active_directory)
  • Re: Contacts -17747 error
    ... SP2 includes a fair amount of enhancements to Entourage's general LDAP ... Your Exchange Account: Advanced and empty the Search Base field. ... matching users are returned but I cannot get all users. ...
    (microsoft.public.mac.office.entourage)