How Registry Interfaces With Active Directory

From FMR Knowledge Base
Revision as of 06:40, 31 May 2022 by Plazarou (talk | contribs)
Jump to navigation Jump to search

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