On Mon, Jan 26, 2015 at 7:03 PM, Punnadi Gunarathna <[email protected]> wrote: > Hi All, > > I am using listUsers method in UserAdminStub found in > org.wso2.carbon.user.mgt.stub 4.2.0. > If my requirment is to get all the available users with a single call, what > should be the maxLimit value. > > I had a offline chat with Pushpalanka and it was found out that the [1] does > the final call to LDAP. > According to [2] if 0 is passed, it will return all the entries. But > according to [1]'s doListUsers method, if 0 is passed, it will return an > empty array. > > If there is no user-mgt.xml associated, how to retrieve all the available > users at once?
It seems to be -1 also is not working ? It is noted to fix this for next release. However, If you are using user/role management stuff using WSO2IS APIs, It is better if we can use RemoteUserStoreManagerService[1]... Because UserAdmin has been written to fulfill some UI requirements and it may not be simple as RemoteUserStoreManagerService. As i remember, it would work for -1 to retrieve all users.. [1] http://soasecurity.org/2013/12/10/user-role-management-with-wso2-identity-server-apis/ Thanks, Asela. > > [1] > https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.2.0/core/org.wso2.carbon.user.core/4.2.0/src/main/java/org/wso2/carbon/user/core/ldap/ReadOnlyLDAPUserStoreManager.java > > [2] > http://docs.oracle.com/javase/7/docs/api/javax/naming/directory/SearchControls.html#setCountLimit%28long%29 > > Please advice. > -- > Thanks and Regards, > > Punnadi Gunarathna > Senior Software Engineer, > WSO2, Inc.; http://wso2.com > Blog: http://hi-my-world.blogspot.com/ > Tel : 94 11 214 5345 > Fax :94 11 2145300 > > > -- Thanks & Regards, Asela ATL Mobile : +94 777 625 933 +358 449 228 979 _______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
