[Samba] Printer driver auto upload.

2004-12-04 Thread Pivert
Hello !

How can I configure samba to upload a particular driver when installing a 
printer shared. (cups + samba 3 + cups-pdf). 

In my particular case, I share a cups-pdf virtual printer and I would like 
samba to send the HP Color Laserjet 8500 PS driver when I connect to it.

I've searched the web but didn't find any clear answer. It seems that a lot of 
things are depreciated now, so please give me the tips or an updated howto 
page for doing this !!

Thanks !



-- 
Software patents are threatening us : http://nosoftwarepatents.com
GnuPG public key : http://www.pivert.net/pivert_home.asc


pgplABX6VTMos.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Printer driver auto upload.

2004-12-04 Thread Pivert
Le Samedi 4 Décembre 2004 09:37, Pivert a écrit :
 Hello !

 How can I configure samba to upload a particular driver when installing a
 printer shared. (cups + samba 3 + cups-pdf).

 In my particular case, I share a cups-pdf virtual printer and I would like
 samba to send the HP Color Laserjet 8500 PS driver when I connect to it.

 I've searched the web but didn't find any clear answer. It seems that a lot
 of things are depreciated now, so please give me the tips or an updated
 howto page for doing this !!

 Thanks !

To be a little more precise...

The best howto I fount is :
http://www.netadmintools.com/art258.html

However, when comes the step to click the New Driver in the Advanced Tab,
The New Driver button is in gray and I can't click on it.

Of course I have read/write access to //server/print$/WIN32X86/

What should I do ?



-- 
Software patents are threatening us : http://nosoftwarepatents.com
GnuPG public key : http://www.pivert.net/pivert_home.asc


pgpuFt1E7qrQR.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Printer driver auto upload.

2004-12-04 Thread Christoph Stoettner
Do you have a line like
printer admin = xyz
in your smb.conf?

Am Sa, den 04.12.2004 schrieb Pivert um 10:32:
 Le Samedi 4 Décembre 2004 09:37, Pivert a écrit :
  Hello !
 
  How can I configure samba to upload a particular driver when installing a
  printer shared. (cups + samba 3 + cups-pdf).
 
  In my particular case, I share a cups-pdf virtual printer and I would like
  samba to send the HP Color Laserjet 8500 PS driver when I connect to it.
 
  I've searched the web but didn't find any clear answer. It seems that a lot
  of things are depreciated now, so please give me the tips or an updated
  howto page for doing this !!
 
  Thanks !
 
 To be a little more precise...
 
 The best howto I fount is :
 http://www.netadmintools.com/art258.html
 
 However, when comes the step to click the New Driver in the Advanced Tab,
 The New Driver button is in gray and I can't click on it.
 
 Of course I have read/write access to //server/print$/WIN32X86/
 
 What should I do ?
 
 

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


Re: [Samba] Printer driver auto upload.

2004-12-04 Thread Christoph Stoettner
Hi,

Do you have a line like 
printer admin = xyz
in your smb.conf?

Greets
Chris

Am Sa, den 04.12.2004 schrieb Pivert um 10:32:
 Le Samedi 4 Décembre 2004 09:37, Pivert a écrit :
  Hello !
 
  How can I configure samba to upload a particular driver when installing a
  printer shared. (cups + samba 3 + cups-pdf).
 
  In my particular case, I share a cups-pdf virtual printer and I would like
  samba to send the HP Color Laserjet 8500 PS driver when I connect to it.
 
  I've searched the web but didn't find any clear answer. It seems that a lot
  of things are depreciated now, so please give me the tips or an updated
  howto page for doing this !!
 
  Thanks !
 
 To be a little more precise...
 
 The best howto I fount is :
 http://www.netadmintools.com/art258.html
 
 However, when comes the step to click the New Driver in the Advanced Tab,
 The New Driver button is in gray and I can't click on it.
 
 Of course I have read/write access to //server/print$/WIN32X86/
 
 What should I do ?
 
 


signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

RE: [Samba] Printer driver auto upload.

2004-12-04 Thread Andras Kende

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pivert
Sent: Saturday, December 04, 2004 3:32 AM
To: [EMAIL PROTECTED]
Subject: Re: [Samba] Printer driver auto upload.

Le Samedi 4 Décembre 2004 09:37, Pivert a écrit :
 Hello !

 How can I configure samba to upload a particular driver when installing a
 printer shared. (cups + samba 3 + cups-pdf).

 In my particular case, I share a cups-pdf virtual printer and I would like
 samba to send the HP Color Laserjet 8500 PS driver when I connect to it.

 I've searched the web but didn't find any clear answer. It seems that a
lot
 of things are depreciated now, so please give me the tips or an updated
 howto page for doing this !!

 Thanks !

To be a little more precise...

The best howto I fount is :
http://www.netadmintools.com/art258.html

However, when comes the step to click the New Driver in the Advanced Tab,
The New Driver button is in gray and I can't click on it.

Of course I have read/write access to //server/print$/WIN32X86/

What should I do ?

--

When you browse to \\server\print$ in windows explorer can you create a new
directory / file ?

If not temporarily change to: read only = no

Andras Kende
http://ww.kende.com





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


RE: [Samba] Printer driver auto upload.

2004-12-04 Thread Andras Kende


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andras
Kende
Sent: Saturday, December 04, 2004 4:18 AM
To: 'Pivert'; [EMAIL PROTECTED]
Subject: RE: [Samba] Printer driver auto upload.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pivert
Sent: Saturday, December 04, 2004 3:32 AM
To: [EMAIL PROTECTED]
Subject: Re: [Samba] Printer driver auto upload.

Le Samedi 4 Décembre 2004 09:37, Pivert a écrit :
 Hello !

 How can I configure samba to upload a particular driver when installing a
 printer shared. (cups + samba 3 + cups-pdf).

 In my particular case, I share a cups-pdf virtual printer and I would like
 samba to send the HP Color Laserjet 8500 PS driver when I connect to it.

 I've searched the web but didn't find any clear answer. It seems that a
lot
 of things are depreciated now, so please give me the tips or an updated
 howto page for doing this !!

 Thanks !

To be a little more precise...

The best howto I fount is :
http://www.netadmintools.com/art258.html

However, when comes the step to click the New Driver in the Advanced Tab,
The New Driver button is in gray and I can't click on it.

Of course I have read/write access to //server/print$/WIN32X86/

What should I do ?

--

When you browse to \\server\print$ in windows explorer can you create a new
directory / file ?

If not temporarily change to: read only = no

Also connect as : root 

Andras Kende
http://ww.kende.com





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



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


[Samba] Samba 3.0.9 PDC - Saving roaming user profiles from windows 2000 sp4 (w2k) failed

2004-12-04 Thread Alexander Hoff
Hello,
i must admit that i'm totally lost. After working a lot of hours my new samba 
server is still not running fine. I had read a lot of papers but i have no idea 
what's going wrong.
My goal:
-
Samba 3.0.9 (Fedora Core 2) working as a PDC for windows 2000 professional 
client (with sp4 and all hotfixes applied) _with_ roaming user profiles.
My status:
--
* root/Administrator can log on the samba pdc from any windows 2000 client using my 
domain stargate. _Everything_ is working fine.
* any other user can log on the samba pdc from any windows 2000 client using my 
domain. Profiles beeing located on the samba server (if present) will be used, 
but windows never updates the user's profile.
If there's no user profile present on the samba server, windows creates a new 
directory in the profile directory for the user on the samba server during 
logout, but windows doesn't copy any files to this new directory.
My question(s):
--
Which configuration settings on the windows or the samba side can prevent 
windows from updating it's profile on the samba server as far as users (not 
admins) are concerned?
My configuration:
--
smb.conf (extract):
=
workgroup = STARGATE
netbios name = GATE
domain master = Yes
preferred master = Yes
os level = 64
security = user
admin users = root, @smbadmins
guest account = nobody
password server = PDC BDC
passdb backend = tdbsam
username map = /etc/samba/smbusers
domain logons = Yes
logon path = \\%L\profiles\%U
logon drive = z:
name resolve order = host lmhosts wins bc
wins support = yes
dns proxy = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
idmap uid = 15000-2
idmap gid = 15000-2
winbind use default domain = no
[netlogon]
comment = Netlogon Share (Read-Only)
path = /srv/smb/netlogon
valid users = root, @smbusers
admin users = root, @smbadmins
browseable = No
writable = No
share modes = No
guest ok  = No
[profiles]
comment = Roaming Profile Share
path = /srv/smb/profiles
profile acls = No # i also tried profile acls = Yes
browseable = Yes
writeable = Yes
/etc/samba/smbusers:

root = administrator
nobody = guest pcguest smbguest
initGrps.sh

(has been executed during samba setup)
# Map Windows Domain Groups to UNIX groups
net groupmap modify ntgroup=Domain Admins  unixgroup=root
net groupmap modify ntgroup=Domain Users   unixgroup=smbusers
net groupmap modify ntgroup=Domain Guests  unixgroup=nobody
pdbedit  -v -L (extract):
=
Unix username:starship-desktop$
NT username:  
Account Flags:[W  ]
User SID: S-1-5-21-1238991123-4049683364-3362944609-2402
Primary Group SID:S-1-5-21-1238991123-4049683364-3362944609-2025
Full Name:SMB Machine Account
Home Directory:   \\gate\starship-desktop_
HomeDir Drive:z:
Logon Script: starship-desktop_.bat
Profile Path: \\gate\profiles\starship-desktop_
Domain:   STARGATE
Account desc: 
Workstations: 
Munged dial:  
Logon time:   0
Logoff time:  Fr, 13 Dez 1901 21:45:51 GMT
Kickoff time: Fr, 13 Dez 1901 21:45:51 GMT
Password last set:Mi, 01 Dez 2004 18:35:24 GMT
Password can change:  Mi, 01 Dez 2004 18:35:24 GMT
Password must change: Fr, 13 Dez 1901 21:45:51 GMT
Last bad password   : 0
Bad password count  : 0
Logon hours : FF
---
Unix username:starship
NT username:  
Account Flags:[UX ]
User SID: S-1-5-21-1238991123-4049683364-3362944609-2002
Primary Group SID:S-1-5-21-1238991123-4049683364-3362944609-1201
Full Name:Starship
Home Directory:   \\gate\starship
HomeDir Drive:z:
Logon Script: starship.bat
Profile Path: \\gate\profiles\starship
Domain:   GATE
Account desc: 
Workstations: 
Munged dial:  
Logon time:   0
Logoff time:  Fr, 13 Dez 1901 21:45:51 GMT
Kickoff time: Fr, 13 Dez 1901 21:45:51 GMT
Password last set:Do, 02 Dez 2004 21:45:01 GMT
Password can change:  Do, 02 Dez 2004 21:45:01 GMT
Password must change: Fr, 13 Dez 1901 21:45:51 GMT
Last bad password   : 0
Bad password count  : 0
Logon hours : FF

ls -al /srv/smb:

drwxr-x---   2 root smbusers   4096 21. Nov 20:12 netlogon
drwxrwxrwx   5 root smbusers   4096  3. Dez 21:03 profiles
drwxrwx---  11 root smbusers   4096 24. Nov 16:09 shared
ls -al /srv/smb/profiles:
=
drwx--  16 root root4096  3. Dez 17:43 root
drwx--+ 14 starship smbusers4096  3. Dez 20:56 starship
I would really appreciate any help. Thanks in advance.
Best regards,
Alex
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Printer driver auto upload.

2004-12-04 Thread Pivert

 When you browse to \\server\print$ in windows explorer can you create a new
 directory / file ?
Yes, I can.

Do you have a line like 
printer admin = xyz
in your smb.conf?
Yes I have.

I made some tests with other computers (Thanks GSX server !) And it works, but 
with windows 2000 only. Not XP

With 2000, everything works fine...
With XP, I can install drivers that have been installed with windows 2000, but 
I cannot install drivers on the server with XP. The New Driver... button is 
simply gray. (See the procedure at : 
http://www.netadmintools.com/art258.html )


Le Samedi 4 Décembre 2004 11:17, Andras Kende a écrit :
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Pivert
 Sent: Saturday, December 04, 2004 3:32 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [Samba] Printer driver auto upload.

 Le Samedi 4 Décembre 2004 09:37, Pivert a écrit :
  Hello !
 
  How can I configure samba to upload a particular driver when installing a
  printer shared. (cups + samba 3 + cups-pdf).
 
  In my particular case, I share a cups-pdf virtual printer and I would
  like samba to send the HP Color Laserjet 8500 PS driver when I connect
  to it.
 
  I've searched the web but didn't find any clear answer. It seems that a

 lot

  of things are depreciated now, so please give me the tips or an updated
  howto page for doing this !!
 
  Thanks !

 To be a little more precise...

 The best howto I fount is :
 http://www.netadmintools.com/art258.html

 However, when comes the step to click the New Driver in the Advanced Tab,
 The New Driver button is in gray and I can't click on it.

 Of course I have read/write access to //server/print$/WIN32X86/

 What should I do ?

 --

 When you browse to \\server\print$ in windows explorer can you create a new
 directory / file ?

 If not temporarily change to: read only = no

 Andras Kende
 http://ww.kende.com

-- 
Software patents are threatening us : http://nosoftwarepatents.com
GnuPG public key : http://www.pivert.net/pivert_home.asc


pgp904yc6r2Jc.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Reg connecting win3.11 clients to samba

2004-12-04 Thread Christoph Scheeder
Hm,
this should work out of the box,
but you must install the tcp/ip-protocol (preferably the 
tcp32b-version from microsoft) to your win3.11 clients
and you should remove all other protocols from these clients.
Samba only talks netbios over tcp, not native netbios.
Hope this helps
Christoph

jai schrieb:
Dear sir,
 
We are using Rethat linux 9 with which we got samba 2.2.7a. we are able to connect windows 98 and win xp machines, but the problem is we are not able to connect win 3.11 machines is there any add-on package for connecting win 3.11 clients ( windows workgrops ) or the procedure to followed to get the sares slice of linux m/c to win 3.11 m/c.. 
 
 
 
with regards
Jayaram Prasad, Sr.Dy.Systems Engineer.
Systems Dept.
Hyderabad.



jayaram
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] How do I stop the guest account printing?

2004-12-04 Thread Tim
Hi there.
I've had Samba running fo a while now on a machine that we use as a shared
file store. Not everyone who uses it has an account on the linux machine,
so it's setup with security = share to allow guest access to some of the
shares. But I've now attached a printer that I dont want guest access to.
This might be something really simple that I'm missing, but I can seem to
stop the guest account from using the printer! Is it something obvious? I
had thought that doing a guest ok = no in the printer share would stop
it, but I dont get asked for a password, and print jobs are logged (by
CUPS) as user nobody.
Anyone got any ideas? It's driving me MaAaAaD!
Tim.

Packages:
  Samba 2.2.12
  CUPS 1.1.22
Samba config:
[global]
  workgroup = FOO
  server string = File server
  security = share
  hosts allow = 127.0.0.1 192.168.0.0/16
  interfaces = eth0 lo
  bind interfaces only = yes
  log file = /var/log/samba/log.%m
  log level = 2
  syslog = 0
  invalid users = root bin daemon adm sync shutdown halt mail news \
  uucp operator gopher
  socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
  veto files = /*.eml/*.nws/riched20.dll/*.{*}/
  directory mask = 0755
  create mask = 0644
  character set = ISO8859-15
  client code page = 437
  domain master = yes
  preferred master = yes
  wins support = yes
  dns proxy = no
  username map = /etc/samba/smbusers
  encrypt passwords = yes
  load printers = yes
  printing = cups
  printcap name = cups
[store]
  comment = Shared File Repository
  path = /srv/samba/store
  writeable = yes
  guest ok = yes
  guest only = yes
  force group = samba
  # Create files read-only and let samba delete them
  create mask = 444
  delete readonly = yes
[temp]
  comment = Temporary Store
  path = /srv/samba/temp
  writable = yes
  guest ok = yes
  guest only = yes
  force group = samba
[print$]
  comment = Printer Drivers
  path = /etc/samba/drivers
  browseable = yes
  guest ok = no
  read only = yes
  write list = root
[LaserPrinter]
  printer = LaserPrinter
  comment = Lexmark Optra Color 1200
  path = /var/spool/samba
  browseable = yes
  guest ok = no
  writable = no
  printable = yes
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] failure notice

2004-12-04 Thread badmail
Hi. This is the qmail-send program at relay.spectranet.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

[EMAIL PROTECTED]:
202.138.125.174 does not like recipient.
Remote host said: 550 [EMAIL PROTECTED]: User unknown in local recipient table
Giving up on 202.138.125.174.

--- Below this line is a copy of the message.

Return-Path: [EMAIL PROTECTED]
Received: (qmail 18967 invoked by uid 1008); 4 Dec 2004 13:29:50 -
Received: from direct-static-dsl152-d.spectranet.com (HELO mailserver) 
(203.122.42.152)
  by relay.spectranet.com with SMTP; 4 Dec 2004 13:29:50 -
Received: by mailserver (VPOP3) with SMTP; Sat, 4 Dec 2004 18:24:45 +0530
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: HELLO
Date: Sat, 4 Dec 2004 19:08:42 +0530
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary==_NextPart_000_0006_2FCA027B.9ABDD0E1
X-Priority: 3
X-MSMail-Priority: Normal
X-Server: VPOP3 - Registered to: Nelapsi!UCF

This is a multi-part message in MIME format.

--=_NextPart_000_0006_2FCA027B.9ABDD0E1
Content-Type: text/plain;
charset=Windows-1252
Content-Transfer-Encoding: 7bit

The message contains Unicode characters and has been sent as a binary 
attachment.

* added by MailScan Anti-Virus and Content Security Software *
The attachment(s) that came with the following mail 
received by you had Viruses in it.

=
The Mail came from: [EMAIL PROTECTED]
The Mail recipient: [EMAIL PROTECTED]
Subject of the Mail   : HELLO
Message-ID: 

Attachment-Name Virus-Name  Action-Taken

message.zip I-Worm.LovGate.wDeleted
=

Use  MailScan on your  EMail  Servers  and  eScan on your
Windows-based PCs and Servers for maximum protection from
Internet-borne viruses.

* added by MailScan Anti-Virus and Content Security Software *

--=_NextPart_000_0006_2FCA027B.9ABDD0E1--

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


[Samba] printer shares: PDF queue and AD integration

2004-12-04 Thread Harald Milz
Hi,

after taking a look at the samba-3.0.9 Sernet packages I see that smb.conf
is in the samba3-client package not the server package. This smb.conf lacks
about every pre-built share we had before. Anyway... 

I posted this before but no answer yet: 

As you know, Samba up to and including 3.0.8 contains a share pdf which
is meant to convert an incoming postscript job to PDF. At least in SUSE
Linux as well as the Sernet RPMs this is broken because as documented
print command is ignored if Samba is compiled against libcups and
printing=cups (see smb.conf man page lines 4564 ff. in 3.0.8 and
Chap. 18 of the HOWTO under Default UNIX System Printing Commands).

A workaround is to set printing=bsd after which this works fine. I am
told SUSE is working on the problem. The share looks as follows:

...
printing = bsd
[pdf]
comment = PDF creator
path = /var/tmp
printable = Yes
print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u'
-z %z
create mask = 0600
use client driver = yes

Anyway, I set up such a queue for a customer and he would like to have
a second one (one for color and one for black  white, as if anyone
used the BW queue when he can use color...). But - when I create an
identical stanza, users cannot connect to the second one and get a
connection refused error. Chapter 18 of the HOWTO (Print Commands)
suggests one can create multiple printer shares like this but why won't
this work for me? This is with Samba-3.0.8-Sernet-SUSE on SLES9. The
server is an AD domain member of a W2003 domain. AD integration works,
i.e. getent passwd gives us 20,000+ entries.

In any case, the doesn't work bug should be resolved. I don't understand
why a print command shouldn't work if we're running against CUPS,
except if it's explicitly designed like that. If so - why?  And the use
client driver = yes should be the default for this share otherwise the
customer gets utterly confused by the notorious Access denied status
of the pdf queue :-( 


While we're at it, is there any way to set the printer location (i.e. the
AD subtree for searching purposes) in the Samba config? I doubt this
very much but I just don't want to miss anything.


While we're at it ^2, if the krbtgt is valid for a week, and it expires,
what happens to the ads join? Will the machine still be a domain member,
or do we actually have to kinit once a week?


TIA^2! 

-- 
It's not enough to be Hungarian; you must have talent too.
-- Alexander Korda
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] correction to Samba-HOWTO-Collection

2004-12-04 Thread Ilia Chipitsine
Hello!
I'd suggest to change
C:\Windows NT\System32\config --- %SystemRoot%\System32\config
Chapter 5.2.1 MS Windows NT4-style Domain Control (taken from 
samba-3.0.9)

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


[Samba] Problem connecting linux box to linux box in ad

2004-12-04 Thread Hakan Bjork
Hi

I have a customer running 2 RedHat 7.3 servers. These are running to gether 
with w2k and w2k3 
machines in an Active Directory.
I ran samba 2.0.7 and upgraded to 3.0.8 because of that the customer had to use 
restrict anonymous 
= 2 in windows, that stops the IPC$ share to be seen by anonymous connections.
I configured Kerberos and could connect windows boxes to one of the linux 
boxes, the other linux 
box connected to the first linux box also through smb.
After that the first linux box was rebooted, I hadn't rebooted the linux box 
after upgrading to 
samba 3.0.8, the second linux box can't connect to the first linux box.
The windows boxes can still connect to the first linux box and the linux box 
can connect to 
windows boxes.
On the second box I get this whe I try to mount the share:
12874: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

In the log file on the first linux box I get:
[2004/12/04 16:00:08, 1] libsmb/cliconnect.c:cli_full_connection(1482)
  failed tcon_X with NT_STATUS_ACCESS_DENIED
[2004/12/04 16:00:08, 1] libsmb/cliconnect.c:cli_full_connection(1482)
  failed tcon_X with NT_STATUS_ACCESS_DENIED
[2004/12/04 16:00:08, 1] libsmb/cliconnect.c:cli_full_connection(1482)
  failed tcon_X with NT_STATUS_ACCESS_DENIED
[2004/12/04 16:00:08, 1] libsmb/cliconnect.c:cli_full_connection(1482)
  failed tcon_X with NT_STATUS_ACCESS_DENIED
[2004/12/04 16:00:08, 0] auth/auth_domain.c:domain_client_validate(170)
  domain_client_validate: Domain password server not available.

It's like when I connect from a linux box the first linux server tries to 
contact the dc's in the 
old style.

The smb.conf looks like this:
---
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = fha

# server string is the equivalent of the NT Description field
   server string = Finans
   realm = FHA.SE
# Security mode. Most people will want user level security. See
# security_level.txt for details.
;   security = user
   security = ads
;   security = share
   password server = SRVSCALA SRV-FILE01


[fdp$]
   comment = Blanketter
   path = /usr/xforms/finans/exp_imp/to_sc/pdf
   public = no
   writable = no
   guest ok = yes
;   create mask = 0766
;   printable = no
;   write list = @staff



It dosn't matter what account I use. I use the one that could connect and I try 
other accounts 
that is used on the windows boxes.

Anyone having a clue?

--
Mvh
Håkan Björk



-- 
Meddelandet har kontrollerats mot virus samt skadligt 
innehåll av MailScanner och förmodas vara säkert.

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


RE: [Samba] How do I stop the guest account printing?

2004-12-04 Thread Andras Kende


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim
Sent: Saturday, December 04, 2004 6:43 AM
To: [EMAIL PROTECTED]
Subject: [Samba] How do I stop the guest account printing?

Hi there.

I've had Samba running fo a while now on a machine that we use as a shared
file store. Not everyone who uses it has an account on the linux machine,
so it's setup with security = share to allow guest access to some of the
shares. But I've now attached a printer that I dont want guest access to.

This might be something really simple that I'm missing, but I can seem to
stop the guest account from using the printer! Is it something obvious? I
had thought that doing a guest ok = no in the printer share would stop
it, but I dont get asked for a password, and print jobs are logged (by
CUPS) as user nobody.

Anyone got any ideas? It's driving me MaAaAaD!

Tim.



Packages:
   Samba 2.2.12
   CUPS 1.1.22

Samba config:
[global]
   workgroup = FOO
   server string = File server
   security = share
   hosts allow = 127.0.0.1 192.168.0.0/16
   interfaces = eth0 lo
   bind interfaces only = yes
   log file = /var/log/samba/log.%m
   log level = 2
   syslog = 0
   invalid users = root bin daemon adm sync shutdown halt mail news \
   uucp operator gopher
   socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
   veto files = /*.eml/*.nws/riched20.dll/*.{*}/
   directory mask = 0755
   create mask = 0644
   character set = ISO8859-15
   client code page = 437
   domain master = yes
   preferred master = yes
   wins support = yes
   dns proxy = no
   username map = /etc/samba/smbusers
   encrypt passwords = yes
   load printers = yes
   printing = cups
   printcap name = cups
[store]
   comment = Shared File Repository
   path = /srv/samba/store
   writeable = yes
   guest ok = yes
   guest only = yes
   force group = samba
   # Create files read-only and let samba delete them
   create mask = 444
   delete readonly = yes
[temp]
   comment = Temporary Store
   path = /srv/samba/temp
   writable = yes
   guest ok = yes
   guest only = yes
   force group = samba
[print$]
   comment = Printer Drivers
   path = /etc/samba/drivers
   browseable = yes
   guest ok = no
   read only = yes
   write list = root
[LaserPrinter]
   printer = LaserPrinter
   comment = Lexmark Optra Color 1200
   path = /var/spool/samba
   browseable = yes
   guest ok = no
   writable = no
   printable = yes


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




Hello,

You may create a [printers] section...


You could regard this section as a general convenience shortcut to share all
printers with minimal configuration. It is also a container for settings
which should apply as default to all printers.



Andras Kende
http://www.kende.com



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


[Samba] XP fails to cache Domain Credentials

2004-12-04 Thread Matthew Easton
My win2000 laptop caches the domain credentials so I can log into the computer 
when disconnected from the network.  However, Windows XP SP2 laptops cannot.  
I get a domain unavailable error even though the local security profile on 
the laptop is set to allow domain credential caching.

My other client, with XP laptops and a Windows 2000 server, has no problem.

Is this a Samba 3.0.8 bug?  
Is XP to blame?

Is there a workaround?



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


[Samba] Openbsd very slow

2004-12-04 Thread Marvin Bonilla
Hi
 We have a problem with a new server system running OpenBSD 3.6 (macppc). It 
runs on a vlan which is part of other vlan in a building network infrastructure.
The img0 interface is configured 100baseTX full-duplex as it should be. The 
speed is disappointing, using samba 2.2.10. Other systems, i.e. four mac's 
computers exchange data at full speed over that network. All cables are brand 
new , OpenBSD system is very slow. Are there any issues to consider when 
connecting OpenBSD 3.6  with Samba 2.2.10 in a vlan?

TIA in advance.
Mar


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


[Samba] Re: Your computer account was not found or the password was incorrect

2004-12-04 Thread Steve Ramage
Hey guys,
I'm trying to migrate my NT4 Domain and am having some problems. 
Ignoring my other post related to this, I can't get any of my machines 
to be able to login. Alls I ever get is

Your computer account was not found or the password is incorrect
I even tried rejoining the domain which works. I leave the domain and 
then rejoin it, it takes a LONG time (might just be cause I'm testing 
this on my old laptop), and it says I've joined, and I reboot and I get 
that error.

These are Windows 2000, Windows XP, and Windows 2003 Clients (No Active 
Directory At all).

The log.smbd doesn't really show anything, except what I assume is my 
machine trying to authenticate, and for whatever reason the username is 
blanked out for trust account.

I think these are the appropriate entries
[2004/12/04 02:12:31, 1] auth/auth_util.c:make_server_info_sam(822)
 User Guest in passdb, but getpwnam() fails!
[2004/12/04 02:12:31, 2] smbd/server.c:exit_server(571)
 Closing connections
[2004/12/04 02:12:31, 1] auth/auth_util.c:make_server_info_sam(822)
 User Guest in passdb, but getpwnam() fails!
[2004/12/04 02:12:31, 2] auth/auth.c:check_ntlm_password(312)
 check_ntlm_password:  Authentication for user [] - [] FAILED with 
error NT_STATUS_NO_SUCH_USER
[2004/12/04 02:12:31, 1] auth/auth_util.c:make_server_info_sam(822)
 User Guest in passdb, but getpwnam() fails!
[2004/12/04 02:12:42, 2] smbd/server.c:exit_server(571)
 Closing connections

The following is my smb.conf file
-
##
# Samba Configuration File -- Version 0.90b  #
# by Steve R #
# Date: 03-Dec-04#
# System: Fermat #
# Samba Version: 3.0.1   #
##
##
##

# General Options


# Network Options

socket options = TCP_NODELAY IPTOS_LOWDELAY
bind interfaces only = yes
interfaces = eth1, lo
wins support = yes
unix extensions = no
os level = 33
local master = yes
preferred master = yes
domain master = yes
announce as = WinNT
announce version = 4.1
domain logons = yes
#password server = *

# Domain Options

workgroup = SJrX.NET

# System Options

netbios name = fermat
server string = Debian 3.0r1, Running Samba: %v
time server = yes
log level = 2

# Security Options

passdb backend = tdbsam
sjrx:mysql user = samba
sjrx:mysql password = password
sjrx:mysql database = samba
sjrx:domain column='SJrX.NET':
sjrx:fullname column = CONCAT(firstname,' ',surname):
sjrx:lanman pass column = lm_pass:
sjrx:nt pass column = nt_pass:
sjrx:unknown 3 column = NULL
#hide local users = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n .

add user script = /usr/sbin/adduser %u
add user to group script = /usr/sbin/adduser %u %g
#del user script = /usr/sbin/deluser %u

#asswd program = /bin/echo hello %u
#asswd chat = *hello* %n
guest ok = no
read only = yes
encrypt passwords = yes
security = user
map to guest = Bad Password
invalid users = russ

# Shares Options

follow symlinks = yes
hide dot files = yes
delete veto files = yes
follow symlinks = yes
wide links = yes
#map archive = yes
#map system = yes
#map hidden = yes
delete readonly = yes
browsable = no
# veto files = /*:DATA*/


# Shares

[home]
comment = %u's home directory
path = /home/%U/
writeable = yes
browsable = yes
[data]
path = /data/
force directory mode = 775
force create mode = 774
directory mode = 510
create mode = 400
comment = Public Folder:
public = yes
browsable = yes
write list = sjr
force group = pub
writeable = no
[dump]
path = /data/dump
public = yes
force user = root
writeable = yes
guest ok = yes
[tm2]
path = /data/tm2/
public = yes
browsable = yes
writeable = no
comment = MP3's
[www]
writeable = yes
path = /var/www/
create mode = 510
directory mode = 400
force directory mode = 775
force create mode = 774
force user = www-data
force group = pub
valid users = sjr
write list = sjr
map archive = no
map system = no
map hidden = no
[ftp]
writeable = yes
path = /home/ftp/
create mode = 510
directory mode = 400
force directory mode = 775
force create mode = 774
force user = www-data
force group = ftp
valid users = sjr
write list = sjr
map archive = no
map system = no
map hidden = no
[admin]
writeable = yes
path = /home/admintools/
create mode = 600
directory mode = 700
guest ok = no
valid users = sjr
write list = sjr
[backups]
writeable = no
path = /data2/backups/
read only = yes
guest ok = no
valid users = sjr
read list = sjr
force user = root
[netlogon]
path = /var/samba/netlogon/
write list = sjr , ntadmin, root
[profile]
path = /var/samba/profiles/
-
Finally one other thing, the password 

Re: [Samba] Openbsd very slow

2004-12-04 Thread evilninja
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Marvin Bonilla schrieb:

 full-duplex as it should be. The speed is disappointing, using
 samba 2.2.10. Other systems, i.e. four mac's computers exchange data

can you exclude network problems as the reason for this behaviour?
i.e. what's the transfer rate in your setup, and what's the rate when you
use samba? also, would it be possible for you to upgrade to a recent samba
version?

Christian.
- --
BOFH excuse #93:

Feature not yet implemented
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBsjI1C/PVm5+NVoYRAn2uAKC7sOsPYuJnACj1S70bAl6duHAm8gCfdct6
RXPqMqJXVVQ1QYufB6wGi/g=
=0nWQ
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Network Write Error

2004-12-04 Thread John Acton
I run a small network at home with two PCs running Win98SE, an NT4 server 
(actually SBS 4.5) and a Linux firewall (actually Smoothwall 1.0).

In the last week I have been getting the blue screen on both PCs (Network 
write error. You have no space available on the server)

The NT server has 2 HDs - first drive (4GB) has the operating system (C: drive 
has 2.5GB free) and the second drive (13GB)  has 3 4GB partitions (2.4GB free, 
343MB free, 245MB free) so I don't think this is the real problem.

I cannot find any reference to this error on the MS Knowledge Base.

Can anybody offer an explanation (and a remedy?)

Regards,

John

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


smbpasswd syntax please

2004-12-04 Thread Alder
Hi,
Using the latest Samba 2.2.8 build with USER level security, but am 
having trouble using the smbpasswd command while logged in as SYSTEM.

I want to add a user to the smbpasswd file, so I enter:
$ smbpasswd -a user
..or..
$ smbpasswd -a user
but this merely produces the help screen for the smbpasswd command.  The 
same goes for the other command switches available to root.  This used 
to work on the builds released before October, so did the syntax of the 
command change, or am I simply missing something obvious?

Thanks,
Terry
PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:
http://www.catb.org/~esr/faqs/smart-questions.html


Re: smbpasswd syntax please

2004-12-04 Thread Alder
Alder wrote::
Hi,
Using the latest Samba 2.2.8 build with USER level security, but am 
having trouble using the smbpasswd command while logged in as SYSTEM.

I want to add a user to the smbpasswd file, so I enter:
$ smbpasswd -a user
..or..
$ smbpasswd -a user
but this merely produces the help screen for the smbpasswd command.  The 
same goes for the other command switches available to root.  This used 
to work on the builds released before October, so did the syntax of the 
command change, or am I simply missing something obvious?

Answered it myself moments after posting.  It seems one has to add the 
-L switch now, even when logged in as SYSTEM, i.e.:

smbpasswd -L -a user
Perhaps someone could comment on when the -L switch became mandatory, 
and why.  I'm pretty sure it wasn't needed in the pre-October releases 
of version 2.2.8.

Thanks,
Terry

PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:
http://www.catb.org/~esr/faqs/smart-questions.html


svn commit: samba r4058 - in branches/SAMBA_4_0/source: include lib lib/registry/tools libads param rpc_server/echo

2004-12-04 Thread tridge
Author: tridge
Date: 2004-12-04 09:30:38 + (Sat, 04 Dec 2004)
New Revision: 4058

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4058

Log:
added a type safe version of smb_xmalloc()

Modified:
   branches/SAMBA_4_0/source/include/includes.h
   branches/SAMBA_4_0/source/lib/registry/tools/regpatch.c
   branches/SAMBA_4_0/source/lib/util_pw.c
   branches/SAMBA_4_0/source/libads/ads_struct.c
   branches/SAMBA_4_0/source/param/loadparm.c
   branches/SAMBA_4_0/source/rpc_server/echo/rpc_echo.c


Changeset:
Modified: branches/SAMBA_4_0/source/include/includes.h
===
--- branches/SAMBA_4_0/source/include/includes.h2004-12-04 00:14:47 UTC 
(rev 4057)
+++ branches/SAMBA_4_0/source/include/includes.h2004-12-04 09:30:38 UTC 
(rev 4058)
@@ -321,3 +321,8 @@
 
 #endif /* _INCLUDES_H */
 
+/*
+  type safe varient of smb_xmalloc()
+*/
+#define smb_xmalloc_p(type) (type *)smb_xmalloc(sizeof(type))
+

Modified: branches/SAMBA_4_0/source/lib/registry/tools/regpatch.c
===
--- branches/SAMBA_4_0/source/lib/registry/tools/regpatch.c 2004-12-04 
00:14:47 UTC (rev 4057)
+++ branches/SAMBA_4_0/source/lib/registry/tools/regpatch.c 2004-12-04 
09:30:38 UTC (rev 4058)
@@ -154,7 +154,7 @@
  */
 static struct cmd_line *get_cmd_line(int fd)
 {
-  struct cmd_line *cl = (CMD_LINE *)smb_xmalloc(sizeof(CMD_LINE));
+  struct cmd_line *cl = smb_xmalloc_p(CMD_LINE);
   int i = 0, rc;
   uint8_t ch;
 
@@ -445,7 +445,7 @@
   struct cmd_line *cl = NULL;
   struct val_spec_list *vl = NULL;
 
-  cmd = (struct command_s *)smb_xmalloc(sizeof(struct command_s));
+  cmd = smb_xmalloc_p(struct command_s);
 
   cmd-cmd = CMD_NONE;
   cmd-key = NULL;
@@ -488,7 +488,7 @@
 * There could be a \ on the end which we need to 
 * handle at some time
 */
-   vl = (struct val_spec_list *)smb_xmalloc(sizeof(struct val_spec_list));
+   vl = smb_xmalloc_p(struct val_spec_list);
vl-next = NULL;
vl-val = NULL;
vl-name = parse_value(cl, vl-type, vl-val);
@@ -607,7 +607,7 @@
 return NULL;
   }
 
-  tmp = (CMD_FILE *)smb_xmalloc(sizeof(CMD_FILE)); 
+  tmp = smb_xmalloc_p(CMD_FILE); 
 
   /*
* Let's fill in some of the fields;

Modified: branches/SAMBA_4_0/source/lib/util_pw.c
===
--- branches/SAMBA_4_0/source/lib/util_pw.c 2004-12-04 00:14:47 UTC (rev 
4057)
+++ branches/SAMBA_4_0/source/lib/util_pw.c 2004-12-04 09:30:38 UTC (rev 
4058)
@@ -24,7 +24,7 @@
 
 static struct passwd *alloc_copy_passwd(const struct passwd *from) 
 {
-   struct passwd *ret = smb_xmalloc(sizeof(struct passwd));
+   struct passwd *ret = smb_xmalloc_p(struct passwd);
ZERO_STRUCTP(ret);
ret-pw_name = smb_xstrdup(from-pw_name);
ret-pw_passwd = smb_xstrdup(from-pw_passwd);

Modified: branches/SAMBA_4_0/source/libads/ads_struct.c
===
--- branches/SAMBA_4_0/source/libads/ads_struct.c   2004-12-04 00:14:47 UTC 
(rev 4057)
+++ branches/SAMBA_4_0/source/libads/ads_struct.c   2004-12-04 09:30:38 UTC 
(rev 4058)
@@ -87,7 +87,7 @@
 {
ADS_STRUCT *ads;

-   ads = (ADS_STRUCT *)smb_xmalloc(sizeof(*ads));
+   ads = smb_xmalloc_p(ADS_STRUCT);
ZERO_STRUCTP(ads);

ads-server.realm = realm? strdup(realm) : NULL;

Modified: branches/SAMBA_4_0/source/param/loadparm.c
===
--- branches/SAMBA_4_0/source/param/loadparm.c  2004-12-04 00:14:47 UTC (rev 
4057)
+++ branches/SAMBA_4_0/source/param/loadparm.c  2004-12-04 09:30:38 UTC (rev 
4058)
@@ -1576,8 +1576,7 @@
}
else {
ServicePtrs = tsp;
-   ServicePtrs[iNumServices] =
-   (service *) malloc(sizeof(service));
+   ServicePtrs[iNumServices] = malloc_p(service);
}
if (!ServicePtrs[iNumServices]) {
DEBUG(0,(add_a_service: out of memory!\n));
@@ -1871,7 +1870,7 @@
pdata = pdata-next;
}
if (not_added) {
-   paramo = smb_xmalloc(sizeof(*paramo));
+   paramo = smb_xmalloc_p(struct param_opt);
paramo-key = strdup(data-key);
paramo-value = strdup(data-value);
DLIST_ADD(pserviceDest-param_opt, paramo);
@@ -1940,7 +1939,7 @@
}
 
if (!f) {
-   f = (struct file_lists *)malloc(sizeof(file_lists[0]));
+   f = malloc_p(struct file_lists);
if (!f)
return;
f-next = file_lists;
@@ -2247,7 +2246,7 @@
}
}
 
- 

svn commit: samba r4059 - in branches/SAMBA_4_0/source/lib/ldb: common include tools

2004-12-04 Thread tridge
Author: tridge
Date: 2004-12-04 10:14:03 + (Sat, 04 Dec 2004)
New Revision: 4059

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4059

Log:
moved the ldb -o option parsing to a common routine


Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/util.c
   branches/SAMBA_4_0/source/lib/ldb/include/ldb_private.h
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbadd.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbdel.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbedit.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbmodify.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbrename.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbsearch.c
   branches/SAMBA_4_0/source/lib/ldb/tools/ldbtest.c


Changeset:
Sorry, the patch is too large (271 lines) to include; please use WebSVN to see 
it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4059


svn commit: samba r4060 - in branches/SAMBA_4_0/source/ntvfs: .

2004-12-04 Thread tridge
Author: tridge
Date: 2004-12-04 10:15:54 + (Sat, 04 Dec 2004)
New Revision: 4060

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4060

Log:
removed an unused file



Removed:
   branches/SAMBA_4_0/source/ntvfs/ntvfs_dfs.c


Changeset:
Deleted: branches/SAMBA_4_0/source/ntvfs/ntvfs_dfs.c
===
--- branches/SAMBA_4_0/source/ntvfs/ntvfs_dfs.c 2004-12-04 10:14:03 UTC (rev 
4059)
+++ branches/SAMBA_4_0/source/ntvfs/ntvfs_dfs.c 2004-12-04 10:15:54 UTC (rev 
4060)
@@ -1,117 +0,0 @@
-/* 
-   Unix SMB/CIFS implementation.
-   NTVFS base code
-   Copyright (C) Andrew Tridgell 2003
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-   
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-   
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-/*
-  this implements the core code for all NTVFS modules. Backends register 
themselves here.
-*/
-
-#include includes.h
-
-
-/* the list of currently registered NTVFS backends, note that there
- * can be more than one backend with the same name, as long as they
- * have different typesx */
-static struct {
-   const char *name;
-   enum ntvfs_type type;
-   struct ntvfs_ops *ops;
-} *backends = NULL;
-static int num_backends;
-
-/*
-  register a NTVFS backend. 
-
-  The 'name' can be later used by other backends to find the operations
-  structure for this backend.  
-
-  The 'type' is used to specify whether this is for a disk, printer or IPC$ 
share
-*/
-BOOL ntvfs_register(const char *name, enum ntvfs_type type, struct ntvfs_ops 
*ops)
-{
-   if (ntvfs_backend_byname(name, type) != NULL) {
-   /* its already registered! */
-   DEBUG(2,(NTVFS backend '%s' for type %d already registered\n, 
-name, (int)type));
-   return False;
-   }
-
-   backends = Realloc(backends, sizeof(backends[0]) * (num_backends+1));
-   if (!backends) {
-   smb_panic(out of memory in ntvfs_register);
-   }
-
-   backends[num_backends].name = smb_xstrdup(name);
-   backends[num_backends].type = type;
-   backends[num_backends].ops = smb_xmemdup(ops, sizeof(*ops));
-
-   num_backends++;
-
-   return True;
-}
-
-
-/*
-  return the operations structure for a named backend of the specified type
-*/
-struct ntvfs_ops *ntvfs_backend_byname(const char *name, enum ntvfs_type type)
-{
-   int i;
-
-   for (i=0;inum_backends;i++) {
-   if (backends[i].type == type  
-   strcmp(backends[i].name, name) == 0) {
-   return backends[i].ops;
-   }
-   }
-
-   return NULL;
-}
-
-
-/*
-  return the NTVFS interface version, and the size of some critical types
-  This can be used by backends to either detect compilation errors, or provide
-  multiple implementations for different smbd compilation options in one module
-*/
-int ntvfs_interface_version(struct ntvfs_critical_sizes *sizes)
-{
-   sizes-sizeof_ntvfs_ops = sizeof(struct ntvfs_ops);
-   sizes-sizeof_off_t = sizeof(off_t);
-   sizes-sizeof_tcon_context = sizeof(struct tcon_context);
-
-   return NTVFS_INTERFACE_VERSION;
-}
-
-
-/*
-  initialise the NTVFS subsystem
-*/
-BOOL ntvfs_init(void)
-{
-   /* initialise our 3 basic backends. These are assumed to be
-* present and are always built in */
-   if (!posix_vfs_init() ||
-   !ipc_vfs_init() ||
-   !print_vfs_init()) {
-   return False;
-   }
-
-   DEBUG(3,(NTVFS version %d initialised\n, NTVFS_INTERFACE_VERSION));
-   return True;
-}



svn commit: samba r4061 - in branches/SAMBA_4_0/source/torture/raw: .

2004-12-04 Thread tridge
Author: tridge
Date: 2004-12-04 10:16:47 + (Sat, 04 Dec 2004)
New Revision: 4061

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4061

Log:
more additions to the RAW-ACLS test, to help me work out some details for pvfs




Modified:
   branches/SAMBA_4_0/source/torture/raw/acls.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/acls.c
===
--- branches/SAMBA_4_0/source/torture/raw/acls.c2004-12-04 10:15:54 UTC 
(rev 4060)
+++ branches/SAMBA_4_0/source/torture/raw/acls.c2004-12-04 10:16:47 UTC 
(rev 4061)
@@ -260,7 +260,7 @@
io.generic.level = RAW_OPEN_NTCREATEX;
io.ntcreatex.in.root_fid = 0;
io.ntcreatex.in.flags = 0;
-   io.ntcreatex.in.access_mask = SEC_STD_READ_CONTROL | SEC_STD_WRITE_DAC;
+   io.ntcreatex.in.access_mask = SEC_STD_READ_CONTROL | SEC_STD_WRITE_DAC 
| SEC_STD_WRITE_OWNER;
io.ntcreatex.in.create_options = 0;
io.ntcreatex.in.file_attr = FILE_ATTRIBUTE_NORMAL;
io.ntcreatex.in.share_access = 
@@ -329,6 +329,9 @@
SEC_RIGHTS_FILE_READ | SEC_STD_ALL,
NULL);
 
+   set.set_secdesc.level = RAW_SFILEINFO_SEC_DESC;
+   set.set_secdesc.file.fnum = fnum;
+   set.set_secdesc.in.secinfo_flags = SECINFO_DACL;
set.set_secdesc.in.sd = sd;
status = smb_raw_setfileinfo(cli-tree, set);
CHECK_STATUS(status, NT_STATUS_OK);
@@ -484,7 +487,10 @@
io.generic.level = RAW_OPEN_NTCREATEX;
io.ntcreatex.in.root_fid = 0;
io.ntcreatex.in.flags = 0;
-   io.ntcreatex.in.access_mask = SEC_STD_READ_CONTROL | SEC_STD_WRITE_DAC;
+   io.ntcreatex.in.access_mask = 
+   SEC_STD_READ_CONTROL | 
+   SEC_STD_WRITE_DAC | 
+   SEC_STD_WRITE_OWNER;
io.ntcreatex.in.create_options = 0;
io.ntcreatex.in.file_attr = FILE_ATTRIBUTE_NORMAL;
io.ntcreatex.in.share_access = 
@@ -515,7 +521,7 @@
printf(testing generic bits 0x%08x\n, 
   file_mappings[i].gen_bits);
sd = security_descriptor_create(mem_ctx,
-   NULL, NULL,
+   owner_sid, NULL,
owner_sid,
SEC_ACE_TYPE_ACCESS_ALLOWED,
file_mappings[i].gen_bits,
@@ -523,7 +529,7 @@
 
set.set_secdesc.level = RAW_SFILEINFO_SEC_DESC;
set.set_secdesc.file.fnum = fnum;
-   set.set_secdesc.in.secinfo_flags = SECINFO_DACL;
+   set.set_secdesc.in.secinfo_flags = SECINFO_DACL | SECINFO_OWNER;
set.set_secdesc.in.sd = sd;
 
status = smb_raw_setfileinfo(cli-tree, set);
@@ -550,13 +556,56 @@
status = smb_raw_open(cli-tree, mem_ctx, io);
CHECK_STATUS(status, NT_STATUS_OK);
CHECK_ACCESS_FLAGS(io.ntcreatex.out.fnum, 
+  SEC_STD_READ_CONTROL | 
   SEC_STD_WRITE_DAC | 
-  SEC_STD_READ_CONTROL | 
   SEC_STD_DELETE | 
   SEC_FILE_READ_ATTRIBUTE |
   file_mappings[i].specific_bits);
smbcli_close(cli-tree, io.ntcreatex.out.fnum);
 
+
+   printf(testing generic bits 0x%08x (anonymous)\n, 
+  file_mappings[i].gen_bits);
+   sd = security_descriptor_create(mem_ctx,
+   SID_ANONYMOUS, NULL,
+   owner_sid,
+   SEC_ACE_TYPE_ACCESS_ALLOWED,
+   file_mappings[i].gen_bits,
+   NULL);
+
+   set.set_secdesc.level = RAW_SFILEINFO_SEC_DESC;
+   set.set_secdesc.file.fnum = fnum;
+   set.set_secdesc.in.secinfo_flags = SECINFO_DACL | SECINFO_OWNER;
+   set.set_secdesc.in.sd = sd;
+
+   status = smb_raw_setfileinfo(cli-tree, set);
+   CHECK_STATUS(status, NT_STATUS_OK);
+
+   sd2 = security_descriptor_create(mem_ctx,
+SID_ANONYMOUS, NULL,
+owner_sid,
+SEC_ACE_TYPE_ACCESS_ALLOWED,
+file_mappings[i].specific_bits,
+NULL);
+
+   status = smb_raw_fileinfo(cli-tree, mem_ctx, q);
+   CHECK_STATUS(status, NT_STATUS_OK);
+   if 

svn commit: samba r4063 - in branches/SAMBA_4_0/source: client include lib lib/messaging libcli libcli/raw libcli/util smb_server torture torture/basic torture/nbench torture/raw

2004-12-04 Thread metze
Author: metze
Date: 2004-12-04 13:56:25 + (Sat, 04 Dec 2004)
New Revision: 4063

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4063

Log:
- change char * - uint8_t in struct request_buffer

- change smbcli_read/write to take void * for the buffers to match 
read(2)/write(2)

all this fixes a lot of gcc-4 warnings

metze 

Modified:
   branches/SAMBA_4_0/source/client/client.c
   branches/SAMBA_4_0/source/include/request.h
   branches/SAMBA_4_0/source/include/smb_interfaces.h
   branches/SAMBA_4_0/source/lib/messaging/messaging.c
   branches/SAMBA_4_0/source/lib/time.c
   branches/SAMBA_4_0/source/libcli/climessage.c
   branches/SAMBA_4_0/source/libcli/clireadwrite.c
   branches/SAMBA_4_0/source/libcli/raw/clisession.c
   branches/SAMBA_4_0/source/libcli/raw/clisocket.c
   branches/SAMBA_4_0/source/libcli/raw/clitransport.c
   branches/SAMBA_4_0/source/libcli/raw/clitree.c
   branches/SAMBA_4_0/source/libcli/raw/rawdate.c
   branches/SAMBA_4_0/source/libcli/raw/rawfile.c
   branches/SAMBA_4_0/source/libcli/raw/rawnegotiate.c
   branches/SAMBA_4_0/source/libcli/raw/rawrequest.c
   branches/SAMBA_4_0/source/libcli/raw/rawsearch.c
   branches/SAMBA_4_0/source/libcli/raw/rawtrans.c
   branches/SAMBA_4_0/source/libcli/raw/smb_signing.c
   branches/SAMBA_4_0/source/libcli/util/smbencrypt.c
   branches/SAMBA_4_0/source/smb_server/negprot.c
   branches/SAMBA_4_0/source/smb_server/nttrans.c
   branches/SAMBA_4_0/source/smb_server/reply.c
   branches/SAMBA_4_0/source/smb_server/request.c
   branches/SAMBA_4_0/source/smb_server/search.c
   branches/SAMBA_4_0/source/smb_server/smb_server.c
   branches/SAMBA_4_0/source/smb_server/srvtime.c
   branches/SAMBA_4_0/source/torture/basic/aliases.c
   branches/SAMBA_4_0/source/torture/basic/denytest.c
   branches/SAMBA_4_0/source/torture/basic/locking.c
   branches/SAMBA_4_0/source/torture/basic/utable.c
   branches/SAMBA_4_0/source/torture/nbench/nbio.c
   branches/SAMBA_4_0/source/torture/raw/context.c
   branches/SAMBA_4_0/source/torture/raw/lock.c
   branches/SAMBA_4_0/source/torture/raw/open.c
   branches/SAMBA_4_0/source/torture/raw/read.c
   branches/SAMBA_4_0/source/torture/raw/seek.c
   branches/SAMBA_4_0/source/torture/raw/streams.c
   branches/SAMBA_4_0/source/torture/raw/write.c
   branches/SAMBA_4_0/source/torture/torture.c


Changeset:
Sorry, the patch is too large (1499 lines) to include; please use WebSVN to see 
it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4063


svn commit: samba r4064 - in branches/SAMBA_4_0/source/lib/registry/tools: .

2004-12-04 Thread metze
Author: metze
Date: 2004-12-04 14:28:06 + (Sat, 04 Dec 2004)
New Revision: 4064

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4064

Log:
use the same name for type on both ends

for long term we should remove all typedef's

metze

Modified:
   branches/SAMBA_4_0/source/lib/registry/tools/regpatch.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/registry/tools/regpatch.c
===
--- branches/SAMBA_4_0/source/lib/registry/tools/regpatch.c 2004-12-04 
13:56:25 UTC (rev 4063)
+++ branches/SAMBA_4_0/source/lib/registry/tools/regpatch.c 2004-12-04 
14:28:06 UTC (rev 4064)
@@ -154,7 +154,7 @@
  */
 static struct cmd_line *get_cmd_line(int fd)
 {
-  struct cmd_line *cl = smb_xmalloc_p(CMD_LINE);
+  CMD_LINE *cl = smb_xmalloc_p(CMD_LINE);
   int i = 0, rc;
   uint8_t ch;
 



svn commit: samba-docs r295 - in trunk/Samba-HOWTO-Collection: .

2004-12-04 Thread jht
Author: jht
Date: 2004-12-04 19:30:30 + (Sat, 04 Dec 2004)
New Revision: 295

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=295

Log:
Update path info.
Modified:
   trunk/Samba-HOWTO-Collection/BDC.xml


Changeset:
Modified: trunk/Samba-HOWTO-Collection/BDC.xml
===
--- trunk/Samba-HOWTO-Collection/BDC.xml2004-12-02 12:19:54 UTC (rev 
294)
+++ trunk/Samba-HOWTO-Collection/BDC.xml2004-12-04 19:30:30 UTC (rev 
295)
@@ -181,7 +181,8 @@
 indextermprimaryreplication/primarysecondarySAM/secondary/indexterm
 The account information (user and machine) on Domain Controllers is stored in 
two files,
 one containing the Security information and the other the SAM. These are 
stored in files
-by the same name in the filenameC:\Windows NT\System32\config/filename 
directory. These
+by the same name in the filename%SystemRoot%\System32\config/filename 
directory. 
+This normally translates to the path 
filenameC:\WinNT\System32\config/filename. These
 are the files that are involved in replication of the SAM database where 
Backup Domain
 Controllers are present on the network.
 /para



svn commit: samba r4065 - in branches/SAMBA_4_0/source/libcli/util: .

2004-12-04 Thread tridge
Author: tridge
Date: 2004-12-05 07:43:38 + (Sun, 05 Dec 2004)
New Revision: 4065

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4065

Log:
fixed ntstatus-dos error code for NT_STATUS_NO_SUCH_FILE






Modified:
   branches/SAMBA_4_0/source/libcli/util/errormap.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/util/errormap.c
===
--- branches/SAMBA_4_0/source/libcli/util/errormap.c2004-12-04 14:28:06 UTC 
(rev 4064)
+++ branches/SAMBA_4_0/source/libcli/util/errormap.c2004-12-05 07:43:38 UTC 
(rev 4065)
@@ -65,7 +65,7 @@
{ERRHRD,ERRgeneral, NT_STATUS_TIMER_NOT_CANCELED},
{ERRDOS,87, NT_STATUS_INVALID_PARAMETER},
{ERRDOS,ERRbadfile, NT_STATUS_NO_SUCH_DEVICE},
-   {ERRDOS,ERRbadfile, NT_STATUS_NO_SUCH_FILE},
+   {ERRDOS,ERRnofiles, NT_STATUS_NO_SUCH_FILE},
{ERRDOS,ERRbadfunc, NT_STATUS_INVALID_DEVICE_REQUEST},
{ERRDOS,38, NT_STATUS_END_OF_FILE},
{ERRDOS,34, NT_STATUS_WRONG_VOLUME},



svn commit: samba r4066 - in branches/SAMBA_4_0/source/libcli/util: .

2004-12-04 Thread tridge
Author: tridge
Date: 2004-12-05 07:53:57 + (Sun, 05 Dec 2004)
New Revision: 4066

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4066

Log:
add a mapping for NT_STATUS_NO_MORE_ENTRIES







Modified:
   branches/SAMBA_4_0/source/libcli/util/errormap.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/util/errormap.c
===
--- branches/SAMBA_4_0/source/libcli/util/errormap.c2004-12-05 07:43:38 UTC 
(rev 4065)
+++ branches/SAMBA_4_0/source/libcli/util/errormap.c2004-12-05 07:53:57 UTC 
(rev 4066)
@@ -51,6 +51,7 @@
NTSTATUS ntstatus;
 } ntstatus_to_dos_map[] = {
{ERRDOS,ERRnofiles, STATUS_NO_MORE_FILES},
+   {ERRDOS,ERRnofiles, NT_STATUS_NO_MORE_ENTRIES},
{ERRDOS,ERRgeneral, NT_STATUS_UNSUCCESSFUL},
{ERRDOS,ERRbadfunc, NT_STATUS_NOT_IMPLEMENTED},
{ERRDOS,87, NT_STATUS_INVALID_INFO_CLASS},



svn commit: samba r4067 - in branches/SAMBA_4_0/source/ntvfs/posix: .

2004-12-04 Thread tridge
Author: tridge
Date: 2004-12-05 07:58:58 + (Sun, 05 Dec 2004)
New Revision: 4067

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=4067

Log:
no matches in findnext is not an error








Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c 2004-12-05 07:53:57 UTC 
(rev 4066)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c 2004-12-05 07:58:58 UTC 
(rev 4067)
@@ -552,11 +552,6 @@
return status;
}
 
-   /* not matching any entries is an error */
-   if (reply_count == 0) {
-   return NT_STATUS_NO_MORE_ENTRIES;
-   }
-
io-t2fnext.out.count = reply_count;
io-t2fnext.out.end_of_search = pvfs_list_eos(dir, 
search-current_index) ? 1 : 0;