Hello,
I'm having some trouble getting the CAS module to work. First, the phpCAS package had to be altered to fit our attribute naming convention. Second, line 50 of the cas.php which calls variable_get() was changed to include a second required parameter set to localhost. (This is mentioned in the module's bug report). Now, I think I'm really close, but here is my current problem:
On first login, the Cas module seems to work fine. The user is created and logged in. The correct user name appears. However, on logging in for a second time, the following error message is displayed;
* user warning: Duplicate entry '***' for key 2 query: INSERT INTO users (name, pass, init, status, mail, created, uid) VALUES ('***', '***', '***', 1, '***', 1158928882, 17) in /home/drupal/www/includes/database.mysql.inc on line 120.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/drupal/www/modules/user.module on line 351.
* warning: implode() [function.implode]: Bad arguments. in /home/drupal/www/modules/user.module on line 351.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 query: SELECT DISTINCT(p.perm) FROM role r INNER JOIN permission p ON p.rid = r.rid WHERE r.rid IN () in /home/drupal/www/includes/database.mysql.inc on line 120.