Le Thursday 10 July 2008 00:30:18 Samuel Mimram, vous avez écrit :
> Yop,

        Hey !

> [EMAIL PROTECTED] wrote:
> > +        "auth",Lang.fun_t
> > [false,"",Lang.string_t;false,"",Lang.string_t] +                        
> >            Lang.bool_t,
> > +        Some (Lang.bool false), (* Humm soo hacky ! *)
> > +        Some "Authentification function. Override any other method if
> > used. \ +           <code>f(login,password)</code> returns
> > <code>true</code> \ +           if the user should be granted access for
> > this login. \ +           Disabled by default.";
>
> Why don't you simply use (fun (l,p) -> true) as default value instead of
> this horrible hack? ;)

Yes indeed, though it should be {false} I guess.

The problem is that I want to distinguish when the auth function is passed.
If not, then authentification passed as user and password parameters (or by 
default harbor related settings) will always be the fallback when 
authentification from the function has failed.

So, I tried to avoid that. I agree it's not that clean..

Of course, the cleanest way would be to be also able to specify the priority 
in the parameters. I'll go for that !

Romain



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl

Répondre à