SID-00675: LdapContrib cant import users into TWiki
| Status: |
Answered |
TWiki version: |
4.2.1 |
Perl version: |
5.10.0 |
| Category: |
LdapContrib |
Server OS: |
Ubuntu 9.04 |
Last update: |
14 years ago |
I am using
LdapContrib plugin for my TWiki. I wish to import user and group information from the LDAP server and authentication from a kerberos server. My Ldap server does not store passwords.
So, I intend to do this by installing the
LdapContrib plugin for all the user and group mappings, and to just modify the checkPassword function in it, to use the kerberos for authentication.
When I do a refresh cache, the log says, that adding wikiName = ... , login = ..., etc, and I think I have configured connecting to the Ldap server properly. The
TWikiGroups page also shows the groups from the LDAP.
But, I am facing the following problems.
1. The function
LdapContrib's checkPassword function never gets called, even when a user name is in the LDAP database. I think this is something to do with a missing handlesUser() function in the
LdapContrib plugin. I wrote this function and the
LdapContrib's checkPassword started getting called.
2. I am not too sure, if Ldap users have been added to my TWiki as
2.1. The
TWikiUsers fails to list my users from the Ldap server. It only shows me the users natively registered with the TWiki.
2.2. User home pages do not get created automatically.
How do I resolve the above to, and make sure, that my LDAP users have been added to TWiki.
--
SaurabhGupta123 - 2009-12-17
Discussion and Answer
I have been able to come around my problems in the following manner. I am however not sure, if this is the best way out of it.
1. The handlesUser() thing remains as it is. I am still confused about it though.
2.1
TWikiUsers page may be populated by putting in %LDAPUSERS% into it. This would list all users from the LDAP onto this page.
2.2 For this, use the
NewUserPlugin. Note that this plugin creates pages and adds user to the wiki, only when the user logs in for the first time(and does not add all users to the wiki, when it is installed). So, once a user logins in, its page gets created and she starts getting listed in the listing provided by the %LDAPUSERS%.
--
SaurabhGupta123 - 2009-12-22
Saurabh, I have been using LDAPContrib to get the user names from our Windows domain. I will give you the config working in our environment. But you will have to wait for some days as I am on leave this week !
--
ChengappaCB - 2009-12-24
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!
--
PeterThoeny - 2010-02-02
I have installed
LdapContrib and I manage to log in twiki using ldap uid and passwd.
I have configured in lib/LocalSite.cfg :
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::LdapUserMapping';
$TWiki::cfg{Ldap}{MapGroups} = 1;
And I can see my ldap groups and their user members when looking at this page :
http://mytwiki.../.../bin/view/Main/TWikiGroups
But I cant obtain a list of my users ??
This Doesn't work :
%LDAPUSERS%
Have I forgotten something ?
--
OlivierGuillard - 2012-02-09
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.