Auth allows you to assign an object that will do the authentication and authorization.
This would probably be a Model you have that connects to NIS. You only have to implement a method called isAuthorized() and one called hashPasswords() and do the authorization and authentication there. See the API for AuthComponent for the details... there is a lot of docs for these things in the source. I think there are some tutorials around the web about using LDAP for this. This is pretty similar to NIS and should give you something to go on. /Martin On Mar 19, 9:58 pm, iFeghali <[email protected]> wrote: > Hello There, > > I want to authenticate my users against a database table or a NIS > domain, depending on a flag set in the user record. I have noticed > that Auth already did the form processing in the time the login() > method of users controller is called so i guess its not the right > place to digg into. So what is the right way to get this job done ? Do > I need a new component that extends Auth and rewrite startup, login > etc ? Isn't there a simple way to intersect the login processing in > the users controller and tell auth whether the credentials are ok so > it can keep doing its job ? > > Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
