The MU forums have moved to WordPress.org

WordPress LDAP CAS (4 posts)

  1. samaka
    Member
    Posted 17 years ago #

    Hi,

    I want to integrate WordPress MU + OpenLDAP + CAS.

    I have used for WordPress MU + OpenLDAP :
    http://mu.wordpress.org/forums/topic.php?id=3980&replies=6
    This was succesful

    For WordPress CAS + OpenLDAP :
    I have used the offcial documentation
    This was succesful

    and for integration CAS + WordPress MU :
    http://www.andrejciho.com/wordpress-mu/wpmu-cas-integration/ for integration CAS + WordPress MU

    But, When I try to connect to URL of my WordPress MU, I have a blank page.

    In checking the apache error log, I found this error :

    [client 192.168.1.15] PHP Fatal error: Cannot redeclare wp_login() (previously declared in /var/www/html/mublog.chabaka.net/wp-content/mu-plugins/ldap_auth.php:115) in /var/www/html/mublog.chabaka.net/wp-content/mu-plugins/pluggable.php on line 21

    Any body had this error? How could I resolve this error?

    Thanks in advance!

  2. samaka
    Member
    Posted 17 years ago #

    Hi,

    Any reply?

    Please Help me !

    Thanks in advance

  3. seanwedig
    Member
    Posted 17 years ago #

    I have not encountered this error, but I have a guess as to what's going on...

    Did you overwrite pluggable.php in the mu-plugins file with the version from the WPMU LDAP Plugin? Since it is trying to override base WPMU Authentication, it needs to redefine the login method (the function wp_login), and it does that by conditionally declaring a custom version of the method. In essence, it's something of a hack to make the code customizable.

    So what does this mean that you may have to do?

    For now, make sure you have the latest version of the WPMU LDAP plugin, and that the version of pluggable.php in mu-plugins/ is the same as what was released with the plugin. If not, try re-installing the plugin per the instructions in the "ldap_auth.txt" file.

    -sean

  4. misterbisson
    Member
    Posted 15 years ago #

    @samaka: I struggled with CAS integration too. Now, I've released the plugin that we're using at my school to do this:

    http://wordpress.org/extend/plugins/wpcas/
    http://maisonbisson.com/projects/wpcas/

    It uses CAS to authenticate users in both regular WordPress and WordPress MU versions 2.5 through current. If the CAS user doesn't have an account in WordPress, it can call a function you define to provision a WP account for them or do other things.

About this Topic

  • Started 17 years ago by samaka
  • Latest reply from misterbisson