From owner-freebsd-current@FreeBSD.ORG Sun Jun 1 20:55:19 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 519A737B401; Sun, 1 Jun 2003 20:55:19 -0700 (PDT) Received: from mx.relrs.com.br (patras.procergs.com.br [200.189.130.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1696343F75; Sun, 1 Jun 2003 20:55:18 -0700 (PDT) (envelope-from paa01375@ig.com.br) Received: from eta.ig.com.br (cm-net-poa-C8B02EC0.brdterra.com.br [200.176.46.192]) by mx.relrs.com.br (Postfix) with ESMTP id A78FD1BB29D; Mon, 2 Jun 2003 00:54:45 -0300 (BRT) Message-Id: <5.2.1.1.0.20030602005202.00a51ec0@pop.ig.com.br> X-Sender: paa01375@pop.ig.com.br (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Mon, 02 Jun 2003 00:52:38 -0300 To: freebsd-current@freebsd.org From: milo Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-hackers@freebsd.org Subject: MAXLOGNAME > 17 ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2003 03:55:19 -0000 Hi, in my service I have one box linux runing openldap with five thousand accounts. Many servers linux do authentication in this box and everything is fine. We also use box freebsd 4, however without this feature because not works nss_ldap in this version. Well, whith the begin of the 5.1, a could see this working (thanks Vidrine). My problem is size of username, that can be bigger than seventeen caracteres. The define MAXLOGNAME in /usr/include/sys/param.h and UT_NAMESIZE in /usr/include/utmp.h show me this. I think that change this value can resolv. After one cvsup of current, my login and syslogd were compiled again but not works. Then I did one attach with gdb in login and I watched that mistake was in setlogin(username) in the child process. ----- May 30 18:51:57 ws-tor-0012 login: setlogin(procergs-carlos-louzada): Invalid argument - exiting ----- If this is true, I need recompile the kernel and libc (make world) with the new values? What can I do in this case? ps. About 5.1-beta2, my console is full of warnings: -------------- May 30 17:17:51 ws-tor-0012 kernel: Sleeping on "stopevent" with the following non-sleepa blelocks held: May 30 17:17:51 ws-tor-0012 kernel: exclusive sleep mutex sigacts r = 0 (0xc42c4aa8) lock ed @ /usr/src/sys/kern/subr_trap.c:248 May 30 17:17:51 ws-tor-0012 kernel: lock order reversal May 30 17:17:51 ws-tor-0012 kernel: 1st 0xc42c4aa8 sigacts (sigacts) @ /usr/src/sys/kern/ subr_trap.c:248 May 30 17:17:51 ws-tor-0012 kernel: 2nd 0xc4187608 process lock (process lock) @ /usr/src /sys/kern/kern_synch.c:312 May 30 17:17:51 ws-tor-0012 kernel: Stack backtrace: May 30 17:17:59 ws-tor-0012 kernel: Sleeping on "stopevent" with the following non-sleepa blelocks held: May 30 17:17:59 ws-tor-0012 kernel: exclusive sleep mutex sigacts r = 0 (0xc42d4aa8) lock ed @ /usr/src/sys/kern/subr_trap.c:248 -------------- -- milo