Tags:
create new tag
view all tags

SID-00222: Setting groups in TWiki > Main Web > WebPreferences

Status: Unanswered Unanswered TWiki version: 4.2.4 Perl version: perl 5.8.8
Category: CategoryAccessControl Server OS: centos 5.2 Last update: 14 years ago

I am trying to dynamically generate the list of groups for Set ALLOWWEBVIEW and Set ALLOWWEBCHANGE inTWiki > Main Web > WebPreferences by getting the list with LdapNgPlugin. I am using the following code %LDAP{"(objectClass=groupOfUniqueNames)" base="(ou=group)" format="$cn" SEP=", " }% But it does not work, the list gets generated and displays the data correctly, but if i try to log on, I get view access denied. If I copy the output of the call and replace the code with the output (the list of groups) it works fine. It seems that the ldap call is not being made at logon? i also tried the twiki variable %groups% but I cant figure out how to create the comma separated list from the output. any ideas

-- VirgilAlderson - 25 Mar 2009

Discussion and Answer

TWiki's access control code expands only a limited number of variables, such as %MAINWEB%. Even though your LDAP search produces the proper format it won't work because the LdapNgPlugin it is too late in the eval chain. You need to use the groups exposed by LdapContrib.

-- PeterThoeny - 25 Mar 2009

do you have an example on how I can get the information from ldapcontrib within twiki?

-- VirgilAlderson - 26 Mar 2009

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 - 2009-05-02

      Change status to:
ALERT! 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.
SupportForm
Status Unanswered
Title Setting groups in TWiki > Main Web > WebPreferences
SupportCategory CategoryAccessControl
TWiki version 4.2.4
Server OS centos 5.2
Web server apache 2.2.3
Perl version perl 5.8.8
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2009-05-02 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.