|
Post by Jason on Oct 25, 2016 16:15:00 GMT
By default, the user name text box in an UserAuth action uses the following regular expression:
[^\"/\\\\\\[\\]:;\\|=,\\+\\*\\?<>]{3,15}
This regular expression matches a string of between 3 and 15 (inclusive) characters but does not allow the following characters:
" / \ [ ] : ; | = , + * ? < >
All other characters are allowed by this regular expression.
To customize this, you need to specify your own custom regular expression which can be done with the following snippet:
<Action Type="UserAuth" Title="User Authentication" Domain="lab100.configmgrftw.com" Group="Test" GetGroups="False" MaxRetryCount="5"> <Field Name="Username" RegEx="[\w\-_.]+"/> </Action>
The regular expression in this snippet matches against a string of any length that contains only word characters (a-z and A-Z), dashed (-), underscores (_), and periods (.).
|
|
|
Post by goalie8174 on Nov 14, 2016 22:48:24 GMT
Is there a way to allow for more than 15 characters?
We are moving to logging in with "First.Last@Companyname.org" formatting..
I've tried
<Field Name="Username" RegEX=".{5,30}" />
and various iterations but can't seem to figure out the right one.. It authenticates a username that is less than 15 characters just fine.
Thanks!
|
|
|
Post by Jason on Nov 15, 2016 17:16:43 GMT
Howdy. Assuming the above is a direct copy and paste, then your issue is capitalization -- XML is case-sensitive when it comes to element and attribute names. You have RegEX (capital X) when it should be RegEx. Thus, UI++ is using the default regular expression which limits the length to 15 characters.
Please try that and let me know how it goes.
|
|
|
Post by goalie8174 on Nov 15, 2016 18:35:26 GMT
Thanks for the reply..
I tried
<Field Name="Username" RegEx=".{3,25}" />
and got the same result.. On the 16th character it turns red and won't accept it.
I copied out another line that used the RegEx= string to see if that would work and no change...
<Field Name="Username" RegEx="[^\"/\\\[\]:;\|=,\+\*\?><]{3,25}" />
Thanks and any help is appreciated.
|
|
|
Post by goalie8174 on Nov 15, 2016 18:42:02 GMT
Ug! Sometimes it's a wonder I remember to eat.. Found the issue... I had a closing mark /> at the end of the <Action Type="UserAuth" line, once that was moved to after the <Field Name="Username" RegEx=".{3,35}" /> it worked properly...
Thanks for the hint though!
|
|
|
Post by michaelcourville on Jul 19, 2018 15:06:19 GMT
I can't get this to work. It doesn't make sense that its limited to 15 characters by default - it should match AD requirements.
I've done everything the poster above me has done and no matter what I do, when I add <Field Name="Username" RegEx=".{3,35}" /> to the code and adjust the preceding line to not close the action, the EXE refuses to launch.
|
|
|
Post by michaelcourville on Jul 19, 2018 15:25:43 GMT
Finally figured it out, I think. Had to add </Action> below the <Field Name... line.
Working Code:
<Action Type="UserAuth" Title="User Authentication" Domain="contoso.com" MaxRetryCount="5" > <Field Name='Username' RegEx=".{3,20}" /> </Action>
|
|
|
Post by Jason on Jul 24, 2018 13:03:31 GMT
XML formatting can be tricky or at least tricky to spot errors so using a dedicated XML editor can be quite helpful.
|
|
|
Post by Kennethkix on Jan 15, 2022 21:11:22 GMT
Добрый день! Я бы хотел разместить рекламу на Вашем форуме,в частности баннер. Предоставляете ли Вы данную услугу? Прошу написать мне на мейл,если Вы заинтересованы. Моя тематика-продажа купонов. форуме Ваш по количеству посещений меня устраивает. Спасибо Жду ответ Мой майл jewelry@sergeeff.website
|
|
|
Post by Kennethkix on Jan 15, 2022 21:12:35 GMT
Добрый день! Я бы хотел разместить рекламу на Вашем форуме,в частности баннер. Предоставляете ли Вы данную услугу? Прошу написать мне на мейл,если Вы заинтересованы. Моя тематика-продажа купонов. форуме Ваш по количеству посещений меня устраивает. Спасибо Жду ответ Мой майл jewelry@sergeeff.website
|
|
|
Post by Kennethkix on Jan 16, 2022 2:59:58 GMT
Добрый день! Я бы хотел разместить рекламу на Вашем форуме,в частности баннер. Предоставляете ли Вы данную услугу? Прошу написать мне на мейл,если Вы заинтересованы. Моя тематика-продажа купонов. форуме Ваш по количеству посещений меня устраивает. Спасибо Жду ответ Мой майл jewelry@sergeeff.website
|
|
|
Post by Kennethkix on Jan 16, 2022 8:47:17 GMT
Добрый день! Я бы хотел разместить рекламу на Вашем форуме,в частности баннер. Предоставляете ли Вы данную услугу? Прошу написать мне на мейл,если Вы заинтересованы. Моя тематика-продажа купонов. форуме Ваш по количеству посещений меня устраивает. Спасибо Жду ответ Мой майл jewelry@sergeeff.website
|
|
|
Post by Kennethkix on Jan 16, 2022 8:48:42 GMT
Добрый день! Я бы хотел разместить рекламу на Вашем форуме,в частности баннер. Предоставляете ли Вы данную услугу? Прошу написать мне на мейл,если Вы заинтересованы. Моя тематика-продажа купонов. форуме Ваш по количеству посещений меня устраивает. Спасибо Жду ответ Мой майл jewelry@sergeeff.website
|
|
|
Post by loveawake.ru on Mar 24, 2022 12:41:55 GMT
Welcome to the world of adult Dating loveawake.ru
|
|
|
Post by loveawake.ru on Mar 29, 2022 15:56:11 GMT
Welcome to the world of adult Dating loveawake.ru
|
|