When the module is first turned on and an existing user account has the same name as the authenticated account, there's a SQL error:
user warning: Duplicate entry 'username' for key 2 query: INSERT INTO users (name, pass, init, status, uid, created, access) VALUES ('username', '6a11535ba4971a378391776a9db629d3', 'username', 1, 34, 1216419272, 1216419272) in /usr/share/drupal5/includes/database.mysqli.inc on line 151.
Which comes about from user_save() being called with the same username as an existing user. For some reason, an entry is added into the authmap with a uid of 0.
The attached patch looks to see if a user exists in the system already before it creates a new account. If it exists, it adds the appropriate authmap entry for that user instead of creating a new user.
Comments
Comment #1
xxvelcrar commentedComment #2
gaards commentedClosed because Drupal 5 is not supported. If the issue verifiably applies to later versions, please reopen with details and update the version.