what with privileges

Robert Slade bsd at bathnetworks.com
Sun Jan 29 12:25:09 PST 2006


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





More information about the freebsd-questions mailing list