This question about LDAP: Asked

WikiName not displaying

Issue: smithJC successfully logs in using LDAPContrib. However the welcome screen states "Hello smithJC" rather than "Hello JohnCSmith"

04MAY2011 Observations:
  • The username being entered is not be set to lowercase. -- Applies to Firefox 4.0
    • If John logs in with smithjc the WikiName will not be associated.
    • If John logs in with SmithJC the WikiName is properly associated
    • AD user account is SmithJC
    • Given this observation is there a setting to do a lower() on all logins prior to WikiName lookup?
03MAY2011 Observations:
  • Works correctly with IE 8
  • Does not work correctly with Firefox 4.0
Earlier Observations:
  • Able to authenticate using LDAP Contrib.
  • When reviewing LDAP Cache the userid and WikiName are correct.
  • My production box is using an older version of the plugin as well as older version of foswiki and all works as expected.
Config File:
  • {LoginManager} = 'Foswiki::LoginManager::LdapApacheLogin'
  • {UserMappingManager} = 'Foswiki::Users::LdapUserMapping';
  • {Plugins}{NewUserPlugin}{Module} = 'Foswiki::Plugins::NewUserPlugin';
  • {Ldap}{Host} = 'xxx.xxx.local';
  • {Ldap}{Port} = '3268';
  • {Ldap}{Version} = '3';
  • {Ldap}{Base} = 'dc=xxx,dc=local';
  • {Ldap}{BindDN} = 'CN=xxxxx,OU=xxxx,OU=xxxxx,OU=xxxx,DC=xxx,DC=xxxx,DC=LOCAL';
  • {Ldap}{BindPassword} = 'xxxxxx';
  • {Ldap}{UseSASL} = 0;
  • {Ldap}{SASLMechanism} = 'PLAIN CRAM-MD5 EXTERNAL ANONYMOUS';
  • {Ldap}{UseTLS} = 0;
  • {Ldap}{TLSSSLVersion} = 'tlsv1';
  • {Ldap}{TLSVerify} = 'require';
  • {Ldap}{TLSCAPath} = '';
  • {Ldap}{TLSCAFile} = '';
  • {Ldap}{TLSClientCert} = '';
  • {Ldap}{TLSClientKey} = '';
  • {Ldap}{Debug} = 0;
  • {Ldap}{UserBase} = 'dc=xxxx,dc=local';
  • {Ldap}{LoginFilter} = '(&(objectCategory=user)(homeMDB=*)(department=*))';
  • {Ldap}{UserScope} = 'sub';
  • {Ldap}{LoginAttribute} = 'sAMAccountName';
  • {Ldap}{MailAttribute} = 'mail';
  • {Ldap}{WikiNameAttributes} = 'cn';
  • {Ldap}{NormalizeWikiNames} = 1;
  • {Ldap}{NormalizeLoginNames} = 1;
  • {Ldap}{WikiNameAliases} = 'xxxxxx=yyyyyyy';
  • {Ldap}{RewriteWikiNames} = { '^(.*)@.*$' => '$1' };
  • {Ldap}{AllowChangePassword} = 0;
  • {Ldap}{SecondaryPasswordManager} = 'Foswiki::Users::HtPasswdUser';
  • {Ldap}{GroupBase} = 'ou=foswiki,ou=xxxxx,ou=xxxxx,ou=xxxx,dc=xxxx,dc=xxxxx,dc=local';
  • {Ldap}{GroupFilter} = 'objectClass=Group';
  • {Ldap}{GroupScope} = 'one';
  • {Ldap}{GroupAttribute} = 'cn';
  • {Ldap}{PrimaryGroupAttribute} = 'primaryGroupID';
  • {Ldap}{MemberAttribute} = 'member';
  • {Ldap}{InnerGroupAttribute} = 'memberOf';
  • {Ldap}{MemberIndirection} = 1;
  • {Ldap}{WikiGroupsBackoff} = 1;
  • {Ldap}{NormalizeGroupNames} = 1;
  • {Ldap}{MapGroups} = 1;
  • {Ldap}{RewriteGroups} = {};
  • {Ldap}{MergeGroups} = 0;
  • {Ldap}{MaxCacheAge} = '18000';
  • {Ldap}{Precache} = 1;
  • {Ldap}{PageSize} = 500;
  • {Ldap}{Exclude} = 'WikiGuest, ProjectContributor, RegistrationAgent, UnknownUser, AdminGroup, NobodyGroup, AdminUser, admin, guest';
  • {Plugins}{NewUserPlugin}{Enabled} = 0;
  • {Plugins}{LdapNgPlugin}{Enabled} = 1;
  • {Plugins}{LdapNgPlugin}{Module} = 'Foswiki::Plugins::LdapNgPlugin';
  • 1;
Your thoughts are greatly appreciated.

QuestionForm edit

Subject LDAP
Extension LdapContrib
Version Foswiki 1.1.2
Status Asked
Topic revision: r3 - 04 May 2011, ChristopherMeister
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy