title: Swift login functionality using Active Directory Credentials/authentication
body: <p>I need to create a login mechanism in an IOS App.
  The app is created using the Swift language. 
  The app needs to call a Windows Server, with the credentials provided by the user. And afterwards hold the "logged in" state until user is removed from active directory or the user logs out manually.</p>
  
  <p>I have been looking through documentation, but can't seem to find anything on the specific topic.
  How can I move on to solve the above problem?
  I did find some existing code based on Objective C, but not sure how to implement this, any guide, tutorial or explanation is welcomed.</p>