Tags:
access_control1Add my vote for this tag create new tag
, view all tags

Question

How do I use the %LDAP{...}% macro with ALLOWWEBVIEW and ALLOWTOPICVIEW? What is the recommended format for getting this to work with access controls? I am able to get it working as far as displaying members for group lists and displaying filtered lists of users with entries like %LDAP{"(&(objectClass=group)(cn=Domain Admins))" limit="10" header="| Nr | Group | Members |" format="| $index | $cn | $member |" sort="cn"}%

Perhaps I should say LdapNgPlugin as I am able to do something like

ALLOWWEBVIEW = %LDAP{(&(objectClass=group)(cn=Domain Admins)) format="$member"}%

in order to list users, but they are all shown with the CN= DN= of the member info and that doesn't help ALLOWWEBVIEW do anything.

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: CommentPlugin EditTablePlugin InterwikiPlugin LdapNgPlugin PreferencesPlugin SlideShowPlugin SmiliesPlugin SpreadSheetPlugin TablePlugin TwistyPlugin LdapContrib
Server OS: CentOS Linux 4.5, kernel 2.6.9-55.EL
Web server: Apache/2.0.52
Perl version: 5.8.5
Client OS: WindowsXPsp2
Web Browser: Firefox 2.0.0.4
Categories: Authorisation

-- ErnieOporto - 22 Jun 2007

Sorry, closing this after more than 30 days of inactivity...

-- PeterThoeny - 10 Aug 2007

The %LDAP{}% macro is not used to populate ACL lists. Use the LdapContrib to bring in your user accounts and then user their (wiki)name in the ACLs.

-- MichaelDaum - 10 Aug 2007

 
Change status to:
Topic revision: r4 - 2007-08-10 - MichaelDaum
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.