[Samba] Unable to provision with openldap/samba4: pdc_fsmo_init: no domain object present

2010-02-15 Thread Francesco Malvezzi
I was trying to follow howto at
http://wiki.samba.org/index.php/Samba4/LDAP_Backend/OpenLDAP
with today's source (15 february 2010)
(latest commit: 6ec6fa0ac4e71f9b14a3cbfef328d50e321b0544)

./configure --enable-developer worked as well as make  make install.

Provision fails:

./setup/provision --realm=unimore.it --ldapadminpass=atmlite
--ldap-backend-type=openldap --server-role='domain controller'
--domain=ateneo --targetdir=setup/ --slapd-path=/usr/local/libexec/slapd
Administrator password will be set randomly!
Failed to bind - LDAP client internal error:
NT_STATUS_UNEXPECTED_NETWORK_ERROR
Failed to connect to
'ldapi://%2Fopt%2Fsrc%2Fsamba%2Fsource4%2Fsetup%2Fprivate%2Fldap%2Fldapi'
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Adding DomainDN: DC=unimore,DC=it
pdc_fsmo_init: no domain object present: (skip loading of domain details)

Traceback (most recent call last):
  File ./setup/provision, line 245, in module
nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,useeadb=eadb)
  File bin/python/samba/provision.py, line 1326, in provision
dom_for_fun_level=dom_for_fun_level)
  File bin/python/samba/provision.py, line 957, in setup_samdb
SAMBA_VERSION_STRING: version
  File bin/python/samba/provision.py, line 261, in setup_modify_ldif
ldb.modify_ldif(data)
  File bin/python/samba/__init__.py, line 261, in modify_ldif
self.modify(msg, controls)
_ldb.LdbError: (1, 'LDAP client internal error: NT_STATUS_INTERNAL_ERROR')
A transaction is still active in ldb context [0x9d3af28] on
/opt/src/samba/source4/setup/private/secrets.ldb

I would like to raise your attention to the first error:
NT_STATUS_UNEXPECTED_NETWORK_ERROR
Failed to connect to
'ldapi://%2Fopt%2Fsrc%2Fsamba%2Fsource4%2Fsetup%2Fprivate%2Fldap%2Fldapi'

which looks untrue to me:

ldapsearch -x -H
ldapi://%2Fopt%2Fsrc%2Fsamba%2Fsource4%2Fsetup%2Fprivate%2Fldap%2Fldapi
# extended LDIF
#
# LDAPv3
# base dc=unimore,dc=it (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

(empty resultset looks ok for an empty directory, ad before provision it
should be)

What I'm doing wrong? Is it possible to set a domain different from
realm (ateneo as domain, unimore.it as realm)? After each failed
provision, should I do something special (rm -rf setup/private or the like)?

Thank you for your time,

Francesco
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba4 HEAD: unable to provision

2010-01-27 Thread Francesco Malvezzi
 targetdir was None when that part of the code ran and os.path.join()
 didn't like that.  I think you might be able to use --targetdir=... on
 the command line, but the help text (Set target directory) is as
 helpful as a comment like:
 
 x++; /* increment x */
 
Thank you!

It fixed it, well, actually it fixed that issue.

Now I'm stuck with
samba.provisionexceptions.ProvisioningError: slapd died before we could
make a connection to it
because slapd_provision_command:
/usr/local/libexec/slapd
-F/opt/src/samba-master/source4/setup/private/ldap/slapd.d -h
ldapi://%2Fopt%2Fsrc%2Fsamba-master%2Fsource4%2Fsetup%2Fprivate%2Fldap%2Fldapi
-d-1
fails in locating
ldif_read_file: no entry file
/opt/src/samba-master/source4/setup/private/ldap/slapd.d/cn=config.ldif

I should investigate more, but again thank you for your help.

Francesco
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] samba4 HEAD: unable to provision

2010-01-26 Thread Francesco Malvezzi
I'm trying to install samba4 with openldap, as from
http://wiki.samba.org/index.php/Samba4/LDAP_Backend/OpenLDAP,

I have got the yesterday realease, last git commit:
commit 2024d4fb27514869d78e9bb39085f98e80413529
Date:   Mon Jan 25 12:41:48 2010 +0100

My system is GNU/Debian Linux Lenny.

./configure --prefix=/opt/samba4
make
sudo make install

all worked

./setup/provision from the source4 dir fails with:

./setup/provision --realm=test.it --ldapadminpass=secret
--ldap-backend-type=openldap --server-role='domain controller' --domain=test

Administrator password will be set randomly!
Traceback (most recent call last):
  File ./setup/provision, line 244, in module
nosync=opts.nosync,ldap_dryrun_mode=opts.ldap_dryrun_mode,useeadb=eadb)
  File bin/python/samba/provision.py, line 1182, in provision
targetdir, sid_generator,useeadb)
  File bin/python/samba/provision.py, line 471, in make_smbconf
posixeadb_line = posix:eadb =  +
os.path.abspath(os.path.join(os.path.join(targetdir, private),eadb.tdb))
  File /usr/lib/python2.5/posixpath.py, line 62, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

What does it mean? What I did wrong?

Just for the records, what is  eadb? Is related to extended filesystem
attributest? Server filesystem is xfs, so xattr is supported.

Thank you for your help,

Francesco

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] ntlm_auth: (pipe \PIPE\NETLOGON) has died or was never started (fd == -1)

2006-01-31 Thread Francesco Malvezzi

I'm exeperiencing a strange ntlm_auth problem:
I'm running two domain with a trust; the trusting one,
(EUFEMIA with the PDC Beatrice) uses the WINS facility of
the trusted one (LETTERE, PDC Alice).

Users of EUFEMIA and LETTERE alike have a successful logon to
Beatrice.

LETTERE users do authenticate in Beatrice with ntlm_auth.
EUFEMIA users do not:
beatrice:/home# ntlm_auth --username user1 --password ** --domain
EUFEMIA
NT_STATUS_NO_LOGON_SERVERS: No logon servers (0xc05e)

(by the way wbinfo -a returns something similar):
beatrice:/home# wbinfo -aEUFEMIA\\user1%**
plaintext password authentication failed
error code was NT_STATUS_NO_LOGON_SERVERS (0xc05e)
error messsage was: No logon servers
Could not authenticate user EUFEMIA\\user1%** with plaintext password
challenge/response password authentication failed
error code was NT_STATUS_NO_LOGON_SERVERS (0xc05e)
error messsage was: No logon servers
Could not authenticate user EUFEMIA\\user1%** with challenge/response

Please note EUFEMIA\\user1 has login throught command:
smbclient -UEUFEMIA\\user1%** -L beatrice.

From Beatrice (and from Alice alike), I can correctly list the Browse
master
and PDC of EUFEMIA with nmblookup. nmblookup -S EUFEMIA returns
bearice with the 1C tag (and 1D as well).

I have no idea what No logon servers means. The logs from winbindd are:

[2006/01/29 10:56:23, 3]
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
  [29121]: request interface version
[2006/01/29 10:56:23, 3]
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
  [29121]: request location of privileged pipe
[2006/01/29 10:56:23, 3] nsswitch/winbindd_misc.c:winbindd_info(248)
  [29121]: request misc info
[2006/01/29 10:56:23, 3] nsswitch/winbindd_pam.c:winbindd_pam_auth(179)
  [29121]: pam auth EUFEMIA\user1
[2006/01/29 10:56:23, 3] nsswitch/winbindd_cm.c:connection_ok(724)
  Connection to  for domain EUFEMIA (pipe \PIPE\NETLOGON) has died or
was never started (fd == -1)
[2006/01/29 10:56:23, 3] nsswitch/winbindd_cm.c:cm_get_ipc_userpass(109)
  cm_get_ipc_userpass: No auth-user defined
[2006/01/29 10:56:33, 0] rpc_client/cli_pipe.c:rpc_api_pipe(435)
  cli_pipe: return critical error. Error was Call timed out: server did
not respond after 1 milliseconds
[2006/01/29 10:56:33, 3] nsswitch/winbindd_cm.c:connection_ok(724)
  Connection to  for domain EUFEMIA (pipe \PIPE\NETLOGON) has died or
was never started (fd == -1)
[2006/01/29 10:56:33, 3] nsswitch/winbindd_cm.c:cm_get_ipc_userpass(109)
  cm_get_ipc_userpass: No auth-user defined
[2006/01/29 10:56:43, 0] rpc_client/cli_pipe.c:rpc_api_pipe(435)
  cli_pipe: return critical error. Error was Call timed out: server did
not respond after 1 milliseconds
[2006/01/29 10:56:43, 2] nsswitch/winbindd_pam.c:winbindd_pam_auth(361)
  Plain-text authentication for user EUFEMIA\user1 returned
NT_STATUS_NO_LOGON_SERVERS (PAM: 4)
[2006/01/29 10:56:43, 3]
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
  [29122]: request interface version
[2006/01/29 10:56:43, 3]
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
  [29123]: request interface version
[2006/01/29 10:56:43, 3]
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
  [29122]: request location of privileged pipe
[2006/01/29 10:56:43, 3]
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
  [29123]: request location of privileged pipe
[2006/01/29 10:56:43, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(126)
  [29122]: getpwnam user1
[2006/01/29 10:56:43, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(126)
  [29123]: getpwnam user1
[2006/01/29 10:56:43, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(126)
  [29123]: getpwnam user1
[2006/01/29 10:56:43, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(126)
  [29122]: getpwnam user1

What does
  Connection to  for domain EUFEMIA (pipe \PIPE\NETLOGON) has died or
was never started (fd == -1)
mean?

Alice is a Fedora Core 1 Samba3.0.21a server.
Beatrice is a Debian GNU/Linux Samba3.0.14a server.

I need ntlm_auth because squid runs on beatrice.
beatrice:/home$ testparm -v | grep win
name resolve order = wins lmhosts host bcast
max wins ttl = 518400
min wins ttl = 21600
wins proxy = No
wins server = (IP address of alice)
wins support = No
wins hook =
wins partners =
winbind separator = \
winbind cache time = 300
winbind enable local accounts = No
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = No
winbind trusted domains only = No
winbind nested groups = No

I have level 10 log from winbindd and from smbd but they are huge.
If you need them, just ask.

Thank to everyone patient enought to read this post,

Again, thank you,

Francesco



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] ntlm_auth: (pipe \PIPE\NETLOGON) has died or was never started (fd == -1)

2006-01-31 Thread Francesco Malvezzi

This is your problem:



[2006/01/29 10:56:33, 0] rpc_client/cli_pipe.c:rpc_api_pipe(435)
  cli_pipe: return critical error. Error was Call timed out: server did
not respond after 1 milliseconds



For some reason, your server is not responding.  perhaps samba3 is
locked up talking to a backing LDAP server?  What do the logs on the
server show?  


Thank you so much for the help.
Yes, the backend is a LDAP server with more than 26000 users, and I'm 
never able to list all of them (of course timeout incurs), but it 
doesn't stop logons on the server, only ntln_auth.


I try to attach the log you requested me (level 3).

Regards

Francesco




Andrew Bartlett



[2006/01/31 18:32:23, 3] smbd/service.c:close_cnum(830)
  155.185.96.86 (155.185.96.86) closed connection to service IPC$
[2006/01/31 18:32:23, 3] smbd/connection.c:yield_connection(69)
  Yielding connection to IPC$
[2006/01/31 18:32:23, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/01/31 18:32:23, 3] smbd/connection.c:yield_connection(69)
  Yielding connection to 
[2006/01/31 18:32:23, 3] smbd/server.c:exit_server(652)
  Server exit (normal exit)
[2006/01/31 18:32:55, 3] smbd/oplock.c:init_oplocks(1351)
  open_oplock_ipc: opening loopback UDP socket.
[2006/01/31 18:32:55, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(303)
  Linux kernel oplocks enabled
[2006/01/31 18:32:55, 3] smbd/oplock.c:init_oplocks(1382)
  open_oplock ipc: pid = 16574, global_oplock_port = 55883
[2006/01/31 18:32:55, 3] lib/access.c:check_access(313)
  check_access: no hostnames in host allow/deny list.
[2006/01/31 18:32:55, 2] lib/access.c:check_access(324)
  Allowed connection from  (155.185.96.86)
[2006/01/31 18:32:55, 3] smbd/process.c:process_smb(1091)
  Transaction 0 of length 183
[2006/01/31 18:32:55, 3] smbd/process.c:switch_message(886)
  switch message SMBnegprot (pid 16574) conn 0x0
[2006/01/31 18:32:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/01/31 18:32:55, 3] smbd/negprot.c:reply_negprot(461)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[2006/01/31 18:32:55, 3] smbd/negprot.c:reply_negprot(461)
  Requested protocol [MICROSOFT NETWORKS 1.03]
[2006/01/31 18:32:55, 3] smbd/negprot.c:reply_negprot(461)
  Requested protocol [MICROSOFT NETWORKS 3.0]
[2006/01/31 18:32:55, 3] smbd/negprot.c:reply_negprot(461)
  Requested protocol [LANMAN1.0]
[2006/01/31 18:32:55, 3] smbd/negprot.c:reply_negprot(461)
  Requested protocol [LM1.2X002]
[2006/01/31 18:32:55, 3] smbd/negprot.c:reply_negprot(461)
  Requested protocol [DOS LANMAN2.1]
[2006/01/31 18:32:55, 3] smbd/negprot.c:reply_negprot(461)
  Requested protocol [Samba]
[2006/01/31 18:32:55, 3] smbd/negprot.c:reply_nt1(333)
  using SPNEGO
[2006/01/31 18:32:55, 3] smbd/negprot.c:reply_negprot(555)
  Selected protocol NT LANMAN 1.0
[2006/01/31 18:32:55, 3] smbd/process.c:process_smb(1091)
  Transaction 1 of length 92
[2006/01/31 18:32:55, 3] smbd/process.c:switch_message(886)
  switch message SMBsesssetupX (pid 16574) conn 0x0
[2006/01/31 18:32:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/01/31 18:32:55, 3] smbd/sesssetup.c:reply_sesssetup_and_X(655)
  wct=13 flg2=0xc801
[2006/01/31 18:32:55, 3] smbd/sesssetup.c:reply_sesssetup_and_X(801)
  Domain=[]  NativeOS=[Unix] NativeLanMan=[Samba] PrimaryDomain=[]
[2006/01/31 18:32:55, 3] smbd/sesssetup.c:reply_sesssetup_and_X(816)
  sesssetupX:[EMAIL PROTECTED]
[2006/01/31 18:32:55, 3] smbd/sesssetup.c:check_guest_password(116)
  Got anonymous request
[2006/01/31 18:32:55, 3] auth/auth.c:check_ntlm_password(219)
  check_ntlm_password:  Checking password for unmapped user [EMAIL PROTECTED] 
with the new password interface
[2006/01/31 18:32:55, 3] auth/auth.c:check_ntlm_password(222)
  check_ntlm_password:  mapped user is: [EMAIL PROTECTED]
[2006/01/31 18:32:55, 3] auth/auth.c:check_ntlm_password(268)
  check_ntlm_password: guest authentication for user [] succeeded
[2006/01/31 18:32:55, 3] smbd/password.c:register_vuid(222)
  User name: nobody Real name: nobody
[2006/01/31 18:32:55, 3] smbd/password.c:register_vuid(241)
  UNIX uid 65534 is UNIX user nobody, and will be vuid 100
[2006/01/31 18:32:55, 3] smbd/process.c:process_smb(1091)
  Transaction 2 of length 84
[2006/01/31 18:32:55, 3] smbd/process.c:switch_message(886)
  switch message SMBtconX (pid 16574) conn 0x0
[2006/01/31 18:32:55, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/01/31 18:32:55, 3] lib/access.c:check_access(313)
  check_access: no hostnames in host allow/deny list.
[2006/01/31 18:32:55, 2] lib/access.c:check_access(324)
  Allowed connection from  (155.185.96.86)
[2006/01/31 18:32:55, 3] smbd/service.c:make_connection_snum(479)
  Connect path is '/tmp' for service [IPC$]
[2006/01/31 18:32:55, 3] lib/util_seaccess.c:se_access_check(251)
[2006/01/31 18:32:55, 3] lib/util_seaccess.c:se_access_check(252)
  se_access_check: user 

[Samba] ntlm_auth: (pipe \PIPE\NETLOGON) has died or was never started (fd == -1)

2006-01-30 Thread Francesco Malvezzi

I'm exeperiencing a strange ntlm_auth problem:
I'm running two domain with a trust; the trusting one,
(EUFEMIA with the PDC Beatrice) uses the WINS facility of
the trusted one (LETTERE, PDC Alice).

Users of EUFEMIA and LETTERE alike have a successful logon to
Beatrice.

LETTERE users do authenticate in Beatrice with ntlm_auth.
EUFEMIA users do not:
beatrice:/home# ntlm_auth --username user1 --password ** --domain
EUFEMIA
NT_STATUS_NO_LOGON_SERVERS: No logon servers (0xc05e)

(by the way wbinfo -a returns something similar):
beatrice:/home# wbinfo -aEUFEMIA\\user1%**
plaintext password authentication failed
error code was NT_STATUS_NO_LOGON_SERVERS (0xc05e)
error messsage was: No logon servers
Could not authenticate user EUFEMIA\\user1%** with plaintext password
challenge/response password authentication failed
error code was NT_STATUS_NO_LOGON_SERVERS (0xc05e)
error messsage was: No logon servers
Could not authenticate user EUFEMIA\\user1%** with challenge/response

Please note EUFEMIA\\user1 has login throught command:
smbclient -UEUFEMIA\\user1%** -L beatrice.

From Beatrice (and from Alice alike), I can correctly list the Browse
master
and PDC of EUFEMIA with nmblookup. nmblookup -S EUFEMIA returns
bearice with the 1C tag (and 1D as well).

I have no idea what No logon servers means. The logs from winbindd are:

[2006/01/29 10:56:23, 3]
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
  [29121]: request interface version
[2006/01/29 10:56:23, 3]
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
  [29121]: request location of privileged pipe
[2006/01/29 10:56:23, 3] nsswitch/winbindd_misc.c:winbindd_info(248)
  [29121]: request misc info
[2006/01/29 10:56:23, 3] nsswitch/winbindd_pam.c:winbindd_pam_auth(179)
  [29121]: pam auth EUFEMIA\user1
[2006/01/29 10:56:23, 3] nsswitch/winbindd_cm.c:connection_ok(724)
  Connection to  for domain EUFEMIA (pipe \PIPE\NETLOGON) has died or
was never started (fd == -1)
[2006/01/29 10:56:23, 3] nsswitch/winbindd_cm.c:cm_get_ipc_userpass(109)
  cm_get_ipc_userpass: No auth-user defined
[2006/01/29 10:56:33, 0] rpc_client/cli_pipe.c:rpc_api_pipe(435)
  cli_pipe: return critical error. Error was Call timed out: server did
not respond after 1 milliseconds
[2006/01/29 10:56:33, 3] nsswitch/winbindd_cm.c:connection_ok(724)
  Connection to  for domain EUFEMIA (pipe \PIPE\NETLOGON) has died or
was never started (fd == -1)
[2006/01/29 10:56:33, 3] nsswitch/winbindd_cm.c:cm_get_ipc_userpass(109)
  cm_get_ipc_userpass: No auth-user defined
[2006/01/29 10:56:43, 0] rpc_client/cli_pipe.c:rpc_api_pipe(435)
  cli_pipe: return critical error. Error was Call timed out: server did
not respond after 1 milliseconds
[2006/01/29 10:56:43, 2] nsswitch/winbindd_pam.c:winbindd_pam_auth(361)
  Plain-text authentication for user EUFEMIA\user1 returned
NT_STATUS_NO_LOGON_SERVERS (PAM: 4)
[2006/01/29 10:56:43, 3]
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
  [29122]: request interface version
[2006/01/29 10:56:43, 3]
nsswitch/winbindd_misc.c:winbindd_interface_version(261)
  [29123]: request interface version
[2006/01/29 10:56:43, 3]
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
  [29122]: request location of privileged pipe
[2006/01/29 10:56:43, 3]
nsswitch/winbindd_misc.c:winbindd_priv_pipe_dir(297)
  [29123]: request location of privileged pipe
[2006/01/29 10:56:43, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(126)
  [29122]: getpwnam user1
[2006/01/29 10:56:43, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(126)
  [29123]: getpwnam user1
[2006/01/29 10:56:43, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(126)
  [29123]: getpwnam user1
[2006/01/29 10:56:43, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(126)
  [29122]: getpwnam user1

What does
  Connection to  for domain EUFEMIA (pipe \PIPE\NETLOGON) has died or
was never started (fd == -1)
mean?

Alice is a Fedora Core 1 Samba3.0.21a server.
Beatrice is a Debian GNU/Linux Samba3.0.14a server.

I need ntlm_auth because squid runs on beatrice.
beatrice:/home$ testparm -v | grep win
name resolve order = wins lmhosts host bcast
max wins ttl = 518400
min wins ttl = 21600
wins proxy = No
wins server = (IP address of alice)
wins support = No
wins hook =
wins partners =
winbind separator = \
winbind cache time = 300
winbind enable local accounts = No
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = No
winbind trusted domains only = No
winbind nested groups = No

I have level 10 log from winbindd and from smbd but they are huge.
If you need them, just ask.

Thank to everyone patient enought to read this post,

Again, thank you,

Francesco


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Re: W9x doesn't download printer drivers

2004-02-02 Thread Francesco Malvezzi
Your posting doesn't contain any helpful details about your
problem.
Sorry,

[global]
printcap name = cups
printing = cups
[print$]
comment = Printer Driver
path = /etc/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root,@adm
[kyocera]
comment = Stampante app.to Teresa
invalid users = @noprint
path = /var/spool/samba
browseable = yes
public = no
guest ok = no
writable = no
printable = yes
printer admin = @adm
[root#]cupsaddsmb -v -U root kyocera

Running command: rpcclient localhost -N -U'root%passwd' -c 'adddriver 
Windows NT x86 
kyocera:cupsdrvr.dll:kyocera.ppd:cupsui.dll:cups.hlp:NULL:RAW:NULL'
Printer Driver kyocera successfully installed.

Running command: smbclient //localhost/print\$ -N -U'root%passwd' -c 
'mkdir WIN40;put /var/spool/cups/tmp/401e03d9a1270 WIN40/kyocera.PPD;put 
/usr/share/cups/drivers/ADFONTS.MFM WIN40/ADFONTS.MFM;put 
/usr/share/cups/drivers/ADOBEPS4.DRV WIN40/ADOBEPS4.DRV;put 
/usr/share/cups/drivers/ADOBEPS4.HLP WIN40/ADOBEPS4.HLP;put 
/usr/share/cups/drivers/DEFPRTR2.PPD WIN40/DEFPRTR2.PPD;put 
/usr/share/cups/drivers/ICONLIB.DLL WIN40/ICONLIB.DLL;put 
/usr/share/cups/drivers/PSMON.DLL WIN40/PSMON.DLL;'
Domain=[LETTERE] OS=[Unix] Server=[Samba 3.0.2rc1]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \WIN40
putting file /var/spool/cups/tmp/401e03d9a1270 as \WIN40/kyocera.PPD 
(17699,6 kb/s) (average 17700,2 kb/s)
putting file /usr/share/cups/drivers/ADFONTS.MFM as \WIN40/ADFONTS.MFM 
(4496,7 kb/s) (average 4806,1 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.DRV as \WIN40/ADOBEPS4.DRV 
(11623,3 kb/s) (average 7941,4 kb/s)
putting file /usr/share/cups/drivers/ADOBEPS4.HLP as \WIN40/ADOBEPS4.HLP 
(28731,9 kb/s) (average 8702,1 kb/s)
putting file /usr/share/cups/drivers/DEFPRTR2.PPD as \WIN40/DEFPRTR2.PPD 
(13163,8 kb/s) (average 8720,1 kb/s)
putting file /usr/share/cups/drivers/ICONLIB.DLL as \WIN40/ICONLIB.DLL 
(19226,2
kb/s) (average 8969,3 kb/s)
putting file /usr/share/cups/drivers/PSMON.DLL as \WIN40/PSMON.DLL 
(11199,8 kb/s) (average 9012,5 kb/s)

Running command: rpcclient localhost -N -U'root%passwd' -c 'adddriver 
Windows 4.0 
kyocera:ADOBEPS4.DRV:kyocera.PPD:NULL:ADOBEPS4.HLP:PSMON.DLL:RAW:ADOBEPS4.DRV:kyocera.PPD,ADOBEPS4.HLP,PSMON.DLL,ADFONTS.MFM,DEFPRTR2.PPD,ICONLIB.DLL'
Printer Driver kyocera successfully installed.

Running command: rpcclient localhost -N -U'root%passwd' -c 'setdriver 
kyocera kyocera'
Succesfully set kyocera to driver kyocera.

[root]# ls -R /etc/samba/drivers/WIN40/
/etc/samba/drivers/WIN40/:
0  ADFONTS.MFM  DEFPRTR2.PPD  ICONLIB.DLL  PSMON.DLL
/etc/samba/drivers/WIN40/0:
ADOBEPS4.DRV
ADOBEPS4.HLP  kyocera.PPD
I hope it could help.

So only one idea crosses my mind: there is a difference in
the supported length of printer names to be used by WIN40
(== NT/2K/XP) and W32X86 (== 95/98/ME) clients
Thank you for the helpful hint. But kyocera is shorter than 8 chars.

Francesco
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] W9x doesn't download printer drivers

2004-01-29 Thread Francesco Malvezzi
My W9x clients cannot download printer driver from samba 3.0.2rc1 with 
cups 1.1.17, while w2k clients do.

The W9x clients open the Add Printer Wizard, connect to print$ share, 
request the ADOBEPS4.DRV file, but they stop at the beginning of the 
download.
Permissions on print$\WINNT\0 directory are the same as print$\W32X86\2. 
cupsaddsmb was successful.

I sniffed the packets while client was in the Add Printer Wizard, and 
just looking text, the only suspicious string is: lpr.kyocera 
noentries (kyocera is a printer name). It appears in a LANMAN 
WPrintQGetInfo Response at the very end of the dialog.

Non idea what to do.

Thanks

Francesco
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba