repquota strange behaviour
Valerio Daelli
valerio.daelli at gmail.com
Thu Aug 30 04:23:46 PDT 2007
Hi list
we have a couple of fileservers (FreeBSD 5.4 and 6.2) with pam_ldap
and nss_ldap.
They get the users from our openldap server.
Suddendly when we run repquota we have a lot of usernames which are
not translated: they are shown as numeric userid.
About half of the usernames are displayed correctly and half are
displayed only as userid:
#repquota -u /data/exports/Users
...
sburgare -- 10 2097152 2097152 - 5 1000000
1000000 -
smurr -- 724008 2097152 2097152 - 1181 1000000
1000000 -
giotti -- 1706432 2097152 2097152 - 3646 1000000
1000000 -
dpenkov -- 658 2097152 2097152 - 22 1000000
1000000 -
pmassa -- 200640 2097152 2097152 - 976 1000000
1000000 -
...
3440 -- 1271682 2097152 2097152 - 2570 1000000
1000000 -
3441 -- 381056 2097152 2097152 - 418 1000000
1000000 -
3442 -- 182236 2097152 2097152 - 227 1000000
1000000 -
3443 -- 314658 2097152 2097152 - 585 1000000
1000000 -
This is our nss_ldap.conf:
---
uri ldap://ldap1.XXX
base dc=ifom-ieo-campus,dc=it
binddn uid=pam,ou=Services,ou=Accounts,dc=XXX,dc=XXX
bindpw XXX
bind_policy soft
pam_password SSHA
scope sub
nss_base_passwd ou=Users,ou=People,ou=Accounts,dc=XXX,dc=XXX
---
if we query the openldap server for those userids, we get the correct usernames:
# ldapsearch -LLL -h ldap1.XXX -b 'dc=XXX,dc=XXX' '(uidNumber=3440)' uid
dn: uid=lverhoef,ou=ifom,ou=Users,ou=People,ou=Accounts,dc=XXX,dc=
XXX
uid: lverhoef
id works as usual:
# id lverhoef
uid=3440(lverhoef) gid=951(CAMPUS)
and the command quota works as usual:
# quota lverhoef
Disk quotas for user lverhoef (uid 3440):
Filesystem usage quota limit grace files quota limit grace
/data/exports/Users
1271682 2097152 2097152 2570 1000000 1000000
Any clue?
Thanks a lot!
Valerio Daelli
More information about the freebsd-questions
mailing list