SID-01984: Authentication against LDAP
| Status: |
Answered |
TWiki version: |
6.0.1 |
Perl version: |
5.14.2 |
| Category: |
LdapContrib |
Server OS: |
Ubuntu 12.04 |
Last update: |
10 years ago |
Hey there,
I tried to configure
LdapContrib using an external LDAP server. I've got a Base DN, a port, a proxy user, a host and a Bind DN with password.
I configured TWiki with these values. But authentication doesn't work.
Should I additionally change something in my twiki.conf though I use an external server?
That's my
LocalSite.cfg:
$TWiki::cfg{LoginManager} = 'TWiki::LoginManager::TemplateLogin';
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::LdapUserMapping';
$TWiki::cfg{Register}{EnableNewUserRegistration} = 1;
$TWiki::cfg{PasswordManager} = 'TWiki::Users::LdapPasswdUser';
$TWiki::cfg{Htpasswd}{FileName} = '/path/twiki/data/.htpasswd';
$TWiki::cfg{MailProgram} = 'usr/sbin/sendmail -t -oi -oeq';
$TWiki::cfg{SMTP}{MAILHOST} = 'localhost';
$TWiki::cfg{SMTP}{SENDERHOST} = '';
$TWiki::cfg{SMTP}{Username} = '';
$TWiki::cfg{SMTP}{Password} = '';
$TWiki::cfg{Ldap}{Debug} = 1;
$TWiki::cfg{Ldap}{Host} = 'ldap.host.somewhere';
$TWiki::cfg{Ldap}{Port} = 389;
$TWiki::cfg{Ldap}{Version} = 3;
$TWiki::cfg{Ldap}{Base} = 'ou=users,dc=host,dc=somewhere';
$TWiki::cfg{Ldap}{BindDN} = ''uid=user,ou=users,dc=host,dc=somewhere';
$TWiki::cfg{Ldap}{BindPassword} = ''SECRET;
$TWiki::cfg{Ldap}{UseSASL} = 0;
$TWiki::cfg{Ldap}{SASLMechanism} = 'PLAIN CRAM-MD5 EXTERNAL ANONYMOUS';
$TWiki::cfg{Ldap}{SecondaryPasswordManager} = 'TWiki::Users::HtPasswdUser';
--
Carolin Preuss - 2014-10-26
Discussion and Answer
LDAP configuration can be tricky because there are so many variables. It takes time to debug and configure properly. If you need timely help and are stuck you can engage one of the
TWikiConsultants.
--
Peter Thoeny - 2014-10-27
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
Peter Thoeny - 2015-12-03
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.