Menu

Tree [b7c7b3] master /
 History

HTTPS access


File Date Author Commit
 doc 2019-04-02 Jan Kara Jan Kara [62661b] Delete old documentation
 ldap-scripts 2007-07-16 jkar8572 jkar8572 [97b4df] Added a wrapper script around setquota which al...
 po 2022-09-19 Jan Kara Jan Kara [118c54] Include unconfigured manpages into distribution
 .gitignore 2018-07-16 Jan Kara Jan Kara [919de7] Add quota_nld to .gitignore
 COPYING 2019-04-02 Jan Kara Jan Kara [b6bb53] COPYING: Update mailing address
 Changelog 2022-09-21 Jan Kara Jan Kara [87d2fd] Release quota-tools 4.09
 Makefile.am 2018-07-16 Kent Overstreet Kent Overstreet [ac6bac] setproject: Simple utility for setting projects...
 README.ldap-support 2004-04-23 jkar8572 jkar8572 [06ac15] Added LDAP perl scripts (Stefan Adams)
 README.mailserver 2004-01-07 jkar8572 jkar8572 [b8d851] Fixed a few problems in mail-server checking. (...
 autogen.sh 2014-12-01 Tomáš Chvátal Tomáš Chvátal [bab3fa] Create new autotools buildsystem
 bylabel.c 2019-03-26 Fabrice Fontaine Fabrice Fontaine [5bccdb] Use proper C99 integer types
 bylabel.h 2010-01-05 jkar8572 jkar8572 [d271d0] * Rewritten configuration script to create conf...
 common.c 2024-07-25 Jan Kara Jan Kara [5ba8a3] Move user/group/project name translation into c...
 common.h 2024-07-25 Jan Kara Jan Kara [5ba8a3] Move user/group/project name translation into c...
 configure.ac 2024-05-07 Jan Kara Jan Kara [c41dbb] Disable BSD_BEHAVIOUR by default
 convertquota.8 2009-12-14 jkar8572 jkar8572 [dece38] 64-bit quota support.
 convertquota.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 dqblk_rpc.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 dqblk_v1.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 dqblk_v2.h 2019-03-26 Fabrice Fontaine Fabrice Fontaine [78e514] Include <fcntl.h> to get loff_t definition
 dqblk_xfs.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 edquota.8 2016-03-30 Jan Kara Jan Kara [4b62b7] edquota: Project quota support
 edquota.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 mntopt.h 2024-07-23 Jan Kara Jan Kara [26a83e] Add support for bcachefs
 pot.c 2014-12-01 Tomáš Chvátal Tomáš Chvátal [bab3fa] Create new autotools buildsystem
 pot.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 quota-nfs.sh 2010-09-14 Jan Kara Jan Kara [4ae56e] Create quota-nfs.sh for systems with automounte...
 quota.1 2020-09-21 Jan Kara Jan Kara [4aac54] quota: Add --filesystem option
 quota.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 quota.h 2020-11-30 Jan Kara Jan Kara [1959f3] Drop sys/cdefs.h usage
 quota_nld.8 2010-01-05 jkar8572 jkar8572 [d271d0] * Rewritten configuration script to create conf...
 quota_nld.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 quota_tree.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 quotacheck.8 2010-02-22 jkar8572 jkar8572 [e705c3] * fixup typos in manpages (Michael Meskes)
 quotacheck.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 quotacheck.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 quotacheck_v1.c 2010-01-05 jkar8572 jkar8572 [d271d0] * Rewritten configuration script to create conf...
 quotacheck_v2.c 2018-02-05 Jan Kara Jan Kara [b9525a] quotacheck: Fail check if quota file magic is i...
 quotagrpadmins 2005-03-17 jkar8572 jkar8572 [d9b0d0] Added sanity check to quota reporting (Jan Kara)
 quotagrpadmins.5 2013-10-16 Petr Písař Petr Písař [0035f0] Add quotagrpadmins(5) manual page
 quotaio.c 2024-07-23 Jan Kara Jan Kara [26a83e] Add support for bcachefs
 quotaio.h 2024-01-26 Carlos Maiolino Carlos Maiolino [00534e] Enable support for tmpfs quotas
 quotaio_generic.c 2024-01-26 Carlos Maiolino Carlos Maiolino [00534e] Enable support for tmpfs quotas
 quotaio_generic.h 2016-01-26 Jan Kara Jan Kara [856878] Scan dquots using Q_GETNEXTQUOTA
 quotaio_meta.c 2024-01-26 Carlos Maiolino Carlos Maiolino [00534e] Enable support for tmpfs quotas
 quotaio_rpc.c 2018-05-28 Jan Kara Jan Kara [d7694c] rpc: Fix wrong limit for space usage
 quotaio_tree.c 2013-12-03 Cristian Rodríguez Cristian Rodríguez [f215e3] __cpu_to_le16 --> htole16
 quotaio_v1.c 2024-01-26 Carlos Maiolino Carlos Maiolino [00534e] Enable support for tmpfs quotas
 quotaio_v1.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 quotaio_v2.c 2024-01-26 Carlos Maiolino Carlos Maiolino [00534e] Enable support for tmpfs quotas
 quotaio_v2.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 quotaio_xfs.c 2024-07-29 Pavel Reichl Pavel Reichl [c59b85] quotaio_xfs: Fix memory leak
 quotaio_xfs.h 2020-09-21 Jan Kara Jan Kara [e777f4] Handle grace time overflows for XFS quotas
 quotaon.8 2016-03-30 Jan Kara Jan Kara [ded282] quotaon: Add project quota support
 quotaon.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 quotaon.h 2011-11-16 Jan Kara Jan Kara [40e09a] Add support for quotas on ext4 in system files
 quotaon_xfs.c 2024-01-26 Carlos Maiolino Carlos Maiolino [ded570] Add quotactl_fd() support
 quotaops.c 2024-05-07 Jan Kara Jan Kara [44613c] quotaops: Checking egid with BSD_BEHAVIOR
 quotaops.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 quotastats.8 2004-05-24 jkar8572 jkar8572 [e12004] Updated version to 3.12
 quotastats.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 quotasync.1 2016-03-30 Jan Kara Jan Kara [9e2f46] quotasync: Add project quota support
 quotasync.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 quotasys.c 2024-08-06 Jan Kara Jan Kara [b7c7b3] quotasys: Make detection of QF_META format work...
 quotasys.h 2024-07-25 Jan Kara Jan Kara [5ba8a3] Move user/group/project name translation into c...
 quotatab 2010-12-14 Petr Písař Petr Písař [e2e91b] Comment example quotatab to silent warnquota
 quotatab.5 2013-10-17 Petr Písař Petr Písař [e96285] Add quotatab(5) manual page
 release.sh 2015-12-18 Jan Kara Jan Kara [618a2a] Update release script to work with new build sy...
 repquota.8 2018-01-10 Jan Kara Jan Kara [810bf9] Implement manual choice of output unit
 repquota.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 rpc.rquotad.8 2013-10-21 Petr Písař Petr Písař [5f3f2b] Improve rpc.rquota(8) manual page
 rquota.3 2001-03-23 jkar8572 jkar8572 [869fe2] Initial revision
 rquota.x 2001-03-23 jkar8572 jkar8572 [869fe2] Initial revision
 rquota_client.c 2019-05-28 Jan Kara Jan Kara [4cd287] rpc: Clarify error message when cannot connect ...
 rquota_client.h 2010-01-06 jkar8572 jkar8572 [6928d9] Fixed some forgotten identifiers from reserved ...
 rquota_server.c 2019-03-26 Fabrice Fontaine Fabrice Fontaine [5bccdb] Use proper C99 integer types
 rquota_svc.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 set_limits_example.c 2012-02-29 Jan Kara Jan Kara [fe2675] Typo fixes, message changes for easier i18n
 setproject.c 2019-01-09 Kent Overstreet Kent Overstreet [e61d46] setproject: Add support for bcachefs REINHERIT_...
 setquota.8 2016-03-30 Jan Kara Jan Kara [49d553] setquota: Project quota support
 setquota.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 setup_quota_group 2001-03-23 jkar8572 jkar8572 [869fe2] Initial revision
 svc_socket.c 2019-03-29 Jan Kara Jan Kara [24e2af] Use getrpcbynumber() instead of getrpcbynumber_r()
 warnquota.8 2018-01-10 Jan Kara Jan Kara [810bf9] Implement manual choice of output unit
 warnquota.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl
 warnquota.conf 2019-09-12 Jan Kara Jan Kara [769f46] warnquota: Clarify that CC_TO gets resolved thr...
 warnquota.conf.5 2013-10-17 Petr Písař Petr Písař [52232f] Add warnquota.conf(5) manual page
 xqmstats.8 2004-05-24 jkar8572 jkar8572 [e12004] Updated version to 3.12
 xqmstats.c 2024-07-14 Brahmajit Das Brahmajit Das [e73c5b] Fix building on musl

Read Me

LDAP support for warnquota by James Bourne <jbourne@hardrock.org>

The LDAP support added to warnquota allows you to retreive mail routing
information from an LDAP server so that you can send mail to the correct
addresses.  So for example if usera has the email address usera@foo.bar.com
and userb has userb@baz.bar.com you can have the attributes as follows
(obvious things missing here):

dn: uid=usera,ou=People,dc=bar,dc=com
uid: usera
mail: usera@foo.bar.com

dn: uid=userb,ou=People,dc=bar,dc=com
uid: userb
mail: userb@baz.bar.com

warnquota.conf should be set like this (if you allow anonymous binds and
reads of the mail attribute:

LDAP_MAIL = true
LDAP_HOST = ldap.bar.com
LDAP_PORT = 389
LDAP_BASEDN = ou=People,dc=bar,dc=com
LDAP_SEARCH_ATTRIBUTE = uid
LDAP_MAIL_ATTRIBUTE = mail
LDAP_DEFAULT_MAIL_DOMAIN = bar.com

If not, just add:

LDAP_BINDDN = uid=readonly,dc=bar,dc=com
LDAP_BINDPW = it'sapasswd

and you will bind as the user readonly and search that way.

If you need to do lookups using a different attribute (Novell eDir for
example uses cn=username) change the LDAP_SEARCH_ATTRIBUTE to cn.  

Same with LDAP_MAIL_ATTRIBUTE.  If you use mail routing in LDAP (roughly
following the Laser Draft) you can set this to mailLocalAddress and
warnquota will send to that address.  This will guarentee that your quota
mail will be delivered to the correct address.