I'm not 100% sure if i get your requirements strait but i've the following hints:
If you want the same authentication credentials you may want the same authentication backend. You can write your own
Authentication plugin. Maybe you can use one of the
existent backends.