You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

force login to wiki server

I want to setup a 'private' wiki server, accessible from the internet to authenticated users. Is there a way of forcing a login at the home page of the wiki server?

Mac mini, Mac OS X (10.7.2), Server

Posted on Jan 2, 2012 10:24 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 3, 2012 4:39 AM

To answer my own question.


1.Edit the controller for the wiki

nano /usr/share/collabd/coreclient/app/controllers/application_controller.rb

2. find the block

before_filter :set_locale, :ensure_supported_browser, :verify_auth_token, :current_user, :set_default_body_cl$

before_filter :current_user_can_destroy, :only => [:destroy]

after_filter :set_nosniff_header

3. Change to

before_filter :set_locale, :ensure_supported_browser, :verify_auth_token, :current_user, :set_default_body_cl$

before_filter :current_user_can_destroy, :only => [:destroy]

before_filter :ensure_user_is_authenticated

after_filter :set_nosniff_header

4. Restart the wiki

sudo serveradmin stop wiki

sudo serveradmin start wiki


Works for me, but don't know if this will survive an upgrade.

2 replies
Question marked as Top-ranking reply

Jan 3, 2012 4:39 AM in response to Peter Glock

To answer my own question.


1.Edit the controller for the wiki

nano /usr/share/collabd/coreclient/app/controllers/application_controller.rb

2. find the block

before_filter :set_locale, :ensure_supported_browser, :verify_auth_token, :current_user, :set_default_body_cl$

before_filter :current_user_can_destroy, :only => [:destroy]

after_filter :set_nosniff_header

3. Change to

before_filter :set_locale, :ensure_supported_browser, :verify_auth_token, :current_user, :set_default_body_cl$

before_filter :current_user_can_destroy, :only => [:destroy]

before_filter :ensure_user_is_authenticated

after_filter :set_nosniff_header

4. Restart the wiki

sudo serveradmin stop wiki

sudo serveradmin start wiki


Works for me, but don't know if this will survive an upgrade.

force login to wiki server

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.