I've already stumble upon littlehar tutorials.
Regarding the password, I've managed that also. Authentication is working
fine now. used the Security::setHash("md5"); entry on the app controller.
and tha table has a confortable varchar(100) so the lenght of the string
will be no problem.
Ricardo
On Tue, Nov 25, 2008 at 1:48 PM, Liebermann, Anja Carolin <
[EMAIL PROTECTED]> wrote:
> Hi Zen,
>
> I had the same trouble like you had. So I pass on Dardos good advice: Start
> with a simple testapplication following this tutorial:
> http://book.cakephp.org/view/641/Simple-Acl-controlled-Application
>
> and do a bit reading here:
> http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful-tutorial-for-using-cakephps-auth-component/
>
> When you have the example application working transfer parts of it to your
> application. And don't forget: by default Auth uses sha1 and not md5 so you
> might have to change your database structure as well to accomodate the
> longer Password strings.
>
> Hope this helps and good luck!
>
> Anja
>
>
> ------------------------------
> *Von:* [email protected] [mailto:[EMAIL PROTECTED] *Im
> Auftrag von *Ricardo Valfreixo
> *Gesendet:* Dienstag, 25. November 2008 14:40
> *An:* [email protected]
> *Betreff:* "Yet another auth/ACL" or "I'm too dumb to undestand cakephp
> acl"
>
> I simpy can't understant auth/ACL system. I can manage to get my user
> authenticated (woohooo) but I can't seem to setup properly the ACL system.
>
> I want to group up users. That way I can give permissions to a group
> creating a profile system. I currently have 5 diferent roles:
>
>
> - sysadmin - this can see everything. it's a group i'll reserve to
> configure the app in runtime
> - admins - business layer. company workers
> - associates - affiliate users. this is a broker system so other
> companies can put their offer on the platform.
> - users - this will be registered people from the general public
> - guests - all unregistered users (don't know if this is a profile or
> not)
>
> sysadmin, admins and associates will have a dedicated backoffice. users
> will have a profile page and guests will only be allowed at the public pages
> (articles and basic search)
>
> I've read a lot of articles in blogs and in documentention but can't seem
> to find a working solution (or at least I'm not smart enough to get it to
> work)
>
> So what I'm doing is:
>
>
> 1. Got a users table. Autentication's already working. Salt is empty
> and I'm md5'ing the password at appcontroler and user model level.
> 2. got a groups table that joins with the users table using hasmany and
> belongsto binding at model level.
> 3. I guess I need some table that lists all the actions in the app
> right? I'm really puzzled with this.
> 4. After that I would need a table that joins permissions and groups
> using correspondent id's right?
> 5. I'll need something in the controller to tell it to check the acl
> table and see if the logged in user is authorized (or not) to visit that
> specific controller/action.
> 6. also at view level I'll need this information to build dynamic
> menus. Don't want to show what users ar not allowed to see. Or should I do
> this at controller level and send a list of available actions to the view
> via set?
> 7. also need the user info at the view to show name and other table
> info.
>
> I know this is the million dollar issue. I've seen thousands of articles
> talking about this on the internet. And yes, I've read the articles and the
> documentation. I really need help on this please. I'm going in circles with
> problem for the past 4 days. My project is slipping and I'm already facing a
> time problem.
>
> Thank you so much in advance for any help you can give me.
>
>
> Ricardo
>
>
>
> --
> *Ricardo 'Zen' Valfreixo*
> Freelance Web Developer
>
>
> *Contacts:*
> E-Mail, Gtalk, MSN: [EMAIL PROTECTED]
> *Web:*
> http://www.minimalisticstudios.com
> http://umcigarritoparadescontrair.blogspot.com
> *Twitter:*
> http://www.twitter.com/minimalistic
>
> >
>
--
<b>Ricardo 'Zen' Valfreixo</b>
Freelance Web Developer
Contacte-me:
E-Mail, Gtalk, MSN: [EMAIL PROTECTED]
Web:
http://www.minimalisticstudios.com
http://umcigarritoparadescontrair.blogspot.com
Twitter:
http://www.twitter.com/minimalistic
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---