r4 - 10 Aug 2007 - 22:02:46 - MichaelDaumYou are here: TWiki >  Support Web > LdapContribAndAllowWebView
Tags:
access_control 1 Add my vote for this tag, , create new tag

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:
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo