Next blog I will show you how can use user and group tables as a provider in WLS.
First before we the ADF Security wizard we first need to configure WebLogic. I will using the internal WLS server of JDeveloper 11G. Start the instance and go to http://localhost:7101/console/ Go to the security realms. Default is your realm 'myrealm' and not jazn.com.
Go to your security provider and change the Control flag from optional to sufficient. Then this provider is used in the authentication process
Change the default authenticator from required to sufficient else the provider will never be used.
Now we can run the ADF Security wizard in JDeveloper 11g
Just use a authentication type
Now choose LDAP
Just fill in some values, it does not matter. ADF wil use the WebLogic LDAP provider
And we are finished with the wizard.
Change the weblogic.xml where we will map valid-users to users (Users is a role in WLS )
<?xml version = '1.0' encoding = 'windows-1252'?>
<weblogic-web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app.xsd" xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app">
Now we have tto change the jazn-data.xml where we will add the realm and add the roles.
These roles will be used in the page authorization.
We need to use myrealm as realm and not jazn.com. Create the valid-users role
Create a valid-users application role
Now open the pagedef of the JSF page and add a security policy to this page or you can open the jazn-data.xml and select the page.
Select the page and select a role where we add actions to this role.
Now run your application and authenticate against the WebLogic provider
Here is the final result.
Probably this will change in other 11G versions where the ADF Security wizard will configure WLS.