I wish to know which DB tables are controlling user's permission ?
is that acl_actions ?
I wish to know which DB tables are controlling user's permission ?
is that acl_actions ?
Hi
yes ,
acl_actions,acl_Roles,acl_roles_actions,acl_roles_ users
Thanks
BSK
Thanks for the reply bands....
but the ID column are encrypted in some way...
do you mind telling me how's the encryption done ?
The IDs aren't encrypted, they're just long and alphanumeric.
How do we know how they change the actual alphabetic become those number ?
and account password is using hash ? or encryption ?
sorry.. a newbie here..
You can look at the method create_guid() in include/utils.php to see how the IDs are generated.
The user password (user_hash column) is stored as an MD5 hash.
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
The below is the code used for id generation. As told in the previous posts, there is no encrpytion involved in this.
Code:function create_guid() { $microTime = microtime(); list($a_dec, $a_sec) = explode(" ", $microTime); $dec_hex = sprintf("%x", $a_dec* 1000000); $sec_hex = sprintf("%x", $a_sec); ensure_length($dec_hex, 5); ensure_length($sec_hex, 6); $guid = ""; $guid .= $dec_hex; $guid .= create_guid_section(3); $guid .= '-'; $guid .= create_guid_section(4); $guid .= '-'; $guid .= create_guid_section(4); $guid .= '-'; $guid .= create_guid_section(4); $guid .= '-'; $guid .= $sec_hex; $guid .= create_guid_section(6); return $guid; } function create_guid_section($characters) { $return = ""; for($i=0; $i<$characters; $i++) { $return .= sprintf("%x", mt_rand(0,15)); } return $return; } function ensure_length(&$string, $length) { $strlen = strlen($string); if($strlen < $length) { $string = str_pad($string,$length,"0"); } else if($strlen > $length) { $string = substr($string, 0, $length); } }
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks