I'm working with Drupal 4.6.5 and trying to develop a custom login module. I have a separate database (MS SQL, ugh) with 70000+ members who need access to a members-only section of the site. I'd like to do the following:
* Have members sign on with their old username and password (form our other, much more poorly-executed, CMS)
* Have them not have to use @oldserver.com in the username
* Have a Drupal id created for them (again, without the @oldserver.com tagged on)
* Pull one other piece of data from the old server (a Membership Number that we use in MS SQL) and populate some field (either the "init" field in the users table (unless this is a really bad idea) or a custom profile field -- doesn't matter) so I have an easy way to refer to the member when performing SQL queries against the MS server.
I've managed to munge together something that sort of works as long as I don't try to strip the server information form the username -- at that point things fall apart. Of corse, I'm new enough with Drupal that I might not be doing something correctly.
So, are there other modules that do similar things that I can use as a reference? Has anyone created any custome code to do one or more of the above things? Or do you just have any ideas how I might go about it?
I've done some pretty lengthy searching of this site and the drupaldocs site. I've got the basics in place, but I really want to have this be seamless for our users (we went through a site upgrade last year before was hired on and the software package the previous folks bought just doesn't cut it and needs to be dumped, and I'd prefer the users not have to go through another "site revision" fiasco).