Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected XML syntax errors in first 2 properties in table

...

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 name="UserNameSearchFilter"<>(&(objectClass=identityPerson)(mail=?))</property>
UserNameListFilter

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

Code Block
languagehtml/xml
<property name="UserNameListFilter"<>(&(objectClass=identityPerson)(mail=*))</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>