Difference between revisions of "How Registry Interfaces With Active Directory"

From FMR Knowledge Base
Jump to navigation Jump to search
(Created page with "Test")
 
Line 1: Line 1:
Test
+
How Fusion Metadata Registry Interfaces with Active Directory
 +
 
 +
Once the Active Directory connection to the Registry has been set up
 +
 
 +
- Attempt to access:
 +
 
 +
The Registry recieves an Http Servlet Request (class: HttpServletRequest) from the browser.
 +
From this request object, the username and password are passed into an Authentication token (the class is a Spring UsernamePasswordAuthenticationToken )
 +
 
 +
The Active Directory service is queried to obtain a DirContext object - This is a InitialLdapContext
 +
 
 +
Failure:
 +
With respect to bad credentials a Spring BadCredentialsException is thrown
 +
which is converted into a FusionAuthenticationException which returns a 404 for the response
 +
 
 +
HttpServletResponse
 +
 
 +
Success:
 +
 
 +
The InitialLdapContext object is created.  This is used to search for an object
 +
 
 +
This object is a org.springframework.ldap.core.DirContextAdapter
 +
And contains information about the user, such as the "DN" : CN=SOAP_Adam,OU=users,OU=Registry,OU=fusion,DC=metatech,DC=external

Revision as of 06:40, 31 May 2022

How Fusion Metadata Registry Interfaces with Active Directory

Once the Active Directory connection to the Registry has been set up

- Attempt to access:

The Registry recieves an Http Servlet Request (class: HttpServletRequest) from the browser. From this request object, the username and password are passed into an Authentication token (the class is a Spring UsernamePasswordAuthenticationToken )

The Active Directory service is queried to obtain a DirContext object - This is a InitialLdapContext

Failure: With respect to bad credentials a Spring BadCredentialsException is thrown which is converted into a FusionAuthenticationException which returns a 404 for the response

HttpServletResponse

Success:

The InitialLdapContext object is created. This is used to search for an object

This object is a org.springframework.ldap.core.DirContextAdapter And contains information about the user, such as the "DN" : CN=SOAP_Adam,OU=users,OU=Registry,OU=fusion,DC=metatech,DC=external