[Samba] WERR_INVALID_NAME in printer migrate

Marcos ribes at tutopia.com.br
Thu Aug 16 14:23:34 GMT 2007


Hello!

I'm trying to migrate printer settings from a XP machine to my samba server
but failed:

[root at smbSrv ~] #net rpc printer migrate settings HPDJ3500 -S winXP
--destination=smbSvr -U admin%password
migrating printer settings for: [\\winXP\HPDJ3500] / [HPDJ3500]
could not set printerdataex: WERR_INVALID_NAME

I don't know what means "ERR_INVALID_NAME". Is invalid printer name?


My samba version is 3.0.23c and my smb.conf is:
[global]
	workgroup = DOMAIN
	server string = %h
	max log size = 50
	socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
	lock spin time = 15
	lock spin count = 45
	wins support = yes
	time server = yes
	max open files = 50000
	oplocks = no
	#veto oplock files = /*.DBF/*.dbf/*.00?/*.ntx/*.NTX/
	getwd cache = yes
	##
	reset on zero vc = yes

	# Manipulacao de arquivos
	hide unreadable = yes
	mangle prefix = 4

	# Acentuacao
	unix charset = iso8859-1
	display charset = cp850

	# PDC
	os level = 64
	preferred master = yes
	local master = yes
	domain master = yes
	domain logons = yes
	admin users = @admin

	# Seguranca
	security = user
	null passwords = yes
	encrypt passwords = yes
	log level = 1
	max log size = 50

	# LDAP
	passdb backend = ldapsam:ldap://localhost
	ldap ssl = no
	ldap suffix = dc=wirth,dc=com,dc=br
	ldap user suffix = ou=Users
	ldap group suffix = ou=Groups
	ldap machine suffix = ou=Computers
	ldap admin dn = cn=Manager,dc=domain,dc=com,dc=br
	ldap passwd sync = yes

	# Impressoras
	printcap name = /etc/printcap
	load printers = yes
	printing = cups
	cups options = raw
	cups server = localhost
	lpq cache time = 0
	show add printer wizard = yes
	default devmode = no

	# Profiles
	logon path =
	logon home =
	logon drive = F:
	logon script = kix32.exe

	create mask = 0770
	force create mode = 0770
	force directory mode = 0770

[homes]
	comment = Pasta Pessoal
	read only = no
	browseable = no

[netlogon]
	comment = Servico de login da rede
	path = /u00/netlogon
	guest ok = yes
	read only = yes
	browseable = no
	write list = @admin

[printers]
	comment = Impressoras
	path = /var/spool/samba
	printable = yes
	browseable = yes
	guest ok = no

[print$]
	comment = Drivers
	path = /u00/drivers
	browseable = yes
	guest ok = yes
	read only = yes
	write list = @admin

[vol1]
	comment = Volume de dados
	path = /u00/vol1
	public = no
	writeable = yes
	browseable = yes

[vol2]
	comment = Volume de usuarios
	path = /u01/vol2
	public = no
	writeable = yes
	browseable = yes



More information about the samba mailing list