This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » User management plugins » sfguard check_password_callable not callable [solved]
sfguard check_password_callable not callable [solved] [message #56260] Tue, 15 July 2008 21:28
daum  is currently offline daum
Messages: 84
Registered: April 2007
It seems my auth function for this isn't being callable. Right now I have tried several different ways of formatting this but still no luck. In my app.yml I have:
    check_password_callable: [myLDAPauth, ldap_login]

Then for myLDAPauth.class.php I have tried a bunch:
public static function ldap_login($user, $pw) {
         return true;

And i tried to make it a class
class myLDAPauth{
public static function ldap_login($user, $pw) {
         return true;

No matter what I get the following error when it goes to call the function:

Warning: call_user_func_array() []: First argument is expected to be a valid callback, 'myLDAPauth::ldap_login' was given in

What am I missing?

Solution:Do the class declaration example above, the problem was the file had some hidden characters that was causing it to not be readable .

[Updated on: Wed, 16 July 2008 14:44]

Previous Topic:sfGuard does not force user to authenticate
Next Topic:sfGuard admin signin
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software