unifyingUserDataProvider

Explanation:

The unifyingUserDataProvider can be used to merge two or more other user data providers into one.

The unifyingUserDataProvider will forward a login attempt (username and password) to each inner user data provider in the order they are specified. After one of the inner user data providers returned a successful login (and returned the user's attributes), the procedure terminates. If no inner user data provider could verify the user, the login attempt fails.



Can be used in:

oauth2authserver, basicAuthentication, login, xenAuthentication and bean

Syntax

<unifyingUserDataProvider>
  [<staticUserDataProvider ... />*]
  [<ldapUserDataProvider ... />*]
</unifyingUserDataProvider>

Sample

<unifyingUserDataProvider>
  <staticUserDataProvider>
	<user username="thomas"
		password="secret"
		sms="+1-234-567-8900" />
  </staticUserDataProvider>
  <ldapUserDataProvider
	url="ldap://192.168.2.100"
	base="dc=predic8,dc=de"
	binddn="cn=Manager,dc=predic8,dc=de"
	bindpw="secret"
	searchPattern="(cn=%LOGIN%)"
	searchScope="subtree"
	<map>
	   <attribute from="telephoneNumber" to="sms" />
	</map>
  </ldapUserDataProvider>
</unifyingUserDataProvider>