http://www.perlmonks.org?node_id=1052193


in reply to Perl with Active Directory

The "Login Failed" is a SQL authentication error.

Since your infosec will not allow SQL based authentication, the USER that is invoking your script will need to have priviledges to the database you are attempting to access.

Please discover what user id is being used to call your script, then check that the SQL server is set for "NT authentication", and that user has been allowed access. See http://msdn.microsoft.com/en-us/library/ms188670.aspx

You can also examine the SQL ERRORLOG file at %programfiles%\Microsoft SQL Server\INSTANCE\mssql\log\ERRORLOG for more details. (See this msdn blog post)

             My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.