Tags:
create new tag
view all tags

Question

I've setup Fedora Directory server, and am trying to get LDAP authentication setup. However, I keep getting the error message that the login user account doesn't exist - even though it does on the directory server. More details are below.


I can authenticate to the directory server with the proxy user and make modifications etc.

[root@lupsca bin]# ./ldapmodify -v -D 'uid=TWikiLdapUser,ou=Special Users,dc=lupsca,dc=arc,dc=ab,dc=ca' -w 'blabla' -Y 'dn:uid=TestUser,ou=People,dc=lupsca,dc=arc,dc=ab,dc=ca'

ldapmodify: started Wed Dec 5 15:59:06 2007

ldap_init( localhost, 389 )

dn: uid=TestUser,ou=People,dc=lupsca,dc=arc,dc=ab,dc=ca

changetype: modify

replace: userPassword

userPassword: blabla -

replace userPassword: blabla

modifying entry uid=TestUser,ou=People,dc=lupsca,dc=arc,dc=ab,dc=ca

modify complete


I can see the groups I've setup on the directory server under TWiki's groups. The commands below also works as they should, display or updating etc.


#%LDAP{filter="(objectclass=*)" host="lupsca.arc.ab.ca" port="389" base="ou=TWikiGroups,DC=lupsca,dc=arc,dc=ab,dc=ca"}%

#%LDAP{"(objectClass=*)"}%

# INCLUDE{"TWiki.LdapContrib"}%


However, when I try to login as "TestUser" with this password, the httpd error logs say that "TestUser" is not found, even though this user is returned in the %LDAP{}% queries above.


The appropriate parts of my LocalSite.cfg file are below:

$TWiki::cfg{Ldap}{Host} = 'lupsca.arc.ab.ca';

$TWiki::cfg{Ldap}{Port} = 389;

$TWiki::cfg{Ldap}{Version} = '3';

$TWiki::cfg{Ldap}{Base} = 'dc=lupsca,dc=arc,dc=ab,dc=ca';

$TWiki::cfg{Ldap}{BindDN} = 'UID=TWikiLdapUser,ou=Special User,dc=lupsca,dc=arc,dc=ab,dc=ca';

$TWiki::cfg{Ldap}{BindPassword} = 'blabla';

$TWiki::cfg{Ldap}{SSL} = 0;

$TWiki::cfg{Ldap}{UseSASL} = 0;

$TWiki::cfg{Ldap}{SASLMechanism} = 'PLAIN CRAM-MD5 EXTERNAL ANONYMOUS';

$TWiki::cfg{Ldap}{Debug} = 1;

$TWiki::cfg{Ldap}{UserBase} = 'ou=People,dc=lupsca,dc=arc,dc=ab,dc=ca';

$TWiki::cfg{Ldap}{LoginFilter} = 'objectClass=*';

$TWiki::cfg{Ldap}{LoginAttribute} = 'uid';

$TWiki::cfg{Ldap}{WikiNameAttribute} = 'uid';

$TWiki::cfg{Ldap}{NormalizeWikiNames} = 1;

$TWiki::cfg{Ldap}{NormalizeLoginName} = 1;

$TWiki::cfg{Ldap}{AllowChangePassword} = 1;

$TWiki::cfg{Ldap}{SecondaryPasswordManager} = 'TWiki::Users::HtPasswdUser';

$TWiki::cfg{Ldap}{GroupBase} = 'ou=TWikiGroups,dc=lupsca,dc=arc,dc=ab,dc=ca';

$TWiki::cfg{Ldap}{GroupFilter} = 'objectClass=*';

$TWiki::cfg{Ldap}{GroupAttribute} = 'cn';

$TWiki::cfg{Ldap}{MemberAttribute} = 'uniqueMember';

$TWiki::cfg{Ldap}{MemberIndirection} = 1;

$TWiki::cfg{Ldap}{TWikiGroupsBackoff} = 1;

$TWiki::cfg{Ldap}{NormalizeGroupName} = 1;

$TWiki::cfg{Ldap}{MapGroups} = 1;

$TWiki::cfg{Ldap}{MaxCacheAge} = 86400;

$TWiki::cfg{Ldap}{PageSize} = 500;

$TWiki::cfg{Ldap}{Exclude} = 'TWikiGuest, TWikiContributor, TWikiRegistrationAgent, TWikiAdminGroup, NobodyGroup';

$TWiki::cfg{Plugins}{LdapNgPlugin}{Enabled} = 1;

$TWiki::cfg{Plugins}{NewUserPlugin}{Enabled} = 1;

1;

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Red Hat EL 5
Web server: Apache 2.2.3-11
Perl version: 5.8.8
Client OS: Linux, Windows
Web Browser: Firefox
Categories: Authentication

-- CraigAumann - 06 Dec 2007

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.

After makine some changes in twiki.conf for httpd, (see AuthenticationWithApacheAndLDAP) , things began to work. I was under the impression that this wasn't necessary. Anyways, things now seem to be working with Apache and LDAP. Whoo Hoo!

-- CraigAumann - 06 Dec 2007

Change status to:
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2007-12-06 - CraigAumann
 
  • 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.