From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 11:23:46 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08ACA16A417 for ; Thu, 30 Aug 2007 11:23:46 +0000 (UTC) (envelope-from valerio.daelli@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id D5D7313C45D for ; Thu, 30 Aug 2007 11:23:45 +0000 (UTC) (envelope-from valerio.daelli@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so566142waf for ; Thu, 30 Aug 2007 04:23:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ebevHhIkyS58y+BB9ycoIsmUdYL4ogaZwyxOJ7ncyWxIRXy7FBVprnPIZY+oLKIs9y5YqoZPJVrAyYwJ9CCcxQQJvpGZlb+W8e+0R+ZAjtTpd5rGzwm+mFMk4wUqUMVDsMPWaCIHt1kH0VmNpk7lZ6YX0YVDsUKt66mGgcWWFZg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=JP1qHKZTzmi8X4T/lznrC4+S+iWOitCsc90c5smskHL4K08eLfbT9NqX+OPErNG4oTgc+pA2ANIHFRQRDQjbMkQgtbdLQzoLBebqHUFHFKJ4pC3Xc3AfHwsXkTK+/b33L3pHdHvtukIoqQeoqniqF3y/3NrzOw5IjOE/D2nAPR8= Received: by 10.114.173.15 with SMTP id v15mr330365wae.1188470807729; Thu, 30 Aug 2007 03:46:47 -0700 (PDT) Received: by 10.114.112.19 with HTTP; Thu, 30 Aug 2007 03:46:47 -0700 (PDT) Message-ID: <27dbfc8c0708300346l686efe22q27ff92f0aae6955d@mail.gmail.com> Date: Thu, 30 Aug 2007 12:46:47 +0200 From: "Valerio Daelli" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: repquota strange behaviour X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2007 11:23:46 -0000 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