This question about LDAP: Closed unanswered

distinguishedName not retrievable (dn not found)

-- PatrickLaurin - 10 Sep 2015

My OS is a Centos 7 x86-64

-- PatrickLaurin - 10 Sep 2015

Nevermind! We had a change of plans

-- PatrickLaurin - 17 Sep 2015
 

It seems my LdapContrib won't connect on my Active Directory. The variable $dn in "lib/Foswiki/Users/LdapPasswdUser.pm::checkPassword" stays undefined after the line "my $dn = $this->{ldap}->getDnOfLogin($login);" is executed.

Here's the httpd error log. The third line is a debug message manually added in "lib/Foswiki/Contrib/LdapContrib.pm::getDnOfLogin":

[Thu Sep 10 14:07:16.848055 2015] [cgi:error] [pid 2003] [client 10.231.1.25:52271] AH01215: - LdapContrib - constructed a new LdapContrib object, referer: http://foswiki.avior.local/bin/login/Main/WebHome

[Thu Sep 10 14:07:17.053714 2015] [cgi:error] [pid 2003] [client 10.231.1.25:52271] AH01215: - LdapPasswdUser - called checkPassword(p_laurin, password, Foswiki::Users::LdapPasswdUser=HASH(0x4097128)), referer: http://foswiki.avior.local/bin/login/Main/WebHome

[Thu Sep 10 14:07:17.054091 2015] [cgi:error] [pid 2003] [client 10.231.1.25:52271] AH01215: - LdapContrib - ADDED - $data=HASH(0x409d3f0), $login_name=p_laurin, $this=Foswiki::Contrib::LdapContrib=HASH(0x40be280), referer: http://foswiki.avior.local/bin/login/Main/WebHome

[Thu Sep 10 14:07:17.054219 2015] [cgi:error] [pid 2003] [client 10.231.1.25:52271] AH01215: - LdapPasswdUser - dn not found, referer: http://foswiki.avior.local/bin/login/Main/WebHome

[Thu Sep 10 14:07:17.439720 2015] [cgi:error] [pid 2003] [client 10.231.1.25:52271] AH01215: - LdapContrib - finishing, referer: http://foswiki.avior.local/bin/login/Main/WebHome


My config file is listed here:

$Foswiki::cfg{Ldap}{AllowChangePassword} = 0;

$Foswiki::cfg{Ldap}{Base} = 'dc=avior,dc=local';

$Foswiki::cfg{Ldap}{BindDN} = 'cn=binduser,cn=Users,dc=avior,dc=local';

$Foswiki::cfg{Ldap}{BindPassword} = 'password';

$Foswiki::cfg{Ldap}{CaseSensitiveLogin} = 0;

$Foswiki::cfg{Ldap}{CharSet} = 'utf-8';

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

$Foswiki::cfg{Ldap}{DefaultCacheExpire} = '0';

$Foswiki::cfg{Ldap}{Exclude} = 'WikiGuest, ProjectContributor, RegistrationAgent, UnknownUser, AdminGroup, NobodyGroup, AdminUser, admin, guest';

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

$Foswiki::cfg{Ldap}{GroupBase} = ['ou=group,dc=my,dc=domain,dc=com'];

$Foswiki::cfg{Ldap}{GroupFilter} = 'objectClass=posixGroup';

$Foswiki::cfg{Ldap}{GroupScope} = 'sub';

$Foswiki::cfg{Ldap}{Host} = 'ldap-host.avior.local';

$Foswiki::cfg{Ldap}{IPv6} = 0;

$Foswiki::cfg{Ldap}{IgnorePrivateGroups} = 1;

$Foswiki::cfg{Ldap}{IgnoreViewRightsInSearch} = 0;

$Foswiki::cfg{Ldap}{IndexEmails} = 1;

$Foswiki::cfg{Ldap}{InnerGroupAttribute} = 'memberUid';

$Foswiki::cfg{Ldap}{KerberosKeyTab} = '/etc/krb5.keytab';

$Foswiki::cfg{Ldap}{LoginAttribute} = 'sAMAccountName';

$Foswiki::cfg{Ldap}{LoginFilter} = 'objectClass=posixAccount';

$Foswiki::cfg{Ldap}{MailAttribute} = 'mail';

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

$Foswiki::cfg{Ldap}{MaxCacheAge} = '0';

$Foswiki::cfg{Ldap}{MemberAttribute} = 'memberUid';

$Foswiki::cfg{Ldap}{MemberIndirection} = 0;

$Foswiki::cfg{Ldap}{MergeGroups} = 0;

$Foswiki::cfg{Ldap}{NormalizeGroupNames} = 0;

$Foswiki::cfg{Ldap}{NormalizeLoginNames} = 0;

$Foswiki::cfg{Ldap}{NormalizeWikiNames} = 0;

$Foswiki::cfg{Ldap}{PageSize} = '500';

$Foswiki::cfg{Ldap}{PersonAttribures} = {'c' => 'Country','company' => 'OrganisationName','department' => 'Department','division' => 'Division','facsimileTelephoneNumber' => 'Telefax','givenName' => 'FirstName','l' => 'Location','mail' => 'Email','manager' => 'Manager','mobile' => 'Mobile','physicalDeliveryOfficeName' => 'Address','postalAddress' => 'Address','sAMAccountName' => 'LoginName','sn' => 'LastName','streetAddress' => 'Address','telephoneNumber' => 'Telephone','title' => 'Title','uid' => 'LoginName'};

$Foswiki::cfg{Ldap}{PersonDataForm} = 'UserForm';

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

$Foswiki::cfg{Ldap}{Precache} = 1;

$Foswiki::cfg{Ldap}{PreferLocalSettings} = 1;

$Foswiki::cfg{Ldap}{PrimaryGroupAttribute} = 'gidNumber';

$Foswiki::cfg{Ldap}{RewriteGroups} = {};

$Foswiki::cfg{Ldap}{RewriteWikiNames} = {'^(.*)@.*$' => '$1'};

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

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

$Foswiki::cfg{Ldap}{TLSCAFile} = '';

$Foswiki::cfg{Ldap}{TLSCAPath} = '';

$Foswiki::cfg{Ldap}{TLSClientCert} = '';

$Foswiki::cfg{Ldap}{TLSClientKey} = '';

$Foswiki::cfg{Ldap}{TLSSSLVersion} = 'tlsv1';

$Foswiki::cfg{Ldap}{TLSVerify} = 'optional';

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

$Foswiki::cfg{Ldap}{UseTLS} = 0;

$Foswiki::cfg{Ldap}{UserBase} = ['OU=sub3,OU=sub2,OU=sub1,OU=main,DC=avior,DC=local'];

$Foswiki::cfg{Ldap}{UserMappingTopic} = '';

$Foswiki::cfg{Ldap}{UserScope} = 'one';

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

$Foswiki::cfg{Ldap}{WikiGroupsBackoff} = 1;

$Foswiki::cfg{Ldap}{WikiNameAliases} = '';

$Foswiki::cfg{Ldap}{WikiNameAttributes} = 'cn';

QuestionForm edit

Subject LDAP
Extension LdapContrib
Version
Status Closed unanswered
Related Topics
Topic revision: r4 - 17 Sep 2015, MichaelDaum
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