[horde] SMBAuth question

Peter de Bruine pdebruine at dialoc-idtechnology.nl
Wed Jul 9 05:23:05 PDT 2003


The problem wasn't too hard :)

The old code was this:

 /* Authenticate */
        $rval = validate($userID,
                         $credentials['password'],
                         $this->_params['pdc_hostspec'],
                         $this->_params['bdc_hostspec'],
                         $this->_params['domain']);

I changed it to:

/* Authenticate */
        $rval = validate($this->_params['pdc_hostspec'],
                         $this->_params['domain'],
                         "",
                         $userID,
                         $credentials['password']);

And it works! But i have another problem. When i log in i first get an "Page not found" error and when i refresh i get the normal horde page. How can i fix this?? And how can i submit a patch for the smbauth code?

Regards
Peter

-----Oorspronkelijk bericht-----
Van: horde-bounces at lists.horde.org
[mailto:horde-bounces at lists.horde.org]Namens Jan Schneider
Verzonden: woensdag 9 juli 2003 12:17
Aan: horde at lists.horde.org
Onderwerp: RE: [horde] SMBAuth question


Zitat von Peter de Bruine <pdebruine at dialoc-idtechnology.nl>:

> Hi All,
>
> to come back to this problem, if have done this:
>
> >It looks like the extension has changed a bit since the driver was
> written.
> >Try to replace "smbauth_validate" with "validate" and "smbauth_err2str"
> with
> >"err2str" in lib/Auth/smb.php.
> >And please tell us if this works, so that we can update the driver.
>
> And it works, sort of :) If i login using a username and password it
> says:
>
> Username and/or password not correct.
>
> And it gives these errors:
>
> Warning: Wrong parameter count for err2str() in
> /usr/local/apache/htdocs/horde/lib/Auth/smb.php on line 116
>
> Warning: Cannot modify header information - headers already sent by
> (output started at /usr/local/apache/htdocs/horde/lib/Auth/smb.php:116)
> in /usr/local/apache/htdocs/horde/templates/common-header.inc on line 3
>
> Warning: Cannot modify header information - headers already sent by
> (output started at /usr/local/apache/htdocs/horde/lib/Auth/smb.php:116)
> in /usr/local/apache/htdocs/horde/templates/common-header.inc on line
>
> So i think this needs some updating. Can you guys help me out with this??

As none of the current developers is using this, you are probably on your
own. But the driver code is so short and easy to read that you should be
able to fix this problem on your own. Check the smbauth pages for details
on the php extension and don't forget to submit a patch, once you've got it
working.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft

-- 
Horde mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: horde-unsubscribe at lists.horde.org




More information about the horde mailing list