Hi Milan,
AFAIK *EMM 1.1.0 *has the JDBC userstore as the default user store. In that
case, you need to add the following property to user-mgt.xml file as well.
<Property name="UsernameWithEmailJavaScriptRegEx">[a-zA-Z0-9@
._-|//]{3,30}$</Property>
Please follow [1] and check whether it solves your $subject.
[1] http://xacmlinfo.org/2014/10/07/email-username-with-identity-server/
Thanks,
Kasun
On Fri, Nov 27, 2015 at 5:01 PM, Milan Perera <[email protected]> wrote:
> Hi Godwin,
>
> In the doc [1], it was just put as *mail*, not *email*.
> Anyway thanks for the info. I'll try this.
>
> [1] https://docs.wso2.com/display/IS500/Email+Authentication
>
> Regards,
>
> On Fri, Nov 27, 2015 at 4:53 PM, Godwin Shrimal <[email protected]> wrote:
>
>> Hi Milan,
>>
>> You have to set email for UserNameSearchFilter and UserNameAttribute
>> properties in user-mgt.xml as follows.
>>
>> <Property
>> name="UserNameSearchFilter">(&(objectClass=person)(email=?))</Property>
>> <Property name="UserNameAttribute">email</Property>
>>
>>
>> Thanks
>> Godwin
>>
>>
>>
>> On Fri, Nov 27, 2015 at 4:31 PM, Milan Perera <[email protected]> wrote:
>>
>>> Hi Godwin,
>>>
>>> I have attached the carbon.xml and user-mgt.xml with this.
>>> One other thing is im using embedded LDAP of IS as a secondary user
>>> store. So im attaching that config file as well
>>>
>>> Thanks,
>>>
>>> On Fri, Nov 27, 2015 at 3:22 PM, Godwin Shrimal <[email protected]> wrote:
>>>
>>>> Hi Milan,
>>>>
>>>> No, you don't need to add carbon.super for super tenant users, Did you
>>>> configure carbon.xml and user-mgt.xml according to the [1], can you share
>>>> those files ?
>>>>
>>>> [1] https://docs.wso2.com/display/IS500/Email+Authentication
>>>>
>>>>
>>>> Thanks
>>>> Godwin
>>>>
>>>> On Fri, Nov 27, 2015 at 3:04 PM, Milan Perera <[email protected]> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> In order to do $subject in *EMM 1.1.0*, I have followed [1].
>>>>> But still I was not able to login.
>>>>>
>>>>> I crated an user - *[email protected] <[email protected]>*
>>>>>
>>>>> When I was going to log in using that username, I couldn't do that
>>>>> since it threw an error saying invalid tenant domain.
>>>>> Then I tried *[email protected]@carbon.super *as the username and it
>>>>> worked.
>>>>>
>>>>> Is this an acceptable behaviour?
>>>>>
>>>>> [1] https://docs.wso2.com/display/IS500/Email+Authentication
>>>>>
>>>>> --
>>>>> *Milan Perera *| Software Engineer
>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>>>>> Email: [email protected] <[email protected]> | Web: www.wso2.com
>>>>> <http://lk.linkedin.com/in/milanharinduperera>
>>>>>
>>>>> _______________________________________________
>>>>> Dev mailing list
>>>>> [email protected]
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Godwin Amila Shrimal*
>>>> Senior Software Engineer
>>>> WSO2 Inc.; http://wso2.com
>>>> lean.enterprise.middleware
>>>>
>>>> mobile: *+94772264165*
>>>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>>>> twitter: https://twitter.com/godwinamila
>>>>
>>>
>>>
>>>
>>> --
>>> *Milan Perera *| Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
>>> Email: [email protected] <[email protected]> | Web: www.wso2.com
>>> <http://lk.linkedin.com/in/milanharinduperera>
>>>
>>
>>
>>
>> --
>> *Godwin Amila Shrimal*
>> Senior Software Engineer
>> WSO2 Inc.; http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: *+94772264165*
>> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>*
>> twitter: https://twitter.com/godwinamila
>>
>
>
>
> --
> *Milan Perera *| Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 77 309 7088 | Work: +94 11 214 5345
> Email: [email protected] <[email protected]> | Web: www.wso2.com
> <http://lk.linkedin.com/in/milanharinduperera>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
Kasun Bandara
*Software Engineer*
Mobile : +94 (0) 718 338 360
<%2B94%20%280%29%20773%20451194>
[email protected] <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev