rid backend seems to be initialized twice?

buc buc at odusz.so-cdu.ru
Tue Oct 9 19:48:57 GMT 2007


On Tue, 2007-10-09 at 12:51 -0500, Gerald (Jerry) Carter wrote:

> 
> > I use "rid" idmap backend under samba-3.0.26a, and have following (log
> > level 2) in /var/log/samba/log.winbindd-idmap:
> > 
> >> [2007/10/09 21:30:07, 1] nsswitch/idmap.c:idmap_init(365)
> >>   Initializing idmap domains
> >> [2007/10/09 21:30:07, 2] lib/module.c:do_smb_load_module(64)
> >>   Module '/usr/lib/samba/idmap/rid.so' loaded
> >> [2007/10/09 21:30:07, 2] lib/module.c:do_smb_load_module(64)
> >>   Module '/usr/lib/samba/idmap/rid.so' loaded
> >> [2007/10/09 21:30:07, 0] nsswitch/idmap.c:smb_register_idmap(146)
> >>   Idmap module rid already registered!
> >> [2007/10/09 21:30:07, 0] lib/module.c:do_smb_load_module(69)
> >>   Module '/usr/lib/samba/idmap/rid.so' initialization failed:
> >> NT_STATUS_OBJECT_NAME_COLLISION
> >> [2007/10/09 21:30:07, 2] nsswitch/idmap.c:idmap_init(694)
> >>   idmap_init: Unable to get methods for alloc backend rid
> 
> What does your smb.conf look like ?  and your configure/compile
> options as well.
> 

Well,
I use the latest samba-3.0.26a from Fedora 7, but compiled under Fedora
5 (some pre-upgrade scheme to reduce the amount of troubles when F5-->F7
later :) )

It is a "winbind only" machine, where winbind is used for NSS and
Postfix/Dovecot authentications. This Linux machine is under AD domain.

The smb.conf attached.

I should note, that we use some hackish warkaround ("name resolve order
= NULL") to block winbind from attempts to contact (a lot of) DCs of the
trusted domains. (I intended to ask about it later...) But I hope it is
not related to the "rid" issue mentioned.

I can do any tests, patches etc if needed.


~buc

-------------- next part --------------
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/10/04 14:58:47

[global]
	dos charset = CP866
	workgroup = ODUCZ
	realm = ODUCZ.SO
	server string = Samba Server
	security = ADS
	name resolve order = NULL
	allow trusted domains = No
	password server = 172.18.0.201 172.18.0.202
	log level = 2
	log file = /var/log/samba/%m.log
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	load printers = No
	ldap ssl = no
	host msdfs = No
	idmap backend = rid:ODUCZ=1000-100000
	idmap uid = 1000-1000000
	idmap gid = 1000-1000000
	template homedir = /home/%U
	template shell = /bin/bash
	winbind enum users = Yes
	winbind enum groups = Yes
	winbind use default domain = Yes
	create mask = 0644
	map archive = No

[homes]
	comment = Home directory
	valid users = %S
	read only = No
	browseable = No

[printers]
	printable = Yes
	browseable = No
	available = No


More information about the samba-technical mailing list