From owner-freebsd-questions@FreeBSD.ORG Sun Jan 29 20:25:09 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7822F16A420 for ; Sun, 29 Jan 2006 20:25:09 +0000 (GMT) (envelope-from bsd@bathnetworks.com) Received: from lmail.bathnetworks.co.uk (mail.bathnetworks.com [84.92.24.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FC0643D45 for ; Sun, 29 Jan 2006 20:25:08 +0000 (GMT) (envelope-from bsd@bathnetworks.com) Received: (qmail 31162 invoked by uid 510); 29 Jan 2006 20:26:06 +0000 Received: from 84.92.24.252 by lmail.bathnetworks.co.uk (envelope-from , uid 508) with qmail-scanner-1.24-st-qms (clamdscan: 0.87/1146. spamassassin: 3.0.2. perlscan: 1.24-st-qms. Clear:RC:0(84.92.24.252):SA:0(-3.6/5.0):. Processed in 1.359067 secs); 29 Jan 2006 20:26:06 -0000 X-Spam-Status: No, hits=-3.6 required=5.0 X-Antivirus-MYDOMAIN-Mail-From: bsd@bathnetworks.com via lmail.bathnetworks.co.uk X-Antivirus-MYDOMAIN: 1.24-st-qms (Clear:RC:0(84.92.24.252):SA:0(-3.6/5.0):. Processed in 1.359067 secs Process 31155) Received: from mail.bathnetworks.com (HELO ?84.92.24.252?) (bsd@bathnetworks.com@84.92.24.252) by lmail.bathnetworks.co.uk with SMTP; 29 Jan 2006 20:26:05 +0000 From: Robert Slade To: playnet In-Reply-To: <132366435.20060129230655@mail333.com> References: <132366435.20060129230655@mail333.com> Content-Type: text/plain Message-Id: <1138566364.28122.7.camel@lmail.bathnetworks.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Sun, 29 Jan 2006 20:26:05 +0000 Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" Subject: Re: what with privileges 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: Sun, 29 Jan 2006 20:25:09 -0000 On Sun, 2006-01-29 at 20:06, Playnet wrote: > Hello freebsd-questions, > > I try add machine into domain. If i run smbldap-useradd manually, all > ok. But from samba i get errors: > > Jan 29 22:47:04 sstand net: smbldap_open: cannot access LDAP when not root.. > Jan 29 22:47:04 sstand net: [2006/01/29 22:47:04, 0] lib/smbldap.c:smbldap_search_suffix(1246) > Jan 29 22:47:04 sstand net: smbldap_search_suffix: Problem during the LDAP search: (unknown) (Time limit exceeded) > Jan 29 22:47:04 sstand net: [2006/01/29 22:47:04, 0] passdb/secrets.c:secrets_init(64) > Jan 29 22:47:04 sstand net: Failed to open /usr/local/private/secrets.tdb > Jan 29 22:47:04 sstand net: [2006/01/29 22:47:04, 0] passdb/machine_sid.c:pdb_generate_sam_sid(163) > Jan 29 22:47:04 sstand net: pdb_generate_sam_sid: Failed to store generated machine SID. > Jan 29 22:47:05 sstand net: [2006/01/29 22:47:05, 0] lib/util.c:smb_panic2(1548) > Jan 29 22:47:05 sstand net: PANIC: Could not generate a machine SID > Jan 29 22:47:05 sstand net: > Jan 29 22:47:05 sstand net: > Jan 29 22:47:11 sstand kernel: pid 2648 (net), uid 65534: exited on signal 6 (core dumped) > Jan 29 22:47:11 sstand smbd[2643]: [2006/01/29 22:47:11, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2028) > Jan 29 22:47:11 sstand smbd[2643]: _samr_create_user: Running the command `/usr/local/sbin/smbldap-useradd -t 240 -w "sstand$"' gave 134 > Jan 29 22:47:15 sstand smbd[2643]: [2006/01/29 22:47:15, 0] lib/util_sock.c:read_data(526) > Jan 29 22:47:15 sstand smbd[2643]: read_data: read failure for 4 bytes to client 192.168.26.10. Error = Connection reset by peer Hmm I think the 1st line says it all. You are not using the correct admin user ie one with sufficient privileges. to add the user to ldap. This is really a question for the samba mailing list. Rob