Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterDescription
UserNameAttribute

For this you need to set mail attribute of the user.

Code Block
languagehtml/xml
<Property name="UserNameAttribute">mail</Property>
UserNameSearchFilter

For this you need to use the mail attribute of the user instead of cn or uid.

Code Block
languagehtml/xml
<property<Property name="UserNameSearchFilter">(&amp;(objectClass=identityPerson)(mail=?))</property>Property>
UserNameListFilter

For this you need to use the mail attribute of the user.

Code Block
languagehtml/xml
<property<Property name="UserNameListFilter">(&amp;(objectClass=identityPerson)(mail=*))</property>Property>
UsernameJavaRegEx

Use the following email regex.

Code Block
languagehtml/xml
<Property name="UsernameJavaRegEx">^[_A-Za-z0-9-\+]+(\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9]+)*(\.[A-Za-z]{2,})$</Property>
UserDNPattern

This parameter is used to speedup the LDAP search operations. You can comment out this config.

Code Block
languagehtml/xml
<!--Property name="UserDNPattern">cn={0},ou=Users,dc=wso2,dc=com</Property-->
Realm configurations

The AdminUser username should use the email attribute of the admin user.

Code Block
languagehtml/xml
<AdminUser>
         <UserName>admin@wso2.com</UserName>
         <Password>admin</Password>
</AdminUser>