Procedure to validate Login attempts of users

I am working on a procedure to validate Login attempts of our users since the current application we are using requires Active Directory to confirm the user Login and my machine is currently not in the AD server but in a different domain.
I am thinking of creating a CLR procedure on the SQL server found in the same domain. From the application implementation of a procedure from the SQL server which will call the procedure that will contain the CLR function.
It would then pass the user credentials of a particular user trying to Login and check if they are valid. I have already tried this procedure but I am having trouble with the installation of the CLR code.
I am now seeking for your intervention in this matter.
