SID-01659: LDAP contrib
| Status: |
Answered |
TWiki version: |
5.1.4 |
Perl version: |
5.10.1 |
| Category: |
LdapContrib |
Server OS: |
Centos 6 |
Last update: |
13 years ago |
Hi,
I am trying to use LDAP Contrib in my twiki. I have installed it but not able to set it up properly.
I could test ldap connection using /tools/ldaptest where I have set parameters as below my $server = 'IP address of my ldap server' my $baseDN = 'dc=abc,dc=xyz' my $bindUser ='sachin.wable@myldapserver.com' my $bindPassword = 'password' my $sizeLimit = 10;
above settings could connect to ldap.
I have installed LDAP contrib module and trying to set it from /configure.
Please tell me what settings i have to make to make this module working.
Thank you, Sachin
--
Sachin Wable - 2013-03-18
Discussion and Answer
I got users authenticated from LDAP. But I have a problem of profiles. When user log in using their LDAP username and password and click on their name it open page to create topic. I want them to create profile instead of creating a topic.
--
Sachin Wable - 2013-03-25
Install the
NewUserPlugin.
--
Peter Thoeny - 2013-03-25
Thanks Peter, It worked but now its not rendering ldap user on the profile page. it just shows Sachin Wable@ TWiki and then blank page and then footer. I have installed
LdapNgPlugin and gluePlugin also as explained on twiki.org/vgi-bin/view/Plugins/NewUserPlugin
if i try to edit user profile page there i can see content as below
% SPACEOUT{"sachin.wable"}% @ <nop>TWiki
% INCLUDE{"TWiki06x01.RenderLdapUser" KEY="sachin.wable"}%
It should include above and render ldap user right? But why its showing blank page? any clue?
Above, I have intentianally added spave between % and SPACEOUT and a space between % and INCLUDE to show how it looks else its trying to include that in this comment.
Thank you, Sachin
--
Sachin Wable - 2013-03-25
May be the
RequireRegistrationPlugin works better for you.
--
Peter Thoeny - 2013-03-25
No, I will not require them to register as they are LDAP users. I just want them to create profile or show their profile from ldap.
--
Sachin Wable - 2013-03-26
Actually I removed
LdapNgPlugin and
GluePlugin and just installed
NewUserPlugin. Now I can see below content on users profile.
%~~ LDAP{"(&(objectClass=posixAccount)(uid=sachin.wable))" ~~~ clear="$jpegPhoto,$cn,$mail,$telephoneNumber,$o,$postalAddress" ~~~ limit="1" ~~~ format=" ~~~ ~~~ ~~~ ~~~ $percntIFDEFINEDTHEN{\"$jpegPhoto\" as=\"$[j]pegPhoto\"}$percnt ~~~ ~~~ $percntFIDEFINED$percnt ~~~ ~~~ ~~~ ~~~ \"$cn\" ~~~ ~~~ ~~~ ~~~ ~~~ ~~~ ~~~ ~~~ ~~~ ~~~ ~~~ ~~~ ~~~ Name: $cn Email: $mail Tel: $telephoneNumber Organization: $o Address: $postalAddress ~~~ ~~~ " ~~~ }%
Its showing all variables. right? it should evaluate it...
Thank you, Sachin
--
Sachin Wable - 2013-03-26
Done.
I used
NewUserPlugin and * Set NEWUSERTEMPLATE =
NewUserTemplate in data/main/TWikiPreferences.txt
Thank you,
Sachin
--
Sachin Wable - 2013-03-26
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.