SID-00222: Setting groups in TWiki > Main Web > WebPreferences
Status: |
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
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.