Author Topic: Maximum number of users reached  (Read 8827 times)

mgiammarco

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Maximum number of users reached
« on: October 30, 2012, 11:55:49 pm »
Hello,
I am using zentyal 3.0 and bulk creating 1283 students with the perl script in your wiki.
After a bit the perl script starts giving this error: "Maximum number of users reached".

Why? Is there a user limit?

Please help me!

Mario

mgiammarco

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: Maximum number of users reached
« Reply #1 on: October 31, 2012, 07:02:36 pm »
Nobody replies?
So I have to assume that community edition is "crippled"?

christian

  • Guest
Re: Maximum number of users reached
« Reply #2 on: October 31, 2012, 07:04:32 pm »
What if you try to add some more accounts manually ?

mgiammarco

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: Maximum number of users reached
« Reply #3 on: November 01, 2012, 12:05:20 pm »
What if you try to add some more accounts manually ?

Just tried it does not work too. I get a blank page reply and the user is not added to zentyal.

christian

  • Guest
Re: Maximum number of users reached
« Reply #4 on: November 01, 2012, 12:25:08 pm »
Thank you.
1 - How many accounts have been successfully created so far?
2 - let's wait for Zentyal team to tell us whenever such limit exists or not. I really don't know  :-[

reano

  • Zen Monk
  • **
  • Posts: 61
  • Karma: +0/-0
    • View Profile
Re: Maximum number of users reached
« Reply #5 on: November 01, 2012, 12:59:14 pm »
As per:
http://forum.zentyal.org/index.php?topic=10230.0
There doesn't seem to be a limit.

mgiammarco

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: Maximum number of users reached
« Reply #6 on: November 02, 2012, 11:45:54 am »
I have created 472 users.

robb

  • Guest
Re: Maximum number of users reached
« Reply #7 on: November 02, 2012, 12:08:25 pm »
Have a look here: http://trac.zentyal.org/ticket/5141

Quote
On OpenLDAP default sizeLimit value is 500. If you need to modify this value use custom templates for that or change that directly on slapd config backend. You can find more information about this in the forum.
« Last Edit: November 02, 2012, 12:11:19 pm by robb »

mgiammarco

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: Maximum number of users reached
« Reply #8 on: November 02, 2012, 07:51:27 pm »
Have a look here: http://trac.zentyal.org/ticket/5141

Quote
On OpenLDAP default sizeLimit value is 500. If you need to modify this value use custom templates for that or change that directly on slapd config backend. You can find more information about this in the forum.

Great!
I am trying it now. Unfortunately I am not able to find the username and password for cn=config tree to add the sizelimit property.
Thanks again,
Mario

mgiammarco

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: Maximum number of users reached
« Reply #9 on: November 09, 2012, 11:25:18 am »

Great!
I am trying it now. Unfortunately I am not able to find the username and password for cn=config tree to add the sizelimit property.
Thanks again,
Mario

OK now I have put in my ldap on port 390  "olcSizeLimit" = 20000.

But I have the same result:  Maximum number of users reached

May I ask you if someone has tested zentyal 3.0 with more than 500 users?

Can I try to reinstall some package?

mgiammarco

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: Maximum number of users reached
« Reply #10 on: November 09, 2012, 12:27:47 pm »
I am debugging User.pm

It does:

1) tries to find the first freeuid in system (or ldap??) users
2) if it is greater than 65534 it complains that there are too many users

But:

1) In my ldap I see that most users have an uid very high: greater than 50000
2) in /etc/passwd I see that there is an user nobody with uid 65534

What's happened? Can I delete user nobody? What can I try?

Thanks again,
Mario

mgiammarco

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: Maximum number of users reached
« Reply #11 on: November 10, 2012, 12:53:19 pm »
I have not yet finished the debugging.
Now I have found that I have several users with UID greater than 100000.

Please note that I have installed zentyal 3.0 from scratch, updated it, configured the domain and then immediately added users.
How is possible that I get this error?

mgiammarco

  • Zen Monk
  • **
  • Posts: 64
  • Karma: +0/-0
    • View Profile
Re: Maximum number of users reached
« Reply #12 on: November 16, 2012, 12:52:29 am »
I have started from scratch with a new installation of zentyal and I get the same problem.

Looking at the last inserted name I see that it has a space in the username.

Is possible that a space in username makes the uid greather than 65535 so next names cannot be inserted?

Mario

christian

  • Guest
Re: Maximum number of users reached
« Reply #13 on: November 16, 2012, 07:58:23 am »
Although this is now widely supported (including Ubuntu), still some (old) Unix platform do not support login with space in the middle.
Use of RFC2307bis permits it  ;)

This say, I don't know if it can generate any issue with [uidnumber] (BTW, [uid] is something else  ;) ) but I believe that testing should be quite easy.
Can you try to import only users with not space in their [uid] (which is hat GUI call "user name")?

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Maximum number of users reached
« Reply #14 on: November 16, 2012, 10:48:39 am »
No, the problem is that the algorithm that finds the uid is very naive and cannot reuse holes in the assigned UIDs so theUID number used by the next user will be the maximum UID + 1. Can not change the UIDs of your users  in the file your feed to the script?