How do I integrate those logins from our database into our wordpress site?

I’d like to make some of my pages for members only and access only via login and password. Our members already have their passwords which are houses in a separate system/database. How do I integrate those logins from our database into our wordpress site?