Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jan 2006 20:26:05 +0000
From:      Robert Slade <bsd@bathnetworks.com>
To:        playnet <playnet@mail333.com>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: what with privileges
Message-ID:  <1138566364.28122.7.camel@lmail.bathnetworks.co.uk>
In-Reply-To: <132366435.20060129230655@mail333.com>
References:  <132366435.20060129230655@mail333.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1138566364.28122.7.camel>