Discussion:
set-quota resets
Sruli Saurymper
2018-01-15 14:11:42 UTC
Permalink
Hi All,

I used CLI to set a users quota, it was 15728640kb, I executed "kolab
set-quota user/***@domain.tld 20971520" after a few days the user
complained that they reached the quota again, I checked and the quota
was back to 15728640kb, how can this happen? what can I look for in
which log files?

(this is the first time I used CLI to set quota)

I am not sure which version of Kolab I am using, I think it's 3.3

Thanks

Sruli
Sruli Saurymper
2018-01-15 15:06:48 UTC
Permalink
I checked and found the problem seems to be that changing the quota via
"kolab
set-quota" does not update the LDAP, what do I need to do to update the
LDAP when making quota changes using CLI?
Post by Sruli Saurymper
Hi All,
I used CLI to set a users quota, it was 15728640kb, I executed "kolab
complained that they reached the quota again, I checked and the quota
was back to 15728640kb, how can this happen? what can I look for in
which log files?
(this is the first time I used CLI to set quota)
I am not sure which version of Kolab I am using, I think it's 3.3
Thanks
Sruli
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
Skale, Franz
2018-01-16 07:26:59 UTC
Permalink
Hi,
this only can be done using ldapmodify:
ldif-example:

dn: uid=user,ou=People,dc=example,dc=org
changetype: modify
replace: mailQuota
mailQuota: 2097152

/usr/lib/mozldap/ldapmodify -D "cn=Directory Manager" -f
change-mailquota.ldif -w [password]

modifying entry uid=user,ou=People,dc=example,dc=com

It's quite easy to create a shell script for this purpose !

Rgds.
Franz
Post by Sruli Saurymper
I checked and found the problem seems to be that changing the quota via
"kolab
set-quota" does not update the LDAP, what do I need to do to update the
LDAP when making quota changes using CLI?
Post by Sruli Saurymper
Hi All,
I used CLI to set a users quota, it was 15728640kb, I executed "kolab
complained that they reached the quota again, I checked and the quota
was back to 15728640kb, how can this happen? what can I look for in
which log files?
(this is the first time I used CLI to set quota)
I am not sure which version of Kolab I am using, I think it's 3.3
Thanks
Sruli
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
Skale, Franz
2018-01-16 19:28:23 UTC
Permalink
Hi,
Many thanks, I have never touched a ldap table directly, please help me
understand further;
Is this a .ldif file i need to create?
Post by Skale, Franz
dn: uid=user,ou=People,dc=example,dc=org
changetype: modify
replace: mailQuota
mailQuota: 2097152
/usr/lib/mozldap/ldapmodify  -D "cn=Directory Manager" -f
change-mailquota.ldif -w [password]
I do not have a dir /usr/lib/mozldap/ -- change-mailquota.ldif is this
the file I created above?
Then use the default ldapmodify utililty.
It should accept the same command parameters as mozldaps version do !.
Yes, either you have to create a ldif file using an editor or, when
using a shellscript variant, put it in your script. (<<EOF).
ldapmodify should support reading the file from STDIN using -f -. (Try
and test).

Debian provides the mozldap-tools package:
mozldap-tools: /usr/lib/mozldap/ldapmodify
Perhaps you forgot to install the package (Highly recommended).
Post by Skale, Franz
modifying entry uid=user,ou=People,dc=example,dc=com
It's quite easy to create a shell script for this purpose !
Once I understand it properly I can create a bash script to automate.
Rgds.
Franz

Continue reading on narkive:
Loading...