Tags:
ldap1Add my vote for this tag create new tag
view all tags

Question

I'm trying to setup a twiki that uses transparent Windows authentication and auto-populates the registration screen with a few basic fields through and LDAP query off of an Active Directory server.

I have the transparent authentication working using the Apache mod_ntlm 1.3 module and have % REMOTE_USER % showing up as domain\username. Great!

I have the LdapPlugin installed and showing up as an activated plugin but when I put a command in my personal test page such as %LDAP{host="corp-dc01.xxxxxxxxxx.yyy" base="DC=xxxxxxxxxx,DC=yyy" filter="sn=Woerth" format="$fullName"}% it keeps returing "LDAP Query Returned Zero Records [Filter=sn=Woerth]". My first guess is that you can't do anonymous queries against AD so if that's my problem, where do I set the DN to connect with?

I have these errors in the Apache log file: [Wed Nov 30 16:20:30 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!

[Wed Nov 30 16:20:30 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!

[Wed Nov 30 16:20:30 2005] [notice] cannot use a full URL in a 401 ErrorDocument directive --- ignoring!

[Wed Nov 30 16:20:32 2005] [error] [client 10.122.21.147] [Wed Nov 30 16:20:32 2005] c:\\twiki\\bin\\view: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Plugins/LdapPlugin.pm line 50.\n

[Wed Nov 30 16:20:32 2005] [error] [client 10.122.21.147] [Wed Nov 30 16:20:32 2005] c:\\twiki\\bin\\view: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Plugins/LdapPlugin.pm line 51.\n

[Wed Nov 30 16:20:32 2005] [error] [client 10.122.21.147] [Wed Nov 30 16:20:32 2005] c:\\twiki\\bin\\view: Use of uninitialized value in substitution (s///) at ../lib/TWiki/Plugins/LdapPlugin.pm line 52.\n

Thanks!

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, LdapPlugin
Server OS: Windows Server 2003
Web server: Apache 1.3.33
Perl version: 5.8.7 on Cygwin
Client OS: Windows XP Pro SP2
Web Browser: IE 6
Categories:  

-- RyanWoerth - 30 Nov 2005

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

The LDAP plugin doesn't do bind - if your AD requires authentication you need to add a bit of code.

To check whether your AD does allow anonymous binding you can use ldapsearch from the openldap package for cygwin. Try the same query as with the plugin, and then add -D yourDN -w yourPassword.

BTW: If you have authenticated users but possibly more than one with the same surnames, you might want to filter on samAccountName, which is the windows username. AD has quite a couple of values derived from the username...

-- HaraldJoerg - 30 Nov 2005

Try LdapContrib

-- SibiJoseph - 20 Mar 2007

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2007-10-11 - MichaelDaum
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.