Re: [Dev] User Core API refactoring

2013-07-13 Thread Adrian Mitev
Is it possible to add a "search" like getUserList() but supporting lookup
by multiple claims, not just one as it is now?


On Sat, Jul 13, 2013 at 12:01 PM, Prabath Siriwardena wrote:

> Yes.. we do not expose this out side. Removed..
>
> Thanks & regards,
> -Prabath
>
> On Sat, Jul 13, 2013 at 1:27 PM, Amila Suriarachchi 
> wrote:
> > Why we need
> >
> >  /**
> >  * Get the realm configuration
> >  *
> >  * @return
> >  * @throws UserStoreException
> >  */
> > RealmConfiguration getRealmConfiguration() throws UserStoreException;
> >
> > method in Realm?
> >
> > RealmConfiguration suppose to give internal implementation details of
> Realm.
> > Why other components require that?
> >
> > thanks,
> > Amila.
> >
> >
> > On Sat, Jul 13, 2013 at 12:13 PM, Prabath Siriwardena 
> > wrote:
> >>
> >> Also.. following method too not needed..
> >>
> >> String[] getHybridRoles() throws UserStoreException;
> >>
> >> Thanks & regards,
> >> -Prabath
> >>
> >>
> >> On Sat, Jul 13, 2013 at 12:00 PM, Prabath Siriwardena  >
> >> wrote:
> >>>
> >>> Why do we need Permission in UsetStoreManager API.Planning to remove
> this
> >>> out.. If any objections please shout...
> >>>
> >>> void addRole(String roleName, String[] userList, Permission[]
> >>> permissions)
> >>> throws UserStoreException;
> >>>
> >>>
> >>> Thanks & Regards,
> >>> Prabath
> >>>
> >>> Mobile : +94 71 809 6732
> >>>
> >>> http://blog.facilelogin.com
> >>> http://RampartFAQ.com
> >>
> >>
> >>
> >>
> >> --
> >> Thanks & Regards,
> >> Prabath
> >>
> >> Mobile : +94 71 809 6732
> >>
> >> http://blog.facilelogin.com
> >> http://RampartFAQ.com
> >>
> >> ___
> >> Dev mailing list
> >> Dev@wso2.org
> >> http://wso2.org/cgi-bin/mailman/listinfo/dev
> >>
> >
> >
> >
> > --
> > Amila Suriarachchi
> >
> > Software Architect
> > WSO2 Inc. ; http://wso2.com
> > lean . enterprise . middleware
> >
> > phone : +94 71 3082805
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity Server performs slowly with 5000+ accounts

2013-07-09 Thread Adrian Mitev
Hi! I'm attaching user-mgt.xml. We're using IS 4.0.0 with the builtin LDAP.
We are using the standard claims + few custom claims mapped to LDAP
properties.
I have observed that if i switch from LDAP store to JDBC store the
performance is great - 300msec per new user when i already have 5000
existing users. But using LDAP is slow.


On Fri, Jul 5, 2013 at 5:26 AM, Prabath Siriwardena wrote:

> Also - what is the version of IS ?
>
> Thanks & regards,
> -Prabath
>
>
> On Fri, Jul 5, 2013 at 7:54 AM, Prabath Siriwardena wrote:
>
>> Can you please share your user-mgt.xml and the LDAP structure?
>>
>> Thanks & regards,
>> -Prabath
>>
>>
>> On Wed, Jul 3, 2013 at 6:40 PM, Adrian Mitev wrote:
>>
>>> Hi Asela! Thank you for your answer. My current configuration contains
>>> this property as specified in the documentation [1]. However the issue
>>> occurs even with this setting.
>>>
>>> 1 -
>>> http://docs.wso2.org/wiki/display/IS400/Default+LDAP+User+Store+Configuration
>>>
>>>
>>> On Wed, Jul 3, 2013 at 11:25 AM, Asela Pathberiya wrote:
>>>
>>>> Hi Adrian,
>>>>
>>>> If you have not optimized the configuration, There may be some slowness
>>>> when number of users are increased. To optimized LDAP authentication, you
>>>> need to use "UserDNPattern" property such as following This
>>>> properly must be match with your search base and this can be used with with
>>>> both flat and hierarchical  user search bases.
>>>>
>>>>  >>> name="UserDNPattern">uid={0},ou=Users,dc=wso2,dc=org
>>>>
>>>> Thanks,
>>>> Asela.
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Jul 3, 2013 at 12:44 PM, Adrian Mitev 
>>>> wrote:
>>>>
>>>>> Hi all! I'm not sure if this is the right place to ask! I'm using WSO2
>>>>> Identity Server with it's bundled LDAP. I have a requirement to store 
>>>>> 5000+
>>>>> accounts. I created a test script that adds many accounts using the remote
>>>>> web services (RemoteUserStoreManagerService) through the Java apis. 
>>>>> However
>>>>> as the users amount begin to grow, the operations get slower. Is this a
>>>>> known issue? Could you suggest me an optimization strategy?
>>>>>
>>>>> ___
>>>>> Dev mailing list
>>>>> Dev@wso2.org
>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Thanks & Regards,
>>>> Asela
>>>>
>>>> Mobile : +94 777 625 933
>>>>
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanks & Regards,
>> Prabath
>>
>> Mobile : +94 71 809 6732
>>
>> http://blog.facilelogin.com
>> http://RampartFAQ.com
>>
>
>
>
> --
> Thanks & Regards,
> Prabath
>
> Mobile : +94 71 809 6732
>
> http://blog.facilelogin.com
> http://RampartFAQ.com
>





admin

 admin
 admin

everyone 
jdbc/WSO2CarbonDB
org.wso2.carbon.user.core.config.multitenancy.CommonLDAPRealmConfigBuilder


	
	
WSO2.ORG
false
ldap://localhost:${Ports.EmbeddedLDAP.LDAPServerPort}
uid=admin,ou=system
admin
SHA
(objectClass=person)
scimPerson
ou=Users,dc=wso2,dc=org
(&(objectClass=person)(uid=?))
uid
^[\\S]{5,30}$
	^[\\S]{5,30}$
	^[\\S]{2,30}/[\\S]{2,30}$
^[\\S]{3,30}$
[a-zA-Z0-9._-|//]{3,30}$
^[\\S]{3,30}$
[a-zA-Z0-9._-|//]{3,30}$
	true
	true
	true
ou=Groups,dc=wso2,dc=org
(objectClass=groupOfNames)
	groupOfNames
(&(objectClass=groupOfNames)(cn=?))
cn
member
true
	uid={0},ou=Users,dc=wso2,dc=org
	true
	0



/permission
	true




___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Identity Server performs slowly with 5000+ accounts

2013-07-03 Thread Adrian Mitev
Hi Asela! Thank you for your answer. My current configuration contains this
property as specified in the documentation [1]. However the issue occurs
even with this setting.

1 -
http://docs.wso2.org/wiki/display/IS400/Default+LDAP+User+Store+Configuration


On Wed, Jul 3, 2013 at 11:25 AM, Asela Pathberiya  wrote:

> Hi Adrian,
>
> If you have not optimized the configuration, There may be some slowness
> when number of users are increased. To optimized LDAP authentication, you
> need to use "UserDNPattern" property such as following This
> properly must be match with your search base and this can be used with with
> both flat and hierarchical  user search bases.
>
>  uid={0},ou=Users,dc=wso2,dc=org
>
> Thanks,
> Asela.
>
>
>
>
> On Wed, Jul 3, 2013 at 12:44 PM, Adrian Mitev wrote:
>
>> Hi all! I'm not sure if this is the right place to ask! I'm using WSO2
>> Identity Server with it's bundled LDAP. I have a requirement to store 5000+
>> accounts. I created a test script that adds many accounts using the remote
>> web services (RemoteUserStoreManagerService) through the Java apis. However
>> as the users amount begin to grow, the operations get slower. Is this a
>> known issue? Could you suggest me an optimization strategy?
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
> Asela
>
> Mobile : +94 777 625 933
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Identity Server performs slowly with 5000+ accounts

2013-07-03 Thread Adrian Mitev
Hi all! I'm not sure if this is the right place to ask! I'm using WSO2
Identity Server with it's bundled LDAP. I have a requirement to store 5000+
accounts. I created a test script that adds many accounts using the remote
web services (RemoteUserStoreManagerService) through the Java apis. However
as the users amount begin to grow, the operations get slower. Is this a
known issue? Could you suggest me an optimization strategy?
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev