Mittwoch, 4. April 2012

wordpress cas and authenticated ldap

PLUGIN: http://wordpress.org/extend/plugins/wpcas-w-ldap/

to use this plugin with authenticated ldap servers:

file: "wpcas-w-ldap.php"

# OLD:
# $bind = @ldap_bind($ds);
#           gugler2012040410000186
# NEW:
            $bind = @ldap_bind($ds, $wpcasldap_use_options['AuthLDAPBindDN'], $wpcasldap_use_options['AuthLDAPBindPassword']);


config file: "wpcasldap-conf.php"


$wpcasldap_options = array (
    ...
    'AuthLDAPBindDN' => "cn=binduser,ou=unit,dc=domain,dc=tld",

    'AuthLDAPBindPassword' => "password",
    ...


Kommentar veröffentlichen