1

I want to create two different type of users for example internal and external users. For internal users need to be authenticate against different database. Any suggestions?

  • If I understand your question right, you want some users (Local) access different website than your live website? – Sohail Feb 23 '13 at 19:17
  • I need to authenticate some internal users from different database as well as I have some drupal users also. – Ramesh Babu T B Feb 23 '13 at 19:22
6

Unless you wish to write a custom module with direct access to the second database, with its own login system, the only way this is going to work is with direct manipulation of the drupal database, renaming tables, and using 'Create View ...' to give you access to the information. The amount of work, maintenance problems, and security implications would be horrendous.

If the number of 'internal' users is fairly static, my suggestion would be to use the User Import module, and give them all a role of 'Internal', using the user permissions to control their abilities on the site. Any new Internal users could be added manually.

0

I suggest you redirect each user based on his IP address, to a different domain, so take a look at these modules:

Domain Access

IP to Locale

Update: Prior to your comment, take a look at this doc

  • Thanks for your effort but I need to connect that DB based on some condition then How can I maintain user activity record in drupal. – Ramesh Babu T B Feb 23 '13 at 19:31
  • the question below answers to your comment I guess – Sohail Feb 23 '13 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.