default userpic

BasicAuth

Vote 0 Votes

I'm trying to integrate Apache2 authentication to MT. This setup is working for other apps, in the case of MT I'm being asked for user/passwd by apache2, the authentication succeeds, but MT is not happy....

The message I get (in spanish, sorry):
---------
Lo sentimos, pero no tiene permisos para acceder a ninguno de los blogs en esta instalación. Si cree que este mensaje se le muestra por error, por favor, contacte con su administrador de Movable Type.
---------

Part of mt-config.cgi:

---------
# == Auth ==
AuthenticationModule BasicAuth
ExternalUserManagement 1
---------

Any ideas?

Reported on Movable Type 4.2

28 Replies

| Add a Reply
  • http://www.sixapart.com/movabletype/docs/3.3/d_configuration_directives/authenticationmodule.html says that AuthenticationModule is only supported in MT Enterprise. What version of MT are you using?

  • default userpic

    The OpenSource version?
    That doc is for MT v3.3, supposedly the BasicAuth is available in the free version as it relies on Apache2 basic authentication only. Adding that configuration directives makes the login form from MT disappear, but it doesn't like the authenticated user apparently....

    Ref: http://www.movabletype.org/documentation/developer/mtauth.html

    • You may want to bring this to the attention of MTOS-dev (http://www.movabletype.org/opensource/mailing-lists.html ) in the event that it is outdated or incomplete documentation.

  • default userpic

    Just opened a bug report....

    Ref: http://bugs.movabletype.org/default.asp?100341

  • default userpic

    The bug tracking system isn't as important as in other OS projects apparently... No assignment or comments so far...

  • default userpic

    It doesn't state "ExternalUserManagement is MT-Enterprise only.", I can see it has a "enterprise" tag, but that document is from 2007.

    Well, that parameter is only to autocreate the users if they are authenticated by other methods. Let's assume I comment it out, I already created my user in MT before attempting external auth.

    I downloaded the free version and from the code I can see the BasicAuth module is included.

    lib/MT/Auth/
    BasicAuth.pm
    LiveJournal.pm
    MT.pm
    OpenID.pm
    TypeKey.pm
    Vox.pm

  • Hi

    I just took a look in Ciro's problem and i found the problem.
    when you install MT or MTOS, you create an admin user.
    in my case i called it mixel.

    after install, and set up mt ot use the BasicAuth, and log in as mixel via http basic auth, mt toldme exaclty what Ciro saids.

    A little view in the mt_author table give as the reason, we have 2 users called mixel, the first is the created by mt on the instalation with a id 1, and the other, is the created for the BasicAuth.

    What you can do is simply change the author_auth_type from the first from MT to BasicAuth, and delete the second user.

    After the change you can relogin into mt and now you are the full admin of mt.

    I talked with ciro last night and this solved his problem.
    Kind regards

    • Was there no way to assign the privileges on your original user to the second user from within the CMS?

      • default userpic

        Nope, as the regular login form disappears when Apache2 authentication was in place.

        So basically, the current workaround for Apache authentication involves setting author_auth_type='BasicAuth' (direct database edit) for the first admin user after setting up the authentication.

        Also apparently found a bug, when external authentication is used, you can't submit changes to fields "Public name" and "e-mail" as all the password related fields disappear and the form still thinks "Password Hint" is mandatory

  • Nope, as the regular login form disappears when Apache2 authentication was in place.

    That still doesn't address the issue. The feature is functionally broken in its current state because you couldn't assign Movable Type privileges to the second user when you switched the authentication mechanism. What this means is that you can authenticate a user, but not authorize a user, in this package, and that's a problem because authentication is only the first step.

    • Well there is a workaround, if you really want to give to the second user the full admin privileges, so just comment out the BasicAuth, login as normal admin, give all the privileges to the other user and move back to BasicAuth.

      Not perfect but it works.

      • It is a "good workaround," but I think it shows a critical lack of functionality here.

        • Yes i agree.

          What about if the admin could change the way the users login?

          For example you can just intall your mt, setup all your blogs, maybe some users, then change the your own way to login to BasicAuth. Then you can setup everything to use BasicAuth and you are done.

          When you need to come back for some reason to normal login you can do it whit a simple change in your user. So no dangerous changes in the database or workarounds.

          • The simplest approach would be to make it so that when you login as a BasicAuth user, it creates a new mt_author entry for that user, and then in the Manage Users area under system view, you can assign privileges to that user.

            • mmm well but this is exactly the way that mt works with BasicAuth.

              when you login for first time into mt via BasicAuth, mt creates an entry into mt_author, but with no privileges.

              As system administrator you can give any privilege to that user.

              Basically the main problem is for the first user, the full adminstrator, that can't sing using BasicAuth.

              Kind Regards

              Pd sorry for typos in previous comments.

  • default userpic

    thanks

  • perfect forum site, thanks.

  • Well done! Thank you very much for professional templates and community edition

  • the Manage Users area under system view, you can assign privileges to that user.

  • Thank you very much :)

  • Mostly users don't understand the MY. So, MY is the abbreviation of Movable Type. Movable Type has several notable features, such as the ability to host multiple weblogs and standalone content pages, manage files, user roles, templates, tags, categories, and trackback links.

    The application supports static page generation (in which files for each page are updated whenever the content of the site is changed), dynamic page generation (in which pages are composited from the underlying data as the browser requests them), or a combination of the two techniques.

    Movable Type optionally supports LDAP for user and group management and automatic blog provisioning.

    Thanks
    _________
    Michelle

  • It is good to see some detailed information on this topic which is very rarely discussed on the internet. Thanks for sharing.

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1773 6162

Last Topic: Excluding categories from blog by kholechek on Feb 9, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1429 5077

Last Topic: What apocalypse hit this community in the middle of 2011? by 75th on Feb 10, 2012

695 2910

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 565

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012