HI Francesco, our user database has account ids expressed in digits and the
idea is having the same id in syncope, but it seems that digits are not
accepted since an expression like [0-9]+ throws
19:45:50.464 ERROR
org.apache.syncope.core.sync.impl.AbstractSyncopeResultHandler - Could not
create USER 69
org.apache.syncope.core.persistence.validation.entity.InvalidEntityException:
SyncopeUser [Standard, InvalidUsername]
at
org.apache.syncope.core.persistence.validation.entity.EntityValidationListener.validate(EntityValidationListener.java:49)
~[EntityValidationListener.class:?]
at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
~[?:?]
Thanks Manfredo
2014-11-04 3:29 GMT-03:00 Francesco Chicchiriccò <[email protected]>:
> On 03/11/2014 23:03, Manfredo Hopp wrote:
>
>> Hello, I want to create accounts ids composed only by digits, and get
>> InvaledUserName as result of
>> EntityValidationListener.validate.
>>
>> My guess is that validation is controlled by AccountPolicies where I can
>> see an entry for regular expressions, which is not documented,
>>
>> Entering a regular expression doesnt change anithing, so waht is that
>> item for?
>> And where can I control name ids?
>>
>
> Hi,
> you are right, the pattern option for account policies - introduced with
> 1.2.0 - is not yet reported at [1].
>
> When you define a policy (account, password, sync) you also need to
> configure for which users such policy is going to be applied: if created as
> GLOBAL policy it will be applied to all users, otherwise you will need to
> associate it to a role or a resource in order to make it effective (for
> users owning that role or assigned to that resource, clearly).
>
> Additional information: when not specified, the pattern for user names is
> "[a-zA-Z0-9-_@. ]+".
>
> Could you please provide more details of what you are doing?
>
> Regards.
>
> [1] https://cwiki.apache.org/confluence/display/SYNCOPE/Policies#Policies-
> AccountPolicies
>
> --
> Francesco Chicchiriccò
>
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
>
> Involved at The Apache Software Foundation:
> member, Syncope PMC chair, Cocoon PMC, Olingo PMC
> http://people.apache.org/~ilgrosso/
>
>
>