[Samba] net groupmap add questions

2004-10-26 Thread Ilia Chipitsine
ok, just to make it clear ...
1) what does net groupmap add do ?
2) can it be used with ldapsam ?
3) if I have local unix group and I want to create new domain group mapped 
to that unix group... do I have to explicity specify SID ? can anyone give 
me an example of correct usage net groupmap add ?

4) what type (local|domain|builtin) should I use in such case ?
5) how does it work ? by calling add group script command or not ?
Cheers,
Ilia Chipitsine
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba 3.0.7 and w2k terminal service

2004-10-26 Thread Stephen Borrill
On Mon, 25 Oct 2004, nick wrote:
 any one familyar with samba and w2k terminal services??

Yes, I've been using them together for some years (NT4 TSE before W2K).
However, as you'll see from the mailing list archives this month, I've
been having problems now I've moved to 3.0.7 from 2.2.8 as drives are
failing to be mapped. There have been no replies to my questions though.

-- 
Stephen


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


[Samba] Home directory

2004-10-26 Thread opk Bronislav
Dear All,
I want to ask you, if is posible to map users home directories from trusted
domain.

The problem is follow:
I want to map a user home directory from domainB when he log on computer which
is in domainA.

Is it possible?

Thank you.

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


[Samba] Stale NFS file handle

2004-10-26 Thread Mister Amazing
Trying to mount a shared folder in Windows server 2003. Fixed the hang problem but 
can't seem to work through the Stale NFS file handle problem. Has there been a 
work-around for this yet? 
 
Problem description:
 
Windows 2003
RedHat 9
Samba 3.0.7
 
mount -t smbfs //server.name/share.name /mnt/point -o username=uname,password=pword
 
Seems to mount ok, however when trying to access the contents of the share, e.g. cd to 
the /mnt/point and ls the files, I get a Stale NFS file handle
 
Any pointers would be appreciated.
 
Thanks.
 
Mister Amazing!


-
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Printing permissions problem

2004-10-26 Thread Manuel Capinha
What the about the users in the other groups, can they print ?

You should try looking into the cups logs and samba log, as those will
give you the answer to why this user can't print.

If you need, increase the verbose level in the smbd.conf with
Log level = 5

And in the cups cupsd.conf with
LogLevel debug


Hope this helps,
MC


On Mon, 25 Oct 2004 17:52:51 -0500, Misty Stanley-Jones
[EMAIL PROTECTED] wrote:
 OK, I just took my first non-root user live on my Samba 3.0.7 system.
 Printing is via cups, with drivers stored in the print$ share.  This user is
 a local power user.  She can add printers, or root can add them.  Root can
 also print from them.  If this user tries to print anything (a test page
 even) she gets a non-verbose error that looks like a permissions error.  She
 can view the queues and view all the printer properties though.
 
 I have even made her a member of the Print Operators group, to no avail.  I am
 at my wits' end!  Relevant sections follow:
 
 [global]
 ...
 printing = cups
 printcap = cups
 print command = /usr/bin/lpr -P %p -o raw %s -r
 load printers = yes
 ...
 include = printers.smb
 
 ### printers.smb file in entirety
 [print$]
 comment = Printer Drivers Share
 path = /data/samba/drivers
 write list = root
 printer admin = root
 browseable = no
 
 [printers]
 comment = All Printers
 path = /data/samba/spool
 public = yes
 guest ok = yes
 writeable = no
 printable = yes
 browseable = yes
 
 ## Specific printers that need extra permissions
 [acct_hp8500]
 copy = printers
 comment = Accounting Color Laser Printer
 path = /data/samba/spool/private
 public = no
 valid users = @acct @acct_admin @hr @receptionist @Domain Admins
 browseable = yes
 
 [plotter]
 copy = printers
 comment = Color Pen Plotter
 public = no
 valid users = @engr @truss @Domain Admins
 browseable = yes
 
 oink:/usr/local/samba/lib # net rpc group members hr
 Password:
 CORP1\cheri
 CORP1\carl
 
 (my user is cheri btw)
 
 oink:/usr/local/samba/lib # lpstat -a
 acct_hp8500 accepting requests since Jan 01 00:00
 engr_hp1300 accepting requests since Jan 01 00:00
 PDFcreator accepting requests since Jan 01 00:00
 plotter accepting requests since Jan 01 00:00
 truss_hp4 accepting requests since Jan 01 00:00
 truss_hp4050 accepting requests since Jan 01 00:00
 truss_hp5n accepting requests since Jan 01 00:00
 
 Any help is appreciated!
 
 Thanks,
 Misty
 --
 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


Re: [Samba] can't join domain / smbldap-useradd -w machine not working

2004-10-26 Thread Tomasz Chmielewski
John H Terpstra wrote:
Hi,
Set in your nsswitch.conf file:
hosts: files wins dns
Then see if the name resolution problem persists. If it does you need to
clean up TCP/IP configuration.
This really helped with lengthy logon times, thanks (so not really the 
topic of my post, but anyway)!


Additionally, did you run the following?
smbldap-populate -a root
Did you set the root password using the following?
   smbldap-passwd root
OK, this also helped - Samba-3 by Example implies that you have to use 
Administrator - after I tried to log to the domain using root, I was 
almost there.
Almost, because I also had to do one change in my smb.conf:

add machine script = /usr/local/sbin/smbldap-useradd -w '%u'
change to:
add machine script = /usr/local/sbin/smbldap-useradd -w '%m'
(note the %m).
I don't know why this guys make so misleading and buggy books/HOWTOs - 
even Samba-3 by Example, which is official Samba publication has these 
two bugs I mentioned!

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


[Samba] Yet another charset problem

2004-10-26 Thread Peter Hanappe
Hi,
I am well aware that the charset problem has been discussed many times
over. But after two days of googling and testing, I did not make any
progress.  I am mounting Windows XP Pro shares with french filenames
on a Linux.  The linux is a 2.4.27 kernel with the following settings:
CONFIG_SMB_FS=y
CONFIG_SMB_NLS_DEFAULT=y
CONFIG_SMB_NLS_REMOTE=UTF8
CONFIG_SMB_NLS=y
CONFIG_NLS=y
CONFIG_NLS_DEFAULT=UTF8
CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_UTF8=y
I am using smbmount version 3.0.7-Debian. I am creating new files on
the windows machine (with french accents) then mount the share on
Linux and do an 'ls'. So far, the output from 'ls' replaces the
accents with a '?'. Below are all the combinations of settings I have
tried so far.
Any hints are more than welcome!
Many thanks,
Peter
===
smb.conf:
[global]
# unix charset not specified
# display charset not specified
# dos charset not specified
smbmount # no options
smbmount -o iocharset=iso8859-1
smbmount -o codepage=cp850
smbmount -o codepage=utf8
smbmount -o iocharset=utf8
===
smb.conf:
[global]
unix charset = UTF8
display charset = UTF8
dos charset = cp850
smbmount # no options
smbmount -o codepage=cp850
smbmount -o codepage=utf8
smbmount -o iocharset=utf8
smbmount -o iocharset=iso8859-1
===
smb.conf:
[global]
unix charset = ISO8859-1
display charset = ISO8859-1
dos charset = cp850
smbmount # no options
smbmount -o iocharset=iso8859-1
smbmount -o iocharset=iso8859-1 codepage=utf8
smbmount -o iocharset=iso8859-1 codepage=cp850
===
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Yet another charset problem

2004-10-26 Thread Holger Krull
First, on Windows what does chcp tell you ?
Second what is your LANG setting on linux?
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Yet another charset problem

2004-10-26 Thread Peter Hanappe
Holger Krull wrote:
First, on Windows what does chcp tell you ?
Active code pages: 850
Second what is your LANG setting on linux?
LANG is not set
Thanks,
P
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Yet another charset problem

2004-10-26 Thread Holger Krull
First, on Windows what does chcp tell you ?
Active code pages: 850
So we know now that
dos charset=cp850
Second what is your LANG setting on linux?
LANG is not set
Does locale produce any useful output?
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Yet another charset problem

2004-10-26 Thread Peter Hanappe
Holger Krull wrote:
Second what is your LANG setting on linux?
LANG is not set
Does locale produce any useful output?
No, LOCALE is not set neither.
Thanks again,
P
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] APW printing defaults : protection fault 0x6a90450e: version 3.0.7-Debian

2004-10-26 Thread Tom Schutzer-Weissmann
Trying to use SAMBA as a print server for Windows clients, I have
managed to share the printers, but following the setup procedure on the
clients I always get a protection fault when I try to open the printing
defaults part of the Add Printer Wizard in XP.

Function address 0x6a90450e caused a protection fault (exception code
0xc005). Some or all property page(s) may not be displayed

A lot of googling has proved inconclusive, except a mail saying this was
a known bug and suggesting an upgrade to version 3.0.0, but I am using
3.0.7!

On log level 2 there is no sign of any error, only files being opened
and closed. On log level 3 no error either.


My config file is below - thanks in advance!
Tom


[global]
   panic action = /usr/share/samba/panic-action %d
   printing = cups
   printcap name = cups
   load printers = yes

   use sendfile = no
   guest account = smbprint
 ;  invalid users = root
   security = user
   map to guest = bad user
   workgroup = PCB
log level = 2
   server string = %h server (Samba %v)
   syslog only = no
   syslog = 0;
   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096
SO_RCVBUF=4096
   encrypt passwords = true
   passdb backend = smbpasswd guest
   wins support = no
   wins server = 192.168.254.2
   domain master = no
   name resolve order = lmhosts host wins bcast
   dns proxy = no
   preserve case = yes
   short preserve case = yes
   unix password sync = false
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n .
   max log size = 1000
   obey pam restrictions = yes
 unix charset = iso-8859-15
 display charset = iso-8859-15
 dos charset = 850
 oplocks = No
 level2 oplocks = No
[homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0700
   directory mask = 0700
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = no
   guest ok = yes
   read only = yes
   write list = root
[printers]
   printer admin = root
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = yes
   writable = no
   create mode = 0700



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


[Samba] Problem with time_t values returned by getattrE

2004-10-26 Thread Satwik Hebbar
Hi,
I am using Samba-3.0.7 on a RH9.0 box and trying to connect to a volume  
(on a Windows 2003 server) supporting SMB. Everything works fine, I can  
open files, read them, etc. However, I tried 2 different actions on a file  
on the volume :
1) I do a getattrE call and obtain the time_t values for a_time, c_time,  
m_time.

attribute 32
a_time 2433474185
m_time 2600589349
filesize 15778
c_time 2167069703
2) I mount the volume and do a stat on the same file.
(33261, 64L, 10L, 1, 0, 0, 15778L, 1098707904, 995723644, 1056364762)
The stat tuple has the time_t values as the last three values on the list.
As you can see, I expect them to return the same numbers, but that is not  
the case. Can anyone tell me what's happening? Or is there some function I  
must call to convert the numbers to the proper format?

Thanks in advance,
Satwik Hebbar,
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] APW printing defaults : protection fault 0x6a90450e: version 3.0.7-Debian

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tom Schutzer-Weissmann wrote:
| Trying to use SAMBA as a print server for Windows
| clients, I have managed to share the printers, but following the
| setup procedure on the clients I always get a protection fault
| when I try to open the printing defaults part of the Add
| Printer Wizard in XP.
|
| Function address 0x6a90450e caused a protection fault
| (exception code 0xc005). Some or all property page(s)
| may not be displayed
|
| A lot of googling has proved inconclusive, except a
| mail saying this was a known bug and suggesting an upgrade
| to version 3.0.0, but I am using 3.0.7!
|
| On log level 2 there is no sign of any error, only files
| being opened and closed. On log level 3 no error either.
This is often caused by either a NULL device mode for
the printer or a buggy driver.  You can set
'default devmode = yes' to try to work around the NULL
devmode issue and then follow the intructions in the HOWTO
for initializing the printer.


cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBfkjtIR7qMdg1EfYRAsVvAJ4372Uj4oYr9zkJn+pkgEfUsjep3wCgjNkR
rOyuwHcKwSy9Yan7n58Bw8o=
=Gnht
-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] Dreaded ERROR 5 In Robocopy

2004-10-26 Thread Chris Laco
I'm still battling the dreaded ERROR 5 (0x0005) error when trying to
robocopy files from a W2K box to Samba 3.0.7 on FreeBSD.
I've been fighting this since Samba 2.2.8 and the upgrade hasn't fixed it
for me despite the entries in the changlelog.

Now here's the strange part. If robocopy is sending NEW files, files which
are on W2K but not on the Samba box, the copy proceeds just fine. If
robocopy is trying to replace an older file on Samba with a newer file from
W2K, it will copy the file and bail at 97% with the ERROR 5 message.

To make matters worse, if I map a drive from the W2K box to the Samba server
using the same user name the robocopy is running as, new files work, deletes
work, and overwrites work. That leads me to believe it's not a
directory/file permissions issue.

At this point I'm way stumped.

Here's the share config:

[Inetpub]
comment =   Internet Storage
path=   /home/www/wwwroot
public  =   yes
writeable   =   yes
printable   =   no
force group =   developers
directory mode  =   0775
create mode =   0664
valid users =   +developers automated
default case=   lower
preserve case   =   no


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


Re: [Samba] Samba 3.0.7 is broken

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
ODC wrote:
| I'm running Debian woody with all stable packages w/e to samba which is
| from the backports collection.
|
| Basically 3.0.5 works, 3.0.6 and 3.0.7 do not.
|
| By not working, I mean connecting from a windows workstation results in
| a login and password prompt and a 'Failed to verify incoming ticket'
| error in the logs.  This behaviour occurs with accessing it via
| \\hostname\; when its accessed via \\ip-address\, it works perfectly.
Look at BUG # 1717 for hints.  It's due to some kerberos
changes we're still looking into.


cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBfkrvIR7qMdg1EfYRAvSPAKDOXEgsJhcc5tXIBbVYrcV4mTayFwCg7uUY
eOxFltNqTJPaMdtQdYfNbuQ=
=Zzqu
-END 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] how is Samba 3.x advertising itself to Windows clients across LAN, WAN ?

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Brian M wrote:
| We recently installed Samba 3.x server on Linux
| system (RHEL 3.0, using stock RH samba packages).
|
| We are observing following messages in logs:
|   lib/access.c:check_access(328)
| and access is denied. I know why we get access
| denied: we have restricted hosts allow = setting.
| My question is: why are we getting connection requests
| in first place? I think something is advertising this
| system, but what? And how do we turn off?
This is probably due to browse list syncrhonization.
try setting the os level = 0 and local master = no
(assuming this is a standalone file/print server).

cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBfkuWIR7qMdg1EfYRAsFDAKC0ZP98+3HAbszQTti0zDntpGegzgCfVB7N
o6/8WyYCoQJmA9K5CtUHE9s=
=agfM
-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] File Locking

2004-10-26 Thread Nicolas Bottarini
Hi

In my enterprise we have our php web projects in a Linux server.
We are using Samba shared folders to access the source code. The problem
that I'm having is that I need a mechanism to control de access of the files
so that 2 developers working on the same project can't open the same file
for writing at the same time. The only thing that I found for this is using
Frontpage extensions, but I hate to use Interdev as the editor. I would like
that all developers uses the editor of their preference.

I thought that maybe it was a good idea to use samba for this purpose. If I
can achieve this, it will be transparent to the developer. 

If it can be done by configuring samba it would be great. Or maybe there's a
way to extend samba, I don't know if there's a way to do this.

 

Thank you very much

 

Nicolas

 

Pd: Sorry for my English, I'm from Argentina.

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


Re: [Samba] APW printing defaults : protection fault 0x6a90450e: version 3.0.7-Debian

2004-10-26 Thread Tom Schutzer-Weissmann
On Tue, 2004-10-26 at 13:54, Gerald (Jerry) Carter wrote:

 This is often caused by either a NULL device mode for
 the printer or a buggy driver.  You can set
 'default devmode = yes' to try to work around the NULL
 devmode issue and then follow the intructions in the HOWTO
 for initializing the printer.

I'm confused - I was using the APW as root to try and set the device
mode, following the instructions!

With default devmode = yes, I get the same problem. cupsaddsmb is still
installing the drivers into the 2 subdir, instead of the 3 - perhaps I
should change that?

Thanks,
Tom

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


RE: [Samba] File Locking

2004-10-26 Thread Nicolas Bottarini
We don't use source control because we work directly on server. If we use
CVS each programmer have to work locally and we don't want that to happen.
I would like to use a source control product, I only tried CVS and it has
that problem.
Why do you say that is more productive to work on the same file?? We are
developing web apps so it can be very dangerous that 2 guys work on the same
php file. 
I don't know what to do...

Nicolas

-Mensaje original-
De: Chris Laco [mailto:[EMAIL PROTECTED] 
Enviado el: Tuesday, October 26, 2004 10:21 AM
Para: 'Nicolas Bottarini'
Asunto: RE: [Samba] File Locking

Let's me play devils advocate for a minute and I'll try to keep it short.
What source control product do you use?

Why can't two people work on the same file at the same time? It's more
productive that way, and that's what good Merge functions are for in CVS and
the like. It's rare that two people are actually working on the same
problem, at the same time, in the same file.

-=Chris

-Original Message-
From: Nicolas Bottarini [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 26, 2004 9:19 AM
To: [EMAIL PROTECTED]
Subject: [Samba] File Locking

Hi

In my enterprise we have our php web projects in a Linux server.
We are using Samba shared folders to access the source code. The problem
that I'm having is that I need a mechanism to control de access of the files
so that 2 developers working on the same project can't open the same file
for writing at the same time. The only thing that I found for this is using
Frontpage extensions, but I hate to use Interdev as the editor. I would like
that all developers uses the editor of their preference.

I thought that maybe it was a good idea to use samba for this purpose. If I
can achieve this, it will be transparent to the developer. 

If it can be done by configuring samba it would be great. Or maybe there's a
way to extend samba, I don't know if there's a way to do this.

 

Thank you very much

 

Nicolas

 

Pd: Sorry for my English, I'm from Argentina.

--
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


Re: [Samba] Samba 3.0.7 is broken

2004-10-26 Thread Kenneth Marshall
On Tue, Oct 26, 2004 at 08:02:39AM -0500, Gerald (Jerry) Carter wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 ODC wrote:
 | I'm running Debian woody with all stable packages w/e to samba which is
 | from the backports collection.
 |
 | Basically 3.0.5 works, 3.0.6 and 3.0.7 do not.
 |
 | By not working, I mean connecting from a windows workstation results in
 | a login and password prompt and a 'Failed to verify incoming ticket'
 | error in the logs.  This behaviour occurs with accessing it via
 | \\hostname\; when its accessed via \\ip-address\, it works perfectly.
 
 Look at BUG # 1717 for hints.  It's due to some kerberos
 changes we're still looking into.
 
 
We had a similar problem with 3.0.7 where hostname based authentication
failed, but IP based succeeded. The problem was an incorrect krb5.conf
file in our case. The specific lines that were missing were (from the
HowTo):

[domain_realms]
.kerberos.server = YOUR.KERBEROS.REALM

For whatever reason, the earlier version managed to work without
those lines. Just another data point.

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


Re: [Samba] APW printing defaults : protection fault 0x6a90450e: version 3.0.7-Debian

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tom Schutzer-Weissmann wrote:
| I'm confused - I was using the APW as root to try
| and set the device mode, following the instructions!
What I meant was that often the GPF in explorer.exe or
the client spooler prevents you from initializing the
printer at all.  The 'default devmode' suggestion
would hopefully help you work around this check-and-egg
problem.
| With default devmode = yes, I get the same problem.
Can you send me a copy of the drivers (in a tarball, zipfile,
or *.exe ) off list ?
| cupsaddsmb is still installing the drivers into the 2 subdir,
| instead of the 3 - perhaps I should change that?
No.  The 2  3 directories should be manage by smbd.



cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBflKBIR7qMdg1EfYRAv6oAKDcObrjKu3GJ7n01a9ke6pJxhYD+QCgk7QZ
WP3sVz7JxSqsuj73Sh1H17g=
=gG38
-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] RE: Dreaded ERROR 5 In Robocopy

2004-10-26 Thread Chris Laco
I do hereby declare robocopy.exe a child of the devil.
If I replace robocopy.exe with xcopy.exe and copy the same directory,
everything copied and overwrote files just dandy.

I don't know what that damn program does, but Samba doesn't like it at all
apparently.

-=Chris

-Original Message-
From: Chris Laco 
Sent: Tuesday, October 26, 2004 9:03 AM
To: '[EMAIL PROTECTED]'
Subject: Dreaded ERROR 5 In Robocopy

I'm still battling the dreaded ERROR 5 (0x0005) error when trying to
robocopy files from a W2K box to Samba 3.0.7 on FreeBSD.
I've been fighting this since Samba 2.2.8 and the upgrade hasn't fixed it
for me despite the entries in the changlelog.

Now here's the strange part. If robocopy is sending NEW files, files which
are on W2K but not on the Samba box, the copy proceeds just fine. If
robocopy is trying to replace an older file on Samba with a newer file from
W2K, it will copy the file and bail at 97% with the ERROR 5 message.

To make matters worse, if I map a drive from the W2K box to the Samba server
using the same user name the robocopy is running as, new files work, deletes
work, and overwrites work. That leads me to believe it's not a
directory/file permissions issue.

At this point I'm way stumped.

Here's the share config:

[Inetpub]
comment =   Internet Storage
path=   /home/www/wwwroot
public  =   yes
writeable   =   yes
printable   =   no
force group =   developers
directory mode  =   0775
create mode =   0664
valid users =   +developers automated
default case=   lower
preserve case   =   no


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


Re: [Samba] winbind cache / lockout

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ben Kim wrote:
| Is it possible to cache the windows password on unix
| server so that it doesn't have to query windows server
| every time?
Not currently.


cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBfli2IR7qMdg1EfYRAofLAKCiV1b1ajy2+vVd6e1LliEoFZcuuQCgjp6S
jVM8XfFuA4dM4+aMFE2Op1A=
=x3VK
-END 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] largosh printing patch for Samba 3.0.7

2004-10-26 Thread Hansjoerg Maurer
Hi
i have tried these Patches on our samba 3.0.7 (Cups 1.20, Solaris 8) 
installation

Here some observations
The problem with the queue updated disappeard imediately
Our printserver (with netbios name printserver and IP 129.247.189.2) 
shows the printers as
printername at printserver

But clients who had connected printers during the time when samba 3.0.7 
shows a name
like
printername at 129.247.189.2
keep this name
I am unable to remove the connections to these printers from the client 
to server as normal user.
There is an error like no such printer on printserver,
but printing is possible to this printer !!!

I don't now, if this is just a wired W2k and XP caching behavior, or if 
there still is a problem.

I noticed, that if I connect some printers after the Patch Update,
they still connect as
printername at 129.247.189.2
But after renewing the driver on the server (cupsaddsmb)
the connection works as
printername at printserver
Thank you very much
Hansjörg

Gerald (Jerry) Carter wrote:
For anyone interested in testing some printing fixes:
I've just uplaoded a moderate sized patch for Samba 3.0.7
that addresses the following bugs:
https://bugzilla.samba.org/show_bug.cgi?id=1519
https://bugzilla.samba.org/show_bug.cgi?id=1679
Both fixes have been checked in for incusion in
the next 3.0.8 preview release.
The patch for 3.0.7 can be found at
http://samba.org/~jerry/patches/post-3.0.7/printername_and_queue_update.patch

cheers, jerry
-
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)

--
_
Dr.  Hansjoerg Maurer   | LAN-  System-Manager
   |
Deutsches Zentrum   | DLR Oberpfaffenhofen
 f. Luft- und Raumfahrt e.V.   |
Institut f. Robotik |
Postfach 1116   | Muenchner Strasse 20
82230 Wessling  | 82234 Wessling
Germany |
   |
Tel: 08153/28-2431  | E-mail: [EMAIL PROTECTED]
Fax: 08153/28-1134  | WWW: http://www.robotic.dlr.de/
__
There are 10 types of people in this world,
those who understand binary and those who don't.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Kerberos vs NTLM 0.12 in Samba log files...

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
[EMAIL PROTECTED] wrote:
| Hi,
|
| I am trying to make Samba 3.0.7 work with ADS security mode.
| In the Win2K3 server's Event Viewer, I see the client's logon.
| In that log entry's properties, I see that the logon process
| used is Kerberos. However, in the Samba log files, the protocol
| selected is NTLM 0.12
This is the CIFS protocol dialect selected and not
the authentication mechanism used.
| and I see a lot of Samba log entries regarding NTLM
| authentication, nothing about Kerberos or
| KRB5.
Look in a level 10 debug log for the phrase SPNEGO and
the authentication details should be there.
Or you can just use etheereal to look at the traffic.

cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBfl/YIR7qMdg1EfYRAuM3AJ9zWJPpGjkChul+2D8sB19HegfBwwCg4jfT
kRT9JWDl//VQa4gd9+zAhFQ=
=CqCf
-END 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] cups related error messages

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Günter Gersdorf wrote:
| I'm using Samba 3.0.7 with the printername_and_queue_update.patch
| (http://samba.org/~jerry/patches/post-3.0.7) from Jerry and
| cups as the print spooler.
|
| For every printer, where the samba printername and the
| cups printer name  differs, i get errormessages like
| the following:
|
| [2004/10/25 16:30:00, 0] printing/print_cups.c:cups_queue_get(900)
|   Unable to get jobs for ipp://localhost/printers/SA-SW -
| client-error-not-found
|
| This is correct so far, the conf file says
|
| [SA-SW]
| ...
|   printer name = sasw
|
| so the uri should be
|   ipp://localhost/printers/sasw
ok.  My bug.  I'll get this fixed before 3.0.8.  I know where
I messed up.


cheers, jerryh
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBfmAFIR7qMdg1EfYRAicfAKDqdNOLPJxX3a2N1ph14iZdZyQm2wCfVRTc
1svWmOuKymqgpVk+/GpYJcU=
=0D0O
-END 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] largosh printing patch for Samba 3.0.7

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hansjoerg Maurer wrote:
| i have tried these Patches on our samba 3.0.7 (Cups
| 1.20, Solaris 8) installation
|
| Here some observations
|
| The problem with the queue updated disappeard imediately
| Our printserver (with netbios name printserver and IP
| 129.247.189.2) shows the printers asprintername at printserver
good.
| But clients who had connected printers during the time
| when samba 3.0.7 shows a name like printername at
| 129.247.189.2 keep this name I am unable to remove the connections
| to these printers from the client to server as normal user.
| There is an error like no such printer on printserver,
| but printing is possible to this printer !!!
Can you send me a level 10 debug level of this ?
The worst case scenario is that you will have to clear
the windows spooler cache.
| I noticed, that if I connect some printers after the
| Patch Update, they still connect as printername at 129.247.189.2
|
| But after renewing the driver on the server (cupsaddsmb)
| the connection works as printername at printserver
Probably more client spooler caching issues.



cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBfmEUIR7qMdg1EfYRAvnbAKDWjCMuWIOSKVUqAXa3qhMQvH27zQCgoDms
8lWrkOXAhXbXu2QY7IY5FAs=
=zlRp
-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] xpsp2 clients authenticate, W2ksp4 clients must use IP or FQDN

2004-10-26 Thread samba
Hi,

I have an interesting issue.  I’m running a redhat 9 box with samba 3.0.7,
and Kerberos 1.3.1.  I’ve joined the machine to the AD2k3 domain, and all
the informational commands respond as expected, getent's, wbinfo –g –t,
and net ads*** and also 'smbclient -k //otherdomainserver/share' works as
it should from the server's terminal.

when connecting to the server with a windows XPsp2 client, it works as it
should.  The log in /var/log/samba/  is written as
“log.’clientmachinename’
snip--
adc020601-069 (138.127.101.159) connect to service prod initially as user
US+dussaulta (uid=0, gid=71750) (pid 18216)
[2004/10/26 10:48:05, 1] smbd/service.c:close_cnum(837)
  adc020601-069 (138.127.101.159) closed connection to service prod
---snip--


When I use a win2ksp4 client, using the samba servers short name. it fails
to authenticate, and prompts for username and password.  The log gets
written as “log.ip.ip.ip.ip”
Inside that log are 4
---snip---
[2004/10/26 10:44:15, 1] smbd/sesssetup.c:reply_spnego_kerberos(173)
  Failed to verify incoming ticket!
---snip---


When I use a win2ksp4 client using the samba server IP or FQDN, it behaves
like the XP client.  And I can manage the samba shares with the mmc
snap-in, see my connected sessions, and connect to the shares.
---snip---
more log.adc040415-025
[2004/10/26 10:40:50, 1] smbd/service.c:make_connection_snum(648)
  adc040415-025 (138.127.102.131) connect to service prod initially as
user US+Cantalupor (uid=70001, gid=71760) (pid 18203)
---snip---

otherwise, the log.winbindd is clean except for the one
---snip---
[2004/10/26 10:19:00, 1] libsmb/clikrb5.c:ads_krb5_mk_req(313)
  krb5_cc_get_principal failed (No credentials cache found)
---snip---
 when I start winbind.

Am I missing anything obvious here?

I can post my config files if someone wants to take a look at them.
also, I can run any tests that you might think will be helpful.
Thanks

Fred

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


Re: [Samba] Printing permissions problem

2004-10-26 Thread Misty Stanley-Jones
On Monday 25 October 2004 17:52, Misty Stanley-Jones wrote:

 If this user tries to print anything (a test
 page even) she gets a non-verbose error that looks like a permissions
 error.  She can view the queues and view all the printer properties though.


The problem here was permissions of the samba print spool.  It would be nice 
if Samba threw a more verbose error message on encountering this.

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


[Samba] access 2003 clients can't print to samba 3 server (

2004-10-26 Thread Chris Fogarty
We have the same problem with samba and access 2003. Have you figured
our how to solve this?

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


[Samba] Third party LDAP as backend

2004-10-26 Thread ljerem
Hi,
I'm planning a Samba3 new installation. I need to make Samba interact with
a third party directory server (it's a standard implementation that can be
accessed with ldapsearch, ldapadd, etc). Is it possible to use ldapsam
with an LDAP directory that's not running under OpenLDAP? If not, is there
any replication tool, so that, at least I'm able to replicate
user/password account information from the DS to some local Samba backend?
And another one: what's the recommended backend for a single PDC
infrastructure and less than 200 users?

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


[Samba] Shares not visible from Win2k

2004-10-26 Thread Michael Long
Hi,

Please forgive such a simple question. I have installed Samba using SWAT to
configure it. The shares user are visible on the box hosting the Samba server using
smbclient -L hostname and I can connect to the share using smbclient
//edev/mlong -U sharename

When browsing network neighborhood on a Win2K machine the Server is visible but the
shares are not available. Attempting to map a drive using net use f:
\\hostname\sharename fails.

What have I failed to configure?

Environment:
  Simple network (no PDC)
  Samba Server 3.0 (SuSE 9.1)
  Windows Client (Windows 2K Server)

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


Re: [Samba] Samba 3.0.7 is broken

2004-10-26 Thread Farkas Levente
Kenneth Marshall wrote:
On Tue, Oct 26, 2004 at 08:02:39AM -0500, Gerald (Jerry) Carter wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
ODC wrote:
| I'm running Debian woody with all stable packages w/e to samba which is
| from the backports collection.
|
| Basically 3.0.5 works, 3.0.6 and 3.0.7 do not.
|
| By not working, I mean connecting from a windows workstation results in
| a login and password prompt and a 'Failed to verify incoming ticket'
| error in the logs.  This behaviour occurs with accessing it via
| \\hostname\; when its accessed via \\ip-address\, it works perfectly.
Look at BUG # 1717 for hints.  It's due to some kerberos
changes we're still looking into.

We had a similar problem with 3.0.7 where hostname based authentication
failed, but IP based succeeded. The problem was an incorrect krb5.conf
file in our case. The specific lines that were missing were (from the
HowTo):
[domain_realms]
.kerberos.server = YOUR.KERBEROS.REALM
For whatever reason, the earlier version managed to work without
those lines. Just another data point.
we has this line in krb5.conf, but still has the bug. anyway the BUG 
#1717 has a patch from redhat which seems to fix the problem. why the 
samba team do not use that patch?

--
  Levente   Si vis pacem para bellum!
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3.0.7 is broken

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Farkas Levente wrote:
|
| we has this line in krb5.conf, but still has the bug.
| anyway the BUG #1717 has a patch from redhat which seems to
| fix the problem. why the  samba team do not use that patch?
We're reviewing the patch.


cheers, jerry
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBfnwaIR7qMdg1EfYRAmV0AJ4/C98a6ky/SCKY9qxVq+ilZIrurgCgxqeM
JFPqSYXhjDcorFoOvKSeHrs=
=2m2P
-END 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] Third party LDAP as backend

2004-10-26 Thread Adam Tauno Williams
 I'm planning a Samba3 new installation. I need to make Samba interact with
 a third party directory server (it's a standard implementation that can be
 accessed with ldapsearch, ldapadd, etc). Is it possible to use ldapsam
 with an LDAP directory that's not running under OpenLDAP? 

Yes; I've communicated with people using both NDS and SW.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Hangs trying to lock locking.tdb ?

2004-10-26 Thread Dave Gilbert (Home)
Hi,
  server Kernel: Linux 2.4.21
  server Samba: 2.2.3a-12.3 from Debian package
  Client  : Win2k ( XP?)
We have a problem where when someone browses a directory on a share they 
see a LONG (~1 minute?) pause.  The server is very lightly loaded.  This 
doesn't seem to happen if they are logged on as nobody/guest, only if 
they are logged on as a user; it happens for multiple people from 
multiple clients.  The data is stored on a local ext3 filesystem to the 
Samba server.

On examining the server it looks like there are a lot of smbd's running 
for each user who observes the problem; and in the logs there are 
multiple 'connect to service ... as user ...' with differnt PIDs
and the gaps between them may well correspond to about the length of the 
pauses; there is no close between the multiple 'connect' lines.  The 
older process still exists.

So I'm assuming something times out and tries for another connection.
An ethereal trace shows a NT CREATE packet and then very little else 
from the server for the gap and then it looks like it relogs on.

So I took strace to the older of the processes and found it is stuck in:
 fcntl64(13, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=284, 
len=1} unfinished ...

13 corresponds to locking.tdb; this file is also on a local (ext3) 
filesystem.

smbstatus shows many open services for the afflicted users but no locked 
files.

 Is this a known problem known to be fixed in a later version? I can't 
see any comments along those lines in the Debian changelogs for the 
Woody version of Samba; I'd be happy to update to something else if 
there was a reasonable confidence it was a known fixed issue.

 Suggestions on how to debug this further would be welcome.
Thanks in advance,
Dave
P.S. I'd appreciate a cc on the reply but I'll poll the list.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba 3.0.7 is broken

2004-10-26 Thread ODC
Kenneth Marshall wrote:
We had a similar problem with 3.0.7 where hostname based authentication
failed, but IP based succeeded. The problem was an incorrect krb5.conf
file in our case. The specific lines that were missing were (from the
HowTo):
[domain_realms]
.kerberos.server = YOUR.KERBEROS.REALM
For whatever reason, the earlier version managed to work without
those lines. Just another data point.
--Ken
I tried that, no dice.
Since you guys and gals are looking after it, I'll just sit tight for 
the next rev to be patched.

Here is my krb5.conf:
=krb5.conf=
[libdefaults]
default_realm = SAMBA.LOCAL
default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc des-cbc-md5
default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc des-cbc-md5
permitted_enctypes = des3-hmac-sha1 des-cbc-crc des-cbc-md5
krb4_config = /etc/krb.conf
krb4_realms = /etc/krb.realms
kdc_timesync = 1
ccache_type = 4
forwardable = true
proxiable = true
[login]
krb4_convert = true
krb4_get_tickets = true
[realms]
SAMBA.LOCAL = {
kdc = 66.70.73.150
admin_server = 66.70.73.150
default_domain = SAMBA.local
}
[domain_realm]
.SAMBA.local = SAMBA.LOCAL
a-whistler.SAMBA.local = SAMBA.LOCAL
.SAMBA.org = SAMBA.LOCAL
a-whistler.SAMBA.org = SAMBA.LOCAL
=/end=
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Specified user does not exist. Huh?!

2004-10-26 Thread Christopher . Patricca

Ok folks I’m at my wit’s end here as I cannot seem to join the domain I
setup under Samba version 3.0.7. Every time I try and join the domain
with a user that has the power to add a machine to the domain it just
says that the user does not exist. This happens with all accounts which
I have specified in the smb.conf file as a user that can do this
function. I have added those users via smbpasswd –a username as well
as username –g admin username and they do show up in the smbpasswd
file. Here’s what appears in my smbd.log file:



smbd version 3.0.7 started.

  Copyright Andrew Tridgell and the Samba Team 1992-2004

[2004/10/26 11:29:50, 0] param/loadparm.c:map_parameter(2435)

  Unknown parameter encountered: domain admin group

[2004/10/26 11:29:50, 0] param/loadparm.c:lp_do_parameter(3125)

  Ignoring unknown parameter domain admin group

[2004/10/26 11:29:50, 0] param/loadparm.c:map_parameter(2435)

  Unknown parameter encountered: domain admin user

[2004/10/26 11:29:50, 0] param/loadparm.c:lp_do_parameter(3125)

  Ignoring unknown parameter domain admin user

[2004/10/26 11:29:50, 2] param/loadparm.c:do_section(3407)

  Processing section [netlogon]



And here’s what’s in my smb.conf file:



[global]



Netbios name = Server

Server string = PDC

Workgroup = HOMEUSE

Passdb backend = smbpasswd

os level = 33

preferred master = yes

domain master = yes

local master = yes

domain logons = yes

hide dot files = yes

security = user

invalid users = bin daemon sys man postfix mail ftp

domain admin group = @admin

domain admin user = root

encrypt passwords = yes

log level = 2

log file = /var/log/samba/log.%L

max log size = 1000

debug timestamp = yes

syslog = 1

add user script = /usr/sbin/useradd –d /dev/null –g 100 –s
/bin/false –m %u



[netlogon]



path = /home/samba/netlogon

read only = yes

write list = @admin



Here’s what appears in my logfile (changed loglevel to 5 for this)



[2004/10/26 11:43:15, 3] smbd/process.c:switch_message(887)

  switch message SMBtrans (pid 8613) conn 0x83a6130

[2004/10/26 11:43:15, 3] smbd/sec_ctx.c:set_sec_ctx(288)

  setting sec ctx (0, 502) - sec_ctx_stack_ndx = 0

[2004/10/26 11:43:15, 5] auth/auth_util.c:debug_nt_user_token(491)

  NT user token of user S-1-5-21-1861440459-1144414950-1732935726-2008

  contains 5 SIDs

  SID[  0]: S-1-5-21-1861440459-1144414950-1732935726-2008

  SID[  1]: S-1-5-21-1861440459-1144414950-1732935726-2005

SID[  2]: S-1-1-0

  SID[  3]: S-1-5-2

  SID[  4]: S-1-5-11

[2004/10/26 11:43:15, 5] auth/auth_util.c:debug_unix_user_token(505)

  UNIX token of user 0

  Primary group is 502 and contains 1 supplementary groups

  Group[  0]: 502

[2004/10/26 11:43:15, 5] smbd/uid.c:change_to_user(281)

  change_to_user uid=(0,0) gid=(0,502)

[2004/10/26 11:43:15, 3] smbd/ipc.c:reply_trans(538)

  trans \PIPE\ data=44 params=0 setup=2

[2004/10/26 11:43:15, 5] smbd/ipc.c:reply_trans(557)

  calling named_pipe

[2004/10/26 11:43:15, 3] smbd/ipc.c:named_pipe(334)

  named pipe command on  name

[2004/10/26 11:43:15, 5] smbd/ipc.c:api_fd_reply(267)

  api_fd_reply

[2004/10/26 11:43:15, 4] rpc_server/srv_pipe_hnd.c:get_rpc_pipe(1170)

  search for pipe pnum=7517

[2004/10/26 11:43:15, 5] rpc_server/srv_pipe_hnd.c:get_rpc_pipe(1174)

  pipe name lsarpc pnum=7517 (pipes_open=1)



Another section:



[2004/10/26 11:43:16, 5] smbd/uid.c:change_to_root_user(296)

  change_to_root_user: now uid=(0,0) gid=(0,0)

[2004/10/26 11:43:16, 3] smbd/service.c:close_cnum(837)

  chris (192.168.2.101) closed connection to service IPC$

[2004/10/26 11:43:16, 3] smbd/connection.c:yield_connection(69)

  Yielding connection to IPC$

[2004/10/26 11:43:16, 4] smbd/vfs.c:vfs_ChDir(654)

  vfs_ChDir to /

[2004/10/26 11:43:16, 3] smbd/sec_ctx.c:set_sec_ctx(288)

  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0

[2004/10/26 11:43:16, 5] auth/auth_util.c:debug_nt_user_token(486)

  NT user token: (NULL)

[2004/10/26 11:43:16, 5] auth/auth_util.c:debug_unix_user_token(505)

  UNIX token of user 0

  Primary group is 0 and contains 0 supplementary groups

[2004/10/26 11:43:16, 5] smbd/uid.c:change_to_root_user(296)

  change_to_root_user: now uid=(0,0) gid=(0,0)

[2004/10/26 11:43:16, 5] lib/util.c:show_msg(439)

[2004/10/26 11:43:16, 5] lib/util.c:show_msg(449)





Those seem to be the relevant sections although I am not sure, let me
know if you just want me to post the entire logfile. Any help with this
problem would be appreciated as I would really like to get this up and
running.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Specified user does not exist. Huh?!

2004-10-26 Thread Christopher . Patricca

Ok folks I’m at my wit’s end here as I cannot seem to join the domain I
setup under Samba version 3.0.7. Every time I try and join the domain
with a user that has the power to add a machine to the domain it just
says that the user does not exist. This happens with all accounts which
I have specified in the smb.conf file as a user that can do this
function. I have added those users via smbpasswd –a username as well
as username –g admin username and they do show up in the smbpasswd
file. Here’s what appears in my smbd.log file:



smbd version 3.0.7 started.

  Copyright Andrew Tridgell and the Samba Team 1992-2004

[2004/10/26 11:29:50, 0] param/loadparm.c:map_parameter(2435)

  Unknown parameter encountered: domain admin group

[2004/10/26 11:29:50, 0] param/loadparm.c:lp_do_parameter(3125)

  Ignoring unknown parameter domain admin group

[2004/10/26 11:29:50, 0] param/loadparm.c:map_parameter(2435)

  Unknown parameter encountered: domain admin user

[2004/10/26 11:29:50, 0] param/loadparm.c:lp_do_parameter(3125)

  Ignoring unknown parameter domain admin user

[2004/10/26 11:29:50, 2] param/loadparm.c:do_section(3407)

  Processing section [netlogon]



And here’s what’s in my smb.conf file:



[global]



Netbios name = Server

Server string = PDC

Workgroup = HOMEUSE

Passdb backend = smbpasswd

os level = 33

preferred master = yes

domain master = yes

local master = yes

domain logons = yes

hide dot files = yes

security = user

invalid users = bin daemon sys man postfix mail ftp

domain admin group = @admin

domain admin user = root

encrypt passwords = yes

log level = 2

log file = /var/log/samba/log.%L

max log size = 1000

debug timestamp = yes

syslog = 1

add user script = /usr/sbin/useradd –d /dev/null –g 100 –s
/bin/false –m %u



[netlogon]



path = /home/samba/netlogon

read only = yes

write list = @admin



Here’s what appears in my logfile (changed loglevel to 5 for this)



[2004/10/26 11:43:15, 3] smbd/process.c:switch_message(887)

  switch message SMBtrans (pid 8613) conn 0x83a6130

[2004/10/26 11:43:15, 3] smbd/sec_ctx.c:set_sec_ctx(288)

  setting sec ctx (0, 502) - sec_ctx_stack_ndx = 0

[2004/10/26 11:43:15, 5] auth/auth_util.c:debug_nt_user_token(491)

  NT user token of user S-1-5-21-1861440459-1144414950-1732935726-2008

  contains 5 SIDs

  SID[  0]: S-1-5-21-1861440459-1144414950-1732935726-2008

  SID[  1]: S-1-5-21-1861440459-1144414950-1732935726-2005

SID[  2]: S-1-1-0

  SID[  3]: S-1-5-2

  SID[  4]: S-1-5-11

[2004/10/26 11:43:15, 5] auth/auth_util.c:debug_unix_user_token(505)

  UNIX token of user 0

  Primary group is 502 and contains 1 supplementary groups

  Group[  0]: 502

[2004/10/26 11:43:15, 5] smbd/uid.c:change_to_user(281)

  change_to_user uid=(0,0) gid=(0,502)

[2004/10/26 11:43:15, 3] smbd/ipc.c:reply_trans(538)

  trans \PIPE\ data=44 params=0 setup=2

[2004/10/26 11:43:15, 5] smbd/ipc.c:reply_trans(557)

  calling named_pipe

[2004/10/26 11:43:15, 3] smbd/ipc.c:named_pipe(334)

  named pipe command on  name

[2004/10/26 11:43:15, 5] smbd/ipc.c:api_fd_reply(267)

  api_fd_reply

[2004/10/26 11:43:15, 4] rpc_server/srv_pipe_hnd.c:get_rpc_pipe(1170)

  search for pipe pnum=7517

[2004/10/26 11:43:15, 5] rpc_server/srv_pipe_hnd.c:get_rpc_pipe(1174)

  pipe name lsarpc pnum=7517 (pipes_open=1)



Another section:



[2004/10/26 11:43:16, 5] smbd/uid.c:change_to_root_user(296)

  change_to_root_user: now uid=(0,0) gid=(0,0)

[2004/10/26 11:43:16, 3] smbd/service.c:close_cnum(837)

  chris (192.168.2.101) closed connection to service IPC$

[2004/10/26 11:43:16, 3] smbd/connection.c:yield_connection(69)

  Yielding connection to IPC$

[2004/10/26 11:43:16, 4] smbd/vfs.c:vfs_ChDir(654)

  vfs_ChDir to /

[2004/10/26 11:43:16, 3] smbd/sec_ctx.c:set_sec_ctx(288)

  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0

[2004/10/26 11:43:16, 5] auth/auth_util.c:debug_nt_user_token(486)

  NT user token: (NULL)

[2004/10/26 11:43:16, 5] auth/auth_util.c:debug_unix_user_token(505)

  UNIX token of user 0

  Primary group is 0 and contains 0 supplementary groups

[2004/10/26 11:43:16, 5] smbd/uid.c:change_to_root_user(296)

  change_to_root_user: now uid=(0,0) gid=(0,0)

[2004/10/26 11:43:16, 5] lib/util.c:show_msg(439)

[2004/10/26 11:43:16, 5] lib/util.c:show_msg(449)





Those seem to be the relevant sections although I am not sure, let me
know if you just want me to post the entire logfile. Any help with this
problem would be appreciated as I would really like to get this up and
running.
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Winbindd won't see new accounts until restarted

2004-10-26 Thread Markus Översti
Hello,

I have w2k server with AD and Debian mailserver with Samba 3.0.7. Userdatabase
is on w2k server and samba/winbind is configured to use ADS security.

When I add new accounts to w2k server, getent passwd won't show new accounts
until winbindd is restarted.

Now I have /etc/init.d/winbind restart in crontab for every 5 mins, which I
think is not nice way to do it.

Question is, how I get winbind to see new users (and passwords) without
restarting it?

--
  /\_/\
 ( o.o )  mailto:[EMAIL PROTECTED]
   ^  http://www.oversti.net
GED d- s++:++ a31 C++ UL P+ L+++ !E W+++ N++ o-- ?K w O-- !M ?V PS PE Y+
PGP !t !5 X+ ?R tv++ b+ DI+ D++ G e+++ h r+++ z?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] WinXP vs Samba: domain controller could not be contacted

2004-10-26 Thread Martin Wartens
Hi,
when I try to connect with a Windows XP Professional workstation to my domain 
(My Computer-Computer Name ...), I keep getting the error message A domain 
controller for the domain ... could not be contacted. This attempt leaves no 
traces in the samba logs. 
I have applied the recommended WinXP registry tweaks. I am pretty shure that I 
have typed the domain name right. nmdb is running on the samba server.
Strange enough, I can connect to the samba server if I enter its IP directly in 
Start-Run. Reversely, I can also connect from the samba server to the XP 
machine with smbclient. 
I guess this a problem with netbios/wins, but I am out of ideas. What could it 
be? I have found the same question lots of times on google, but never any 
solutions. Help please!
   Martin

-- 
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.8pre2 Available for Download

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

This is a preview release of the Samba 3.0.8 code base. It 
is *not* intended for production use but rather is provided to 
allow people to test the bug fixes and new features in the 
upcoming 3.0.8 release.  Use at your own risk.

Common bugs fixed in 3.0.8pre2 include:

  o Several bugs in the spoolss printing code.
  o Inconsistencies in the username map functionality
when configured on domain member servers.
  o Various compile warnings and errors on various platforms.

New features included in the 3.0.8pre1 release are:

  o New experimental idmap backend for assigning uids/gids
directly based on the user/group RID when acting as a
member of single domain without any trusts.
  o Additional printer migration support for XP/2003 platforms.


Change in Username Map
- --

Previous Samba releases would only support reading the fully qualified
username (e.g. DOMAIN\user) from the username map when performing a
kerberos login from a client.  However, when looking up a map
entry for a user authenticated by NTLM[SSP], only the login name would be
used for matches.  This resulted in inconsistent behavior sometimes
even on the same server.

Samba 3.0.8pre2 obeys the following rules when applying the username
map functionality:

  * When performing local authentication, the username map is
applied to the login name before attempting to authenticate
the connection.
  * When relying upon a external domain controller for validating
authentication requests, smbd will apply the username map
to the fully qualified username (i.e. DOMAIN\user) only
after the user has been successfully authenticated.

- 

The source code can be downloaded from :

   http://download.samba.org/samba/ftp/pre

The uncompressed tarball and patch file have been signed using GnuPG.
The new Samba public key is available at

   http://download.samba.org/samba/ftp/samba-pubkey_2005.asc

The release notes are also available on-line at

   http://download.samba.org/samba/ftp/pre/WHATSNEW-3-0-8pre2.txt

Our Code, Our Bugs, Our Responsibility.
(https://bugzilla.samba.org/)

   --Enjoy
   The Samba Team


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQFBfphAIR7qMdg1EfYRAkfCAJ9z97Rg5d3cDLIsLmokImKKkGu+UgCfYe82
+TclzVXEHsuX/fjmZX7ZEEE=
=aIFV
-END 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] Samba 3.0.7 is broken

2004-10-26 Thread Gerald (Jerry) Carter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 26 Oct 2004, ODC wrote:

 =krb5.conf=
 [libdefaults]
 default_realm = SAMBA.LOCAL
 default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc des-cbc-md5
 default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc des-cbc-md5
 permitted_enctypes = des3-hmac-sha1 des-cbc-crc des-cbc-md5

with newer krb5 libs you don't need the previous three lines.





cheers, jerry
- -
Alleviating the pain of Windows(tm)  --- http://www.samba.org
GnuPG Key- http://www.plainjoe.org/gpg_public.asc 
If we're adding to the noise, turn off this song--Switchfoot (2003)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/

iD8DBQFBfpiqIR7qMdg1EfYRAqtnAJ4mHxEljfu45tmv4RyshShzP5sCvwCgnvzK
XNEsW++BK1SSHUc8Dkpq8hI=
=4cIe
-END 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] Third party LDAP as backend

2004-10-26 Thread ljerem
 I'm planning a Samba3 new installation. I need to make Samba interact
 with
 a third party directory server (it's a standard implementation that can
 be
 accessed with ldapsearch, ldapadd, etc). Is it possible to use ldapsam
 with an LDAP directory that's not running under OpenLDAP?

 Yes; I've communicated with people using both NDS and SW.

Great... did you use the same procedure as for OpenLDAP or is there some
customization?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Sage and oplocks

2004-10-26 Thread terry
Hello im running sage line50 version 11 on a freebsd machine with samba
version 2x
My smb.conf for share looks like this
[sage]
   path = /40gb/sage
   writeable = yes
   browseable = no
   create mask = 0777
   directory mask = 0777
   veto oplock files = /*.mdb/*.MDB/*.ldb/*.LDB
   locking = yes
   share modes = yes

The problem is when two users for example try and update customer records
one of them will get a message saying the file has been locked and a count
down appears trouble is the count down goes into a loop and both users get
stuck
The workstations are nt4 with sp6
After enabling oplocking in samba is there any thing to be done with
windows clients ?
And allso would upgrading to samba version 3x help at all
Terry


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


[Samba] iptables-rules for Samba-Server

2004-10-26 Thread Stefan G. Weichinger

Hello,

I know this is a bit OT ...

I would like to just open the necessary ports for Samba on a
fileserver for a client.

I always get problems with the broadcasts on 127.0.0.1 as it seems.

Does anyone have some well-proved iptables-commands to only allow
samba-related traffic in and out of a samba-server?

(I know how to control that with options like hosts allow and such,
I would like to ADD iptables ...)

Thanks,
Stefan

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


Re: [Samba] Third party LDAP as backend

2004-10-26 Thread Adam Tauno Williams
  I'm planning a Samba3 new installation. I need to make Samba interact
  with
  a third party directory server (it's a standard implementation that can
  be
  accessed with ldapsearch, ldapadd, etc). Is it possible to use ldapsam
  with an LDAP directory that's not running under OpenLDAP?
  Yes; I've communicated with people using both NDS and SW.
 Great... did you use the same procedure as for OpenLDAP or is there some
 customization?

*I* didn't do this, I just know it can be done.

You need to get the samba.schema file into a format your DSA likes.  Beyond that
Samba doesn't do anything crazy and should work with any DSA.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] W2K connectivity to Samba server (repeat)

2004-10-26 Thread Curtis Vaughan
I would really appreciate any insights someone might have to this issue.
Thanks!

Anyone have any ideas about the following problem.
We have a W2K Advanced Server as a PDC in a domain: WINDOMAIN
And we have a Samba 2.x server as the PDC (through LDAP  PAM) of 
another domain: LINUXDOMAIN

Any computer in WINDOMAIN can access shares on any computer (Linux, 
Windows, etc.) in LINUXDOMAIN (provided the appropriate credentials 
are used for LINUXDOMAIN) except the W2K PDC. No matter what, it 
cannot access any shares in LINUXDOMAIN. It just keeps reasking for 
the login and password, saying that the previous login/password 
attempt was: Incorrect password or unknown user name for:

NB: We also have an NT4 domain: NT4DOMAIN, which the W2K PDC accesses 
just fine.

Of course, I use the convention LINUXDOMAIN\username for logging in.
Any input would be most appreciated.
Thanks!
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: Mail Delivery (failure info@membershipplus.net)

2004-10-26 Thread Membership+ Automated Reply
This is automated reply to your email. You have sent an email
to an address that is no longer used at Membership+

Your email has not been received by anyone at Membership+.
We apologize for this inconvenience.

If you are trying to contact someone at Membership+, 
please visit our support page located online at
http://www.membershipplus.net/support.shtml

Also, if you could, please let us know which email address 
you were trying to contact us at, and where you obtained 
that email address.

Thank you for contacting Membership+.

Membership+ Staff

http://www.membershipplus.net

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


Re: [Samba] Third party LDAP as backend

2004-10-26 Thread ljerem
 I'm planning a Samba3 new installation. I need to make Samba interact with
 a third party directory server (it's a standard implementation that can be
 accessed with ldapsearch, ldapadd, etc). Is it possible to use ldapsam
with an LDAP directory that's not running under OpenLDAP?

 Yes; I've communicated with people using both NDS and SW.

Great... did you use the same procedure as for OpenLDAP or is there some
customization?


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


[Samba] Re: WinXP vs Samba: domain controller could not be contacted

2004-10-26 Thread Roelof Pos
Martin Wartens schreef:
I guess this a problem with netbios/wins, but I am out of ideas. What could it 
be? I have found the same question lots of times on google, but never any 
solutions. Help please!
   Martin

How about your name resolution. Can you resolve the netbios name of the 
samba server? Try ping netbiosname.
Can you resolve the FQDN. Try ping hostname.domain (like www.google.com).
If you can't resolve, try adding the host to lmhost file 
(system32\drivers\etc\lmhost) and then nbtstat -R .
If you can resolve, did you actually join the domain? Are you on the 
same subnet. Is your firewall blocking (maybe xp sp2 firewall active).

Look in your nmbd.log file for entries that state that your machine is a 
doamin master browser and a local master browser (if you have 1 pdc, no 
bdc).

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


[Samba] Re: Trusting and Trusted Domain Samba LDAP (mapping Home Directories)Problem

2004-10-26 Thread Adrian Chow
Hi Igor,
Wondering have you tried to one the scenario when a domain B user logins 
on domain A machine where the domain B username is not found in domain A 
machine?  Can you still map the drives?

Also you were asking for the smbd files how should I get them? 
During when I login or during when I typed the commmand net use x: 
/home on the dos prompt?

Thanks.  Just concerned as I have not heard from you.
adrian
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: Trusting and Trusted Domain Samba LDAP (mapping Home Directories)Problem

2004-10-26 Thread Igor Belyi
Sorry... Got busy with something else. I'll try to do the test with 
different users tomorrow. There could be a problem with my previous test 
since the user present in both Domains also has the same password and 
this may allow credentials from one domain to somehow be used in another.

If you would collect trace for both 'login' and 'net user x: /home' 
times - it will be great. Make sure that trace is with 'log level = 5' 
and if you have more than one machine that you collect trace for the 
Client XP machine (probably, by including %m in the 'log file').

I apologize for the delay.
Igor
Adrian Chow wrote:
Hi Igor,
Wondering have you tried to one the scenario when a domain B user 
logins on domain A machine where the domain B username is not found in 
domain A machine?  Can you still map the drives?

Also you were asking for the smbd files how should I get them? 
During when I login or during when I typed the commmand net use x: 
/home on the dos prompt?

Thanks.  Just concerned as I have not heard from you.
adrian
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: Trusting and Trusted Domain Samba LDAP (mapping Home Directories)Problem

2004-10-26 Thread Adrian Chow
Hi Igor,
Thanks for your prompt reply.
Just curious whether you have read my previous email regarding the 
different setup for my side.  I have :-
Domain A controller :- openldap 2.1.23 (slave), samba 3.04 (PDC)
Domain B controller :- openldap 2.1.30-3 (slave), samba 3.07 (PDC)
Main LDAP server : - openldap 2.0.27-3.bunk (master).

Question 1:- Wonder if there will be a problem with the openldap setup? 
 Should I upgrade all the LDAP to have same version?
Question 2:- If I were to upgrade Domain A to samba 3.07 (as I thought 
there could be a potential problem with the trusting/trusted domains), 
any clue of how can I upgrade to samba 3.07 without losing the SID or 
any problems?I was thinking of doing the following:-
1.  Backup the smb.conf file
2.  smbldap-conf file (containing the SID number).
Is there any thing I left out?  Will the SID be changed?  The reason I 
ask was because I already got a domain member server under domain A 
(samba 3.04) and I do not want to lose the SID cos I have like 260 
users's home directory in that domain member server (windows 2003 server).

Thanks in advance.
Regards,
adrian
Igor Belyi wrote:
Sorry... Got busy with something else. I'll try to do the test with 
different users tomorrow. There could be a problem with my previous test 
since the user present in both Domains also has the same password and 
this may allow credentials from one domain to somehow be used in another.

If you would collect trace for both 'login' and 'net user x: /home' 
times - it will be great. Make sure that trace is with 'log level = 5' 
and if you have more than one machine that you collect trace for the 
Client XP machine (probably, by including %m in the 'log file').

I apologize for the delay.
Igor
Adrian Chow wrote:
Hi Igor,
Wondering have you tried to one the scenario when a domain B user 
logins on domain A machine where the domain B username is not found in 
domain A machine?  Can you still map the drives?

Also you were asking for the smbd files how should I get them? 
During when I login or during when I typed the commmand net use x: 
/home on the dos prompt?

Thanks.  Just concerned as I have not heard from you.
adrian


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


[Samba] solved: My 'net ads keytab' can't write to keytab in samba 3.0.6

2004-10-26 Thread Al Al

Hello.

I recompiled from the samba.org 3.0.7 SRPMs and it worked like a charm.  I think the 
problem may have been that I was using RHEL3's 3.0.6 samba RPMs which depended on 
their own krb5-libs, and I used kerberos rpms that don't use e2fsprogs's libcom_err.

Anyone privilaged enough to be using RHEL3 to integrate their linux machines into ADS 
may want to rebuild anything depending on kerberos, at least if they followed the same 
path I did.

Best regards,
Al



 
 Hello,
 
 I'm trying to authenticate all our linux machines to our ADS domain.  As of now, I'm 
 still in the process of setting up all the individual components before pushing the 
 setup out.  I've made quite a bit of progress, but I've hit a hitch when trying to 
 add the machine's service principals (the 'host' primary specifically) to its keytab.
 I've searched, but I haven't seen this particular issue addressed.  I get the same 
 results when doing 'net ads join' and 'net ads keytab create/add/flush' (which makes 
 sense because they all end up calling ads_keytab_add_entry anyway). Here's my output:

   ads_keytab_add_entry: adding entry to keytab failed (Cannot write to specified key 
 table)
 [2004/10/25 12:56:41, 1] libads/kerberos_keytab.c:ads_keytab_create_default(418)
   ads_keytab_create_default: ads_keytab_add_entry failed while adding 'host'.
 [2004/10/25 12:56:41, 1] utils/net_ads.c:net_ads_join(829)
   Error creating host keytab!
 Joined 'LNX251' to realm 'NA.OURCOMPANY.COM'
 [2004/10/25 12:56:41, 2] utils/net.c:main(792)
   return code = 0
 

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm

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


[Samba] winbind: using idmap only if user doesn't exist in UNIX getpw*(3) ?

2004-10-26 Thread Luke Mewburn
Greetings all.

I have a requirement to use winbind to allocate UID/GIDs for
users but only if they aren't in the non-winbind nsswitch sources.

I.e, given
smb.conf; samba 3.0.7
realm = DOMAIN
workgroup = DOMAIN
log level = 3 idmap:10 winbind:10
idmap gid = 5-5
idmap uid = 5-5
ADS users:
DOMAIN\adsuser1 ; only in ADS, not NIS
DOMAIN\adsuser2 ; only in ADS, not NIS
DOMAIN\user1
DOMAIN\user2
NIS passwd:
user1:*:10001:2::/home/user1:/bin/sh
user2:*:10002:2::/home/user2:/bin/sh


I want name-uid loops to return 10001 for user1 and a
winbind allocated UID for adsuser* (e.g, 5).

I have had no succes so far configuring samba 3.0.7 to do this.

What I've tried so far (stopping smbd/nmbd/winbindd and removing
winbindd_idmap.tdb between tests)

a)
nsswitch.conf
passwd: files nis winbind
group:  files nis winbind
smb.conf
winbind trusted domains only = no

nsswitch test results:
% id user1
uid=10001(user1) gid=2(group0) groups=2(group0)
% id adsuser1
id: adsuser1: No such user
% id 'DOMAIN\adsuser1'
uid=5(DOMAIN\adsuser1) gid=50005(DOMAIN\Domain Users)
groups=50005(DOMAIN\Domain Users)

Accessing as DOMAIN\adsuser1 connects as uid=5,gid=50005.
This is expected; we want winbind to fake a UID/GID.

Accessing as DOMAIN\user1 connects as uid=50001,gid=50005.
This is NOT expected.
As far as I can tell, it's because samba first tries
getpwnam(DOMAIN\user1) which isn't found by NIS but
winbind(8) fakes up an entry.

b)
nsswitch.conf
passwd: files nis
group:  files nis
smb.conf
winbind trusted domains only = no

nsswitch test results:
% id user1
uid=10001(user1) gid=2(group0) groups=2(group0)
% id adsuser1
id: adsuser1: No such user
% id 'DOMAIN\adsuser1'
id: DOMAIN\adsuser1: No such user

Accessing as DOMAIN\user1 connects as uid=10001,gid=2.
This is expected.

Accessing as DOMAIN\adsuser1 fails, because there's no
corresponding name-UID mapping in NIS.
This is expected based on the nsswitch.conf configuration,
but not what I want.

c)
nsswitch.conf
passwd: files nis winbind
group:  files nis winbind
smb.conf
winbind trusted domains only = yes

nsswitch test results:
% id user1
uid=10001(user1) gid=2(group0) groups=2(group0)
% id adsuser1
id: adsuser1: No such user
% id 'DOMAIN\adsuser1'
id: DOMAIN\adsuser1: No such user

Accessing as DOMAIN\user1 connects as uid=10001,gid=2.
This is expected.

Accessing as DOMAIN\adsuser1 fails, because there's no
corresponding name-UID mapping in NIS, and winbind
refuses to fake one up:
winbindd_getpwnam: My domain -- rejecting getpwnam()
for DOMAIN\ADSUSER1
What can I do to get winbind to fake one up?


At this point, I'm lost for a solution based on existing functionality.
I am considering hacking in another option which changes the
behaviour of winbind trusted domains only so that winbind will
provide a fallback mapping for users in the trusted domain that
aren't found by getpwnam(3) (i.e, the other UNIX getpw*() nsswitch
sources, such as files nis.).
Is there any way to achieve what I want, or do I need to hack the
functionality into samba?

Thanks,
Luke.


pgpgByoX7ffYn.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

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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 06:17:52 + (Tue, 26 Oct 2004)
New Revision: 3241

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3241nolog=1

Log:
don't skip the read completely for a zero-length read, as it could give a lock conflict

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


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_read.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_read.c   2004-10-26 05:39:54 UTC (rev 
3240)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_read.c   2004-10-26 06:17:52 UTC (rev 
3241)
@@ -33,6 +33,7 @@
ssize_t ret;
struct pvfs_file *f;
NTSTATUS status;
+   uint32_t maxcnt;
 
if (rd-generic.level != RAW_READ_READX) {
return ntvfs_map_read(req, rd, ntvfs);
@@ -51,15 +52,14 @@
return NT_STATUS_ACCESS_VIOLATION;
}
 
-   /* this matches w2k3 behaviour for attempted large reads */
-   if (rd-readx.in.maxcnt  UINT16_MAX) {
-   ret = 0;
-   goto done_read;
+   maxcnt = rd-readx.in.maxcnt;
+   if (maxcnt  UINT16_MAX) {
+   maxcnt = 0;
}
-   
+
status = pvfs_check_lock(pvfs, f, req-smbpid, 
 rd-readx.in.offset,
-rd-readx.in.maxcnt,
+maxcnt,
 READ_LOCK);
if (!NT_STATUS_IS_OK(status)) {
return status;
@@ -67,13 +67,12 @@
 
ret = pread(f-fd, 
rd-readx.out.data, 
-   rd-readx.in.maxcnt,
+   maxcnt,
rd-readx.in.offset);
if (ret == -1) {
return pvfs_map_errno(pvfs, errno);
}
 
-done_read:
f-position = f-seek_offset = rd-readx.in.offset + ret;
 
rd-readx.out.nread = ret;



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 06:18:56 + (Tue, 26 Oct 2004)
New Revision: 3242

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rawrev=3242nolog=1

Log:
make the RAW-READ test not exercise the 0-0 lock, which is not deterministic


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


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/read.c
===
--- branches/SAMBA_4_0/source/torture/raw/read.c2004-10-26 06:17:52 UTC (rev 
3241)
+++ branches/SAMBA_4_0/source/torture/raw/read.c2004-10-26 06:18:56 UTC (rev 
3242)
@@ -235,7 +235,7 @@
printf(Trying empty file read\n);
io.lockread.in.fnum = fnum;
io.lockread.in.count = 1;
-   io.lockread.in.offset = 0;
+   io.lockread.in.offset = 1;
io.lockread.in.remaining = 0;
io.lockread.out.data = buf;
status = smb_raw_read(cli-tree, io);
@@ -252,8 +252,10 @@
printf(Trying zero file read\n);
io.lockread.in.count = 0;
status = smb_raw_read(cli-tree, io);
-   CHECK_STATUS(status, NT_STATUS_FILE_LOCK_CONFLICT);
+   CHECK_STATUS(status, NT_STATUS_OK);
 
+   smbcli_unlock(cli-tree, fnum, 1, 1);
+
printf(Trying bad fnum\n);
io.lockread.in.fnum = fnum+1;
status = smb_raw_read(cli-tree, io);
@@ -268,9 +270,9 @@
io.lockread.in.remaining = 0;
io.lockread.in.count = strlen(test_data);
status = smb_raw_read(cli-tree, io);
-   CHECK_STATUS(status, NT_STATUS_FILE_LOCK_CONFLICT);
+   CHECK_STATUS(status, NT_STATUS_LOCK_NOT_GRANTED);
 
-   smbcli_unlock(cli-tree, fnum, 0, 1);
+   smbcli_unlock(cli-tree, fnum, 1, 0);
 
status = smb_raw_read(cli-tree, io);
CHECK_STATUS(status, NT_STATUS_OK);



svn commit: samba r3243 - in branches/SAMBA_4_0/source/smb_server: .

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 06:19:50 + (Tue, 26 Oct 2004)
New Revision: 3243

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/smb_serverrev=3243nolog=1

Log:
read the high offset count in SMBreadx in the server

Modified:
   branches/SAMBA_4_0/source/smb_server/reply.c


Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/reply.c
===
--- branches/SAMBA_4_0/source/smb_server/reply.c2004-10-26 06:18:56 UTC (rev 
3242)
+++ branches/SAMBA_4_0/source/smb_server/reply.c2004-10-26 06:19:50 UTC (rev 
3243)
@@ -890,6 +890,7 @@
io-readx.in.offset= IVAL(req-in.vwv, VWV(3));
io-readx.in.maxcnt= SVAL(req-in.vwv, VWV(5));
io-readx.in.mincnt= SVAL(req-in.vwv, VWV(6));
+   io-readx.in.maxcnt   |= IVAL(req-in.vwv, VWV(7))  16;
io-readx.in.remaining = SVAL(req-in.vwv, VWV(9));

/* the 64 bit variant */



svn commit: samba r3244 - in branches/SAMBA_4_0/source/script/tests: .

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 06:20:28 + (Tue, 26 Oct 2004)
New Revision: 3244

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/script/testsrev=3244nolog=1

Log:
pvfs now passes the RAW-UNLINK and RAW-READ tests


Modified:
   branches/SAMBA_4_0/source/script/tests/test_posix.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 06:19:50 
UTC (rev 3243)
+++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 06:20:28 
UTC (rev 3244)
@@ -37,11 +37,12 @@
 tests=$tests BASE-CHKPATH BASE-SECLEAK
 tests=$tests RAW-QFSINFO RAW-QFILEINFO RAW-SFILEINFO-BUG
 tests=$tests RAW-LOCK RAW-MKDIR RAW-SEEK RAW-CONTEXT BASE-RENAME
+tests=$tests RAW-UNLINK RAW-READ
 tests=$tests LOCAL-ICONV LOCAL-TALLOC LOCAL-MESSAGING LOCAL-BINDING LOCAL-IDTREE
 
 soon=BASE-DENY1 BASE-DEFER_OPEN BASE-OPENATTR BASE-CHARSET
 soon=$soon RAW-SFILEINFO RAW-SEARCH RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX RAW-IOCTL
-soon=$soon RAW-CHKPATH RAW-UNLINK RAW-READ RAW-WRITE RAW-RENAME RAW-CLOSE 
BASE-TRANS2
+soon=$soon RAW-CHKPATH RAW-WRITE RAW-RENAME RAW-CLOSE BASE-TRANS2
 soon=$soon BASE-TRANS2
 
 for t in $tests; do



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 07:02:30 + (Tue, 26 Oct 2004)
New Revision: 3245

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rawrev=3245nolog=1

Log:
use __location__ in RAW-SEARCH



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


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/search.c
===
--- branches/SAMBA_4_0/source/torture/raw/search.c  2004-10-26 06:20:28 UTC (rev 
3244)
+++ branches/SAMBA_4_0/source/torture/raw/search.c  2004-10-26 07:02:30 UTC (rev 
3245)
@@ -219,8 +219,8 @@
s = find(name); \
if (s) { \
if ((s-sname1.field1) != (v.sname2.out.field2)) { \
-   printf((%d) %s/%s [0x%x] != %s/%s [0x%x]\n, \
-  __LINE__, \
+   printf((%s) %s/%s [0x%x] != %s/%s [0x%x]\n, \
+  __location__, \
#sname1, #field1, (int)s-sname1.field1, \
#sname2, #field2, (int)v.sname2.out.field2); \
ret = False; \
@@ -231,8 +231,8 @@
s = find(name); \
if (s) { \
if (s-sname1.field1 != (~1  nt_time_to_unix(v.sname2.out.field2))) { 
\
-   printf((%d) %s/%s [%s] != %s/%s [%s]\n, \
-  __LINE__, \
+   printf((%s) %s/%s [%s] != %s/%s [%s]\n, \
+  __location__, \
#sname1, #field1, timestring(mem_ctx, 
s-sname1.field1), \
#sname2, #field2, nt_time_string(mem_ctx, 
v.sname2.out.field2)); \
ret = False; \
@@ -243,8 +243,8 @@
s = find(name); \
if (s) { \
if (s-sname1.field1 != v.sname2.out.field2) { \
-   printf((%d) %s/%s [%s] != %s/%s [%s]\n, \
-  __LINE__, \
+   printf((%s) %s/%s [%s] != %s/%s [%s]\n, \
+  __location__, \
#sname1, #field1, nt_time_string(mem_ctx, 
s-sname1.field1), \
#sname2, #field2, nt_time_string(mem_ctx, 
v.sname2.out.field2)); \
ret = False; \
@@ -255,8 +255,8 @@
s = find(name); \
if (s) { \
if (!s-sname1.field1 || strcmp(s-sname1.field1, 
v.sname2.out.field2.s)) { \
-   printf((%d) %s/%s [%s] != %s/%s [%s]\n, \
-  __LINE__, \
+   printf((%s) %s/%s [%s] != %s/%s [%s]\n, \
+  __location__, \
#sname1, #field1, s-sname1.field1, \
#sname2, #field2, v.sname2.out.field2.s); \
ret = False; \
@@ -269,8 +269,8 @@
if (!s-sname1.field1.s || \
strcmp(s-sname1.field1.s, v.sname2.out.field2.s) || \
wire_bad_flags(s-sname1.field1, flags, cli)) { \
-   printf((%d) %s/%s [%s] != %s/%s [%s]\n, \
-  __LINE__, \
+   printf((%s) %s/%s [%s] != %s/%s [%s]\n, \
+  __location__, \
#sname1, #field1, s-sname1.field1.s, \
#sname2, #field2, v.sname2.out.field2.s); \
ret = False; \
@@ -283,8 +283,8 @@
if (!s-sname1.field1.s || \
strcmp(s-sname1.field1.s, fname) || \
wire_bad_flags(s-sname1.field1, flags, cli)) { \
-   printf((%d) %s/%s [%s] != %s\n, \
-  __LINE__, \
+   printf((%s) %s/%s [%s] != %s\n, \
+  __location__, \
#sname1, #field1, s-sname1.field1.s, \
fname); \
ret = False; \
@@ -296,8 +296,8 @@
if (s) { \
if (!s-sname1.field1 || \
strcmp(s-sname1.field1, fname)) { \
-   printf((%d) %s/%s [%s] != %s\n, \
-  __LINE__, \
+   printf((%s) %s/%s [%s] != %s\n, \
+  __location__, \
#sname1, #field1, s-sname1.field1, \
fname); \
ret = False; \
@@ -534,16 +534,16 @@
 
 #define CHECK_STATUS(status, correct) do { \
if (!NT_STATUS_EQUAL(status, correct)) { \
-   printf((%d) Incorrect status %s - should be %s\n, \
-  __LINE__, nt_errstr(status), nt_errstr(correct)); \
+   printf((%s) Incorrect status %s - should be %s\n, \
+  __location__, nt_errstr(status), 

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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 07:03:12 + (Tue, 26 Oct 2004)
New Revision: 3246

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3246nolog=1

Log:
new files should get created with FILE_ATTRIBUTE_ARCHIVE

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


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c   2004-10-26 07:02:30 UTC (rev 
3245)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c   2004-10-26 07:03:12 UTC (rev 
3246)
@@ -311,7 +311,7 @@
return NT_STATUS_TOO_MANY_OPENED_FILES;
}
 
-   mode = pvfs_fileperms(pvfs, io-ntcreatex.in.file_attr);
+   mode = pvfs_fileperms(pvfs, io-ntcreatex.in.file_attr | 
FILE_ATTRIBUTE_ARCHIVE);
 
/* create the file */
fd = open(name-full_name, flags | O_CREAT | O_EXCL, mode);



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 07:04:10 + (Tue, 26 Oct 2004)
New Revision: 3247

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3247nolog=1

Log:
FILE_ATTRIBUTE_NORMAL is only a null-op for setattr and setattre, not basic_info


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


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c2004-10-26 07:03:12 
UTC (rev 3246)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c2004-10-26 07:04:10 
UTC (rev 3247)
@@ -90,7 +90,7 @@
if (info-basic_info.in.change_time) {
newstats.dos.change_time = info-basic_info.in.change_time;
}
-   if (info-basic_info.in.attrib != FILE_ATTRIBUTE_NORMAL) {
+   if (info-basic_info.in.attrib != 0) {
newstats.dos.attrib = info-basic_info.in.attrib;
}
break;



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 07:04:45 + (Tue, 26 Oct 2004)
New Revision: 3248

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3248nolog=1

Log:
don't stop searches on failed fill_search_info()



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-10-26 07:04:10 UTC (rev 
3247)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c 2004-10-26 07:04:45 UTC (rev 
3248)
@@ -208,17 +208,11 @@
 
status = fill_search_info(pvfs, level, dir-unix_path, dir-names[i], 
  search, i, file);
-   if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
+   if (!NT_STATUS_IS_OK(status)) {
talloc_free(file);
continue;
}
 
-   if (!NT_STATUS_IS_OK(status)) {
-   talloc_free(file);
-   search-current_index = i;
-   return status;
-   }
-
if (!callback(search_private, file)) {
talloc_free(file);
break;



svn commit: samba r3249 - in branches/SAMBA_4_0/source: ntvfs/posix script/tests

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 07:11:49 + (Tue, 26 Oct 2004)
New Revision: 3249

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=3249nolog=1

Log:
- change_time is closer to ctime than mtime

- pvfs now passes the RAW-CLOSE test

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_fileinfo.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
   branches/SAMBA_4_0/source/script/tests/test_posix.sh


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_fileinfo.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_fileinfo.c   2004-10-26 07:04:45 
UTC (rev 3248)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_fileinfo.c   2004-10-26 07:11:49 
UTC (rev 3249)
@@ -84,13 +84,13 @@
/* for now just use the simple samba mapping */
unix_to_nt_time(name-dos.create_time, name-st.st_ctime);
unix_to_nt_time(name-dos.access_time, name-st.st_atime);
-   unix_to_nt_time(name-dos.write_time, name-st.st_mtime);
-   unix_to_nt_time(name-dos.change_time, name-st.st_mtime);
+   unix_to_nt_time(name-dos.write_time,  name-st.st_mtime);
+   unix_to_nt_time(name-dos.change_time, name-st.st_ctime);
 #ifdef HAVE_STAT_TV_NSEC
name-dos.create_time += name-st.st_ctim.tv_nsec / 100;
name-dos.access_time += name-st.st_atim.tv_nsec / 100;
name-dos.write_time  += name-st.st_mtim.tv_nsec / 100;
-   name-dos.change_time += name-st.st_mtim.tv_nsec / 100;
+   name-dos.change_time += name-st.st_ctim.tv_nsec / 100;
 #endif
name-dos.attrib = dos_mode_from_stat(pvfs, name-st);
name-dos.alloc_size = name-st.st_size;

Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c   2004-10-26 07:04:45 UTC (rev 
3248)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_open.c   2004-10-26 07:11:49 UTC (rev 
3249)
@@ -634,6 +634,10 @@
NTSTATUS status;
struct utimbuf unix_times;
 
+   if (io-generic.level == RAW_CLOSE_SPLCLOSE) {
+   return NT_STATUS_UNSUCCESSFUL;
+   }
+
if (io-generic.level != RAW_CLOSE_CLOSE) {
return ntvfs_map_close(req, io, ntvfs);
}

Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 07:04:45 
UTC (rev 3248)
+++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 07:11:49 
UTC (rev 3249)
@@ -37,12 +37,12 @@
 tests=$tests BASE-CHKPATH BASE-SECLEAK
 tests=$tests RAW-QFSINFO RAW-QFILEINFO RAW-SFILEINFO-BUG
 tests=$tests RAW-LOCK RAW-MKDIR RAW-SEEK RAW-CONTEXT BASE-RENAME
-tests=$tests RAW-UNLINK RAW-READ
+tests=$tests RAW-UNLINK RAW-READ RAW-CLOSE
 tests=$tests LOCAL-ICONV LOCAL-TALLOC LOCAL-MESSAGING LOCAL-BINDING LOCAL-IDTREE
 
 soon=BASE-DENY1 BASE-DEFER_OPEN BASE-OPENATTR BASE-CHARSET
 soon=$soon RAW-SFILEINFO RAW-SEARCH RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX RAW-IOCTL
-soon=$soon RAW-CHKPATH RAW-WRITE RAW-RENAME RAW-CLOSE BASE-TRANS2
+soon=$soon RAW-CHKPATH RAW-WRITE RAW-RENAME BASE-TRANS2
 soon=$soon BASE-TRANS2
 
 for t in $tests; do



svn commit: samba r3250 - in branches/SAMBA_4_0/source/librpc/idl: .

2004-10-26 Thread tpot
Author: tpot
Date: 2004-10-26 07:17:23 + (Tue, 26 Oct 2004)
New Revision: 3250

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/librpc/idlrev=3250nolog=1

Log:
Add idl for printer info level 0.

Modified:
   branches/SAMBA_4_0/source/librpc/idl/spoolss.idl


Changeset:
Modified: branches/SAMBA_4_0/source/librpc/idl/spoolss.idl
===
--- branches/SAMBA_4_0/source/librpc/idl/spoolss.idl2004-10-26 07:11:49 UTC (rev 
3249)
+++ branches/SAMBA_4_0/source/librpc/idl/spoolss.idl2004-10-26 07:17:23 UTC (rev 
3250)
@@ -12,6 +12,49 @@
 ] interface spoolss
 {
typedef struct {
+   uint16 year;
+   uint16 month;
+   uint16 day_of_week;
+   uint16 day;
+   uint16 hour;
+   uint16 minute;
+   uint16 second;
+   uint16 millisecond;
+   } spoolss_Time;
+
+   typedef struct {
+   [relative] nstring *printername;
+   [relative] nstring *servername;
+   uint32 cjobs;
+   uint32 total_jobs;
+   uint32 total_bytes;
+   spoolss_Time time;  
+   uint32 global_counter;
+   uint32 total_pages;
+   uint32 version;
+   uint32 unknown10;
+   uint32 unknown11;
+   uint32 unknown12;
+   uint32 session_counter;
+   uint32 unknown14;
+   uint32 printer_errors;
+   uint32 unknown16;
+   uint32 unknown17;
+   uint32 unknown18;
+   uint32 unknown19;
+   uint32 change_id;
+   uint32 unknown21;
+   uint32 status;
+   uint32 unknown23;
+   uint32 c_setprinter;
+   uint16 unknown25;
+   uint16 unknown26;
+   uint32 unknown27;
+   uint32 unknown28;
+   uint32 unknown29;
+   } spoolss_PrinterInfo0;
+
+   typedef struct {
nstring devicename;
uint16 specversion;
uint16 driverversion;
@@ -120,6 +163,7 @@
} spoolss_PrinterInfo7;
 
typedef [nodiscriminant,public] union {
+   [case(0)] spoolss_PrinterInfo0 info0;
[case(1)] spoolss_PrinterInfo1 info1;
[case(2)] spoolss_PrinterInfo2 info2;
[case(3)] spoolss_PrinterInfo3 info3;
@@ -180,17 +224,6 @@
);
 
typedef struct {
-   uint16 year;
-   uint16 month;
-   uint16 day_of_week;
-   uint16 day;
-   uint16 hour;
-   uint16 minute;
-   uint16 second;
-   uint16 millisecond;
-   } spoolss_Time;
-
-   typedef struct {
uint32 job_id;
[relative] nstring printer_name;
[relative] nstring server_name;



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 08:32:16 + (Tue, 26 Oct 2004)
New Revision: 3251

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torturerev=3251nolog=1

Log:
- move the openattr test code into basic/attr.c

- cleaned up the RAW-WRITE test so it passes against w2k3, and gives
  more useful error messages


Added:
   branches/SAMBA_4_0/source/torture/basic/attr.c
Modified:
   branches/SAMBA_4_0/source/torture/config.mk
   branches/SAMBA_4_0/source/torture/raw/write.c
   branches/SAMBA_4_0/source/torture/torture.c


Changeset:
Sorry, the patch is too large (833 lines) to include; please use WebSVN to see it!
WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torturerev=3251nolog=1


svn commit: samba r3252 - in branches/SAMBA_4_0/source/script/tests: .

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 08:33:04 + (Tue, 26 Oct 2004)
New Revision: 3252

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/script/testsrev=3252nolog=1

Log:
pvfs now passes BASE-TRANS2

Modified:
   branches/SAMBA_4_0/source/script/tests/test_posix.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 08:32:16 
UTC (rev 3251)
+++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 08:33:04 
UTC (rev 3252)
@@ -34,7 +34,7 @@
 tests=$tests BASE-DENY2 BASE-TCON BASE-TCONDEV BASE-RW1
 tests=$tests BASE-DENY3 BASE-XCOPY BASE-OPEN
 tests=$tests BASE-DELETE BASE-PROPERTIES BASE-MANGLE
-tests=$tests BASE-CHKPATH BASE-SECLEAK
+tests=$tests BASE-CHKPATH BASE-SECLEAK BASE-TRANS2
 tests=$tests RAW-QFSINFO RAW-QFILEINFO RAW-SFILEINFO-BUG
 tests=$tests RAW-LOCK RAW-MKDIR RAW-SEEK RAW-CONTEXT BASE-RENAME
 tests=$tests RAW-UNLINK RAW-READ RAW-CLOSE
@@ -42,7 +42,7 @@
 
 soon=BASE-DENY1 BASE-DEFER_OPEN BASE-OPENATTR BASE-CHARSET
 soon=$soon RAW-SFILEINFO RAW-SEARCH RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX RAW-IOCTL
-soon=$soon RAW-CHKPATH RAW-WRITE RAW-RENAME BASE-TRANS2
+soon=$soon RAW-CHKPATH RAW-WRITE RAW-RENAME
 soon=$soon BASE-TRANS2
 
 for t in $tests; do



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 08:35:29 + (Tue, 26 Oct 2004)
New Revision: 3253

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3253nolog=1

Log:
- added rudimentary support for ntioctl in pvfs

- catch the SIGXFSZ signal, which for some completely insane reason is
  generated in current Linux systems when you write before the maximum
  offset in a file (maximum is 2^41 on my box). Why wasn't errno good 
  enough for this?

- give the right ntstatus code for large offset write failures




Added:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c
Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/config.mk
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c
   branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/config.mk
===
--- branches/SAMBA_4_0/source/ntvfs/posix/config.mk 2004-10-26 08:33:04 UTC (rev 
3252)
+++ branches/SAMBA_4_0/source/ntvfs/posix/config.mk 2004-10-26 08:35:29 UTC (rev 
3253)
@@ -23,6 +23,7 @@
ntvfs/posix/pvfs_lock.o \
ntvfs/posix/pvfs_wait.o \
ntvfs/posix/pvfs_seek.o \
+   ntvfs/posix/pvfs_ioctl.o \
ntvfs/common/opendb.o \
ntvfs/common/brlock.o
 # End MODULE ntvfs_posix

Added: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c  2004-10-26 08:33:04 UTC (rev 
3252)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c  2004-10-26 08:35:29 UTC (rev 
3253)
@@ -0,0 +1,87 @@
+/* 
+   Unix SMB/CIFS implementation.
+
+   POSIX NTVFS backend - open and close
+
+   Copyright (C) Andrew Tridgell 2004
+
+   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.
+*/
+
+#include include/includes.h
+#include vfs_posix.h
+
+/*
+  old ioctl interface 
+*/
+static NTSTATUS pvfs_ioctl_old(struct ntvfs_module_context *ntvfs,
+   struct smbsrv_request *req, union smb_ioctl *io)
+{
+   struct pvfs_state *pvfs = ntvfs-private_data;
+   struct pvfs_file *f;
+
+   f = pvfs_find_fd(pvfs, req, io-ioctl.in.fnum);
+   if (!f) {
+   return NT_STATUS_INVALID_HANDLE;
+   }
+
+   return NT_STATUS_NOT_SUPPORTED;
+}
+
+/*
+  nt ioctl interface 
+*/
+static NTSTATUS pvfs_ntioctl(struct ntvfs_module_context *ntvfs,
+struct smbsrv_request *req, union smb_ioctl *io)
+{
+   struct pvfs_state *pvfs = ntvfs-private_data;
+   struct pvfs_file *f;
+
+   f = pvfs_find_fd(pvfs, req, io-ntioctl.in.fnum);
+   if (!f) {
+   return NT_STATUS_INVALID_HANDLE;
+   }
+
+   switch (io-ntioctl.in.function) {
+   case FSCTL_SET_SPARSE:
+   /* maybe some posix systems have a way of marking
+  a file non-sparse? */
+   return NT_STATUS_OK;
+   }
+
+   return NT_STATUS_NOT_SUPPORTED;
+}
+
+/*
+  ioctl interface 
+*/
+NTSTATUS pvfs_ioctl(struct ntvfs_module_context *ntvfs,
+   struct smbsrv_request *req, union smb_ioctl *io)
+{
+   NTSTATUS status;
+
+   switch (io-generic.level) {
+   case RAW_IOCTL_IOCTL:
+   status = pvfs_ioctl_old(ntvfs, req, io);
+   break;
+
+   case RAW_IOCTL_NTIOCTL:
+   status = pvfs_ntioctl(ntvfs, req, io);
+   break;
+   }
+
+   return status;
+}
+

Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c  2004-10-26 08:33:04 UTC (rev 
3252)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c  2004-10-26 08:35:29 UTC (rev 
3253)
@@ -65,6 +65,9 @@
 wr-writex.in.count,
 wr-writex.in.offset);
if (ret == -1) {
+   if (errno == EFBIG) {
+   return NT_STATUS_INVALID_PARAMETER;
+   }
return map_nt_error_from_unix(errno);
}
 

Modified: branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.c
===
--- 

svn commit: samba r3254 - in branches/SAMBA_4_0/source: ntvfs/posix script/tests torture/raw

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 08:41:12 + (Tue, 26 Oct 2004)
New Revision: 3254

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=3254nolog=1

Log:
- expanded the RAW-IOCTL test

- fixed the old ioctl interface to not check handle before failing

- pvs now passes RAW-IOCTL

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c
   branches/SAMBA_4_0/source/script/tests/test_posix.sh
   branches/SAMBA_4_0/source/torture/raw/ioctl.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c  2004-10-26 08:35:29 UTC (rev 
3253)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c  2004-10-26 08:41:12 UTC (rev 
3254)
@@ -29,15 +29,7 @@
 static NTSTATUS pvfs_ioctl_old(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_ioctl *io)
 {
-   struct pvfs_state *pvfs = ntvfs-private_data;
-   struct pvfs_file *f;
-
-   f = pvfs_find_fd(pvfs, req, io-ioctl.in.fnum);
-   if (!f) {
-   return NT_STATUS_INVALID_HANDLE;
-   }
-
-   return NT_STATUS_NOT_SUPPORTED;
+   return NT_STATUS_UNSUCCESSFUL;
 }
 
 /*

Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 08:35:29 
UTC (rev 3253)
+++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 08:41:12 
UTC (rev 3254)
@@ -37,11 +37,11 @@
 tests=$tests BASE-CHKPATH BASE-SECLEAK BASE-TRANS2
 tests=$tests RAW-QFSINFO RAW-QFILEINFO RAW-SFILEINFO-BUG
 tests=$tests RAW-LOCK RAW-MKDIR RAW-SEEK RAW-CONTEXT BASE-RENAME
-tests=$tests RAW-UNLINK RAW-READ RAW-CLOSE
+tests=$tests RAW-UNLINK RAW-READ RAW-CLOSE RAW-IOCTL
 tests=$tests LOCAL-ICONV LOCAL-TALLOC LOCAL-MESSAGING LOCAL-BINDING LOCAL-IDTREE
 
 soon=BASE-DENY1 BASE-DEFER_OPEN BASE-OPENATTR BASE-CHARSET
-soon=$soon RAW-SFILEINFO RAW-SEARCH RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX RAW-IOCTL
+soon=$soon RAW-SFILEINFO RAW-SEARCH RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX
 soon=$soon RAW-CHKPATH RAW-WRITE RAW-RENAME
 soon=$soon BASE-TRANS2
 

Modified: branches/SAMBA_4_0/source/torture/raw/ioctl.c
===
--- branches/SAMBA_4_0/source/torture/raw/ioctl.c   2004-10-26 08:35:29 UTC (rev 
3253)
+++ branches/SAMBA_4_0/source/torture/raw/ioctl.c   2004-10-26 08:41:12 UTC (rev 
3254)
@@ -50,6 +50,14 @@
goto done;
}
 
+   printf(Trying 0x\n);
+   ctl.ioctl.level = RAW_IOCTL_IOCTL;
+   ctl.ioctl.in.fnum = fnum;
+   ctl.ioctl.in.request = 0x;
+
+   status = smb_raw_ioctl(cli-tree, mem_ctx, ctl);
+   CHECK_STATUS(status, NT_STATUS_UNSUCCESSFUL);
+
printf(Trying QUERY_JOB_INFO\n);
ctl.ioctl.level = RAW_IOCTL_IOCTL;
ctl.ioctl.in.fnum = fnum;



svn commit: samba r3255 - in branches/SAMBA_4_0/source: ntvfs/posix smb_server

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 09:31:11 + (Tue, 26 Oct 2004)
New Revision: 3255

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=3255nolog=1

Log:
- fixed 2 uninitialised data errors found with valgrind

- fixed offset of setup words in nttrans reply

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c
   branches/SAMBA_4_0/source/smb_server/nttrans.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c  2004-10-26 08:41:12 UTC (rev 
3254)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_ioctl.c  2004-10-26 09:31:11 UTC (rev 
3255)
@@ -50,6 +50,7 @@
case FSCTL_SET_SPARSE:
/* maybe some posix systems have a way of marking
   a file non-sparse? */
+   io-ntioctl.out.blob = data_blob(NULL, 0);
return NT_STATUS_OK;
}
 
@@ -62,7 +63,7 @@
 NTSTATUS pvfs_ioctl(struct ntvfs_module_context *ntvfs,
struct smbsrv_request *req, union smb_ioctl *io)
 {
-   NTSTATUS status;
+   NTSTATUS status = NT_STATUS_UNSUCCESSFUL;
 
switch (io-generic.level) {
case RAW_IOCTL_IOCTL:

Modified: branches/SAMBA_4_0/source/smb_server/nttrans.c
===
--- branches/SAMBA_4_0/source/smb_server/nttrans.c  2004-10-26 08:41:12 UTC (rev 
3254)
+++ branches/SAMBA_4_0/source/smb_server/nttrans.c  2004-10-26 09:31:11 UTC (rev 
3255)
@@ -221,6 +221,8 @@
 
req_grow_data(req, this_param + this_data + (align1 + align2));
 
+   SSVAL(req-out.vwv, 0, 0); /* reserved */
+   SCVAL(req-out.vwv, 2, 0); /* reserved */
SIVAL(req-out.vwv, 3, trans.out.params.length);
SIVAL(req-out.vwv, 7, trans.out.data.length);
 
@@ -235,7 +237,7 @@
 
SCVAL(req-out.vwv, 35, trans.out.setup_count);
for (i=0;itrans.out.setup_count;i++) {
-   SSVAL(req-out.vwv, VWV(18+i)+1, trans.out.setup[i]);
+   SSVAL(req-out.vwv, VWV(18+i), trans.out.setup[i]);
}
 
memset(req-out.data, 0, align1);



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 09:50:13 + (Tue, 26 Oct 2004)
New Revision: 3257

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rawrev=3257nolog=1

Log:
make the RAW-SEARCH test less sensitive to the servers directory ordering


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


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/search.c
===
--- branches/SAMBA_4_0/source/torture/raw/search.c  2004-10-26 09:32:11 UTC (rev 
3256)
+++ branches/SAMBA_4_0/source/torture/raw/search.c  2004-10-26 09:50:13 UTC (rev 
3257)
@@ -749,7 +749,7 @@
 
printf(Creating %d files\n, num_files);
 
-   for (i=0;inum_files;i++) {
+   for (i=num_files-1;i=0;i--) {
asprintf(fname, BASEDIR \\t%03d-%d.txt, i, i);
fnum = smbcli_open(cli-tree, fname, O_CREAT|O_RDWR, DENY_NONE);
if (fnum == -1) {
@@ -761,7 +761,7 @@
smbcli_close(cli-tree, fnum);
}
 
-   printf(pulling the first 10 files\n);
+   printf(pulling the first 2 files\n);
ZERO_STRUCT(result);
result.mem_ctx = talloc(mem_ctx, 0);
 
@@ -779,7 +779,7 @@

io2.generic.level = RAW_SEARCH_BOTH_DIRECTORY_INFO;
io2.t2fnext.in.handle = io.t2ffirst.out.handle;
-   io2.t2fnext.in.max_count = num_files/2 - 1;
+   io2.t2fnext.in.max_count = 1;
io2.t2fnext.in.resume_key = 0;
io2.t2fnext.in.flags = 0;
if (result.count == 0) {
@@ -791,7 +791,7 @@
status = smb_raw_search_next(cli-tree, mem_ctx,
 io2, result, multiple_search_callback);
CHECK_STATUS(status, NT_STATUS_OK);
-   CHECK_VALUE(result.count, num_files/2);
+   CHECK_VALUE(result.count, 2);
 
printf(Changing attributes and deleting\n);
smbcli_open(cli-tree, BASEDIR \\T003-03.txt.2, O_CREAT|O_RDWR, DENY_NONE);
@@ -809,7 +809,7 @@
 
io2.generic.level = RAW_SEARCH_BOTH_DIRECTORY_INFO;
io2.t2fnext.in.handle = io.t2ffirst.out.handle;
-   io2.t2fnext.in.max_count = num_files/2;
+   io2.t2fnext.in.max_count = num_files - 2;
io2.t2fnext.in.resume_key = 0;
io2.t2fnext.in.flags = 0;
io2.t2fnext.in.last_name = 
result.list[result.count-1].both_directory_info.name.s;
@@ -817,7 +817,7 @@
status = smb_raw_search_next(cli-tree, mem_ctx,
 io2, result, multiple_search_callback);
CHECK_STATUS(status, NT_STATUS_OK);
-   CHECK_VALUE(result.count, 19);
+   CHECK_VALUE(result.count, 20);
 
ret = check_result(result, t009-9.txt, True, FILE_ATTRIBUTE_ARCHIVE);
ret = check_result(result, t014-14.txt, False, 0);
@@ -838,6 +838,7 @@
   result.list[i].both_directory_info.attrib);
}
}
+   exit(1);
 
 done:
smb_raw_exit(cli-session);



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 09:52:00 + (Tue, 26 Oct 2004)
New Revision: 3258

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3258nolog=1

Log:
fixed don't change attribute for RAW_SFILEINFO_BASIC_INFO



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


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c2004-10-26 09:50:13 
UTC (rev 3257)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c2004-10-26 09:52:00 
UTC (rev 3258)
@@ -226,7 +226,7 @@
if (info-basic_info.in.change_time) {
newstats.dos.change_time = info-basic_info.in.change_time;
}
-   if (info-basic_info.in.attrib != FILE_ATTRIBUTE_NORMAL) {
+   if (info-basic_info.in.attrib != 0) {
newstats.dos.attrib = info-basic_info.in.attrib;
}
break;



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 11:10:02 + (Tue, 26 Oct 2004)
New Revision: 3259

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/torture/rawrev=3259nolog=1

Log:
expanded the RAW-SEARCH test some more




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


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/search.c
===
--- branches/SAMBA_4_0/source/torture/raw/search.c  2004-10-26 09:52:00 UTC (rev 
3258)
+++ branches/SAMBA_4_0/source/torture/raw/search.c  2004-10-26 11:10:02 UTC (rev 
3259)
@@ -662,7 +662,7 @@
  QSORT_CAST search_old_compare);
}
 
-   for (i=0;inum_files;i++) {
+   for (i=0;iresult.count;i++) {
const char *s;
if (search_types[t].level == RAW_SEARCH_BOTH_DIRECTORY_INFO) {
s = result.list[i].both_directory_info.name.s;
@@ -761,7 +761,7 @@
smbcli_close(cli-tree, fnum);
}
 
-   printf(pulling the first 2 files\n);
+   printf(pulling the first file\n);
ZERO_STRUCT(result);
result.mem_ctx = talloc(mem_ctx, 0);
 
@@ -777,6 +777,7 @@
CHECK_STATUS(status, NT_STATUS_OK);
CHECK_VALUE(result.count, 1);

+   printf(pulling the second file\n);
io2.generic.level = RAW_SEARCH_BOTH_DIRECTORY_INFO;
io2.t2fnext.in.handle = io.t2ffirst.out.handle;
io2.t2fnext.in.max_count = 1;
@@ -801,6 +802,7 @@
torture_set_file_attribute(cli-tree, BASEDIR \\T015-15.txt, 
FILE_ATTRIBUTE_HIDDEN);
torture_set_file_attribute(cli-tree, BASEDIR \\T016-16.txt, 
FILE_ATTRIBUTE_NORMAL);
torture_set_file_attribute(cli-tree, BASEDIR \\T017-17.txt, 
FILE_ATTRIBUTE_SYSTEM);  
+   torture_set_file_attribute(cli-tree, BASEDIR \\T018-18.txt, 0);  
sfinfo.generic.level = RAW_SFILEINFO_DISPOSITION_INFORMATION;
sfinfo.generic.file.fnum = fnum;
sfinfo.disposition_info.in.delete_on_close = 1;



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 11:11:16 + (Tue, 26 Oct 2004)
New Revision: 3260

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3260nolog=1

Log:
redid the pvfs_dirlist() interface in preparation for a keep
directory open implementation, as opposed to the load the whole
directory interface used now. This will be needed to pass RAW-SEARCH

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


Changeset:
Sorry, the patch is too large (326 lines) to include; please use WebSVN to see it!
WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3260nolog=1


svn commit: lorikeet r105 - in trunk/samba4-ad-thesis: .

2004-10-26 Thread abartlet
Author: abartlet
Date: 2004-10-26 12:27:18 + (Tue, 26 Oct 2004)
New Revision: 105

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=lorikeetpath=/trunk/samba4-ad-thesisrev=105nolog=1

Log:
More review fixes, from dad this time :-)

(I'll have the most globally distributed thesis review team ever at this rate ;-)

Andrew Bartlett

Modified:
   trunk/samba4-ad-thesis/chapters.lyx


Changeset:
Modified: trunk/samba4-ad-thesis/chapters.lyx
===
--- trunk/samba4-ad-thesis/chapters.lyx 2004-10-26 00:42:46 UTC (rev 104)
+++ trunk/samba4-ad-thesis/chapters.lyx 2004-10-26 12:27:18 UTC (rev 105)
@@ -52,14 +52,14 @@
 
 , and forms the culmination of over 3 years personal effort as a member
  of that team.
- As a method of researching the topic of this thesis, I have been working
- on Samba4 since May 2004, developing the authentication and GENSEC security
- subsystems (described in Section 
+ In researching the this thesis, I have been working on Samba4 since May
+ 2004, and developed the authentication and GENSEC security subsystems (describe
+d in Section 
 \begin_inset LatexCommand \ref{sec:GENSEC}
 
 \end_inset 
 
-) and bringing forward some of my previous work into the Samba4 framework.
+) as well as bringing some of my previous work into the Samba4 framework.
 \layout Standard
 
 This thesis contributes solid documentary basis for the work going forward,
@@ -113,13 +113,13 @@
 \end_inset 
 
  demonstrated the ability to join a Microsoft Windows XP Professional client
- to a Samba4 domain.
-  However, as this had not been independently reproduced, in Section 
+ to a Samba4 domain; however this process had not been independently reproduced.
+ In Section 
 \begin_inset LatexCommand \ref{sec:Domain-Join}
 
 \end_inset 
 
- I proceed to do so in my test environment.
+ I proceed to reproduce this in my test environment.
  
 \layout Section
 
@@ -129,17 +129,18 @@
 In developing the new Samba4 infrastructure, the Samba Team decided to implement
  calls in the same way as Microsoft Windows 2003 Server.
  This decision is in line with a policy the Samba Team has consistently
- followed: to, where possible, emulate the latest versions of Microsoft's
- products.
+ followed: to emulate the latest versions of Microsoft's products whereever
+ possible.
   This policy, in part, aims to avoid obsolecence and to take advantage
- of testing which other software vendors conduct against current products.
+ of testing which other software vendors conduct against current Microsoft
+ products.
 \layout Standard
 
 This policy has been hampered in recent years by the significant changes
  made by Microsoft in developing Active Directory.
   The Samba and IBM Blue Directory research teams
 \begin_inset Foot
-collapsed false
+collapsed true
 
 \layout Standard
 
@@ -169,8 +170,9 @@
  biggest change in Windows Authentication since the introduction of Microsoft
  Windows NT.
  Seen as a fundamental shift away from pure password-based authentication
- schemes, the move to Kerberos allowed Microsoft to move to an  industry-standar
-d, extensible authentication scheme, with far more flexibility in implementation.
+ schemes, the migration to Kerberos allowed Microsoft to adopt an  industry-stan
+dard, extensible authentication system, with far more flexibility in implementat
+ion.
 \layout Standard
 
 Though Kerberos, an industry-standard authentication system, was developed
@@ -191,12 +193,12 @@
 .
 \layout Standard
 
-NT4 is now a deprecated technology,
+NT4 is now a legacy technology
 \begin_inset LatexCommand \citep{nt4eol}
 
 \end_inset 
 
- despite the number of sites still running NT4 on both the client and the
+, despite the number of sites still running NT4 on both the client and the
  server.
  Therefore, the challenge is to emulate a much more recent version of Microsoft'
 s offerings.
@@ -204,7 +206,7 @@
 
 Because Kerberos is such key change in Active Directory, and because of
  the lack of documentation for NTLM, this thesis looks at the authentication
- problem is considerable detail.
+ problem in considerable detail.
 \layout Section
 
 More than had been done before 
@@ -212,7 +214,7 @@
 
 The biggest change in Samba4 is the move beyond the CIFS
 \begin_inset Foot
-collapsed false
+collapsed true
 
 \layout Standard
 
@@ -227,7 +229,7 @@
 
  protocol to also include the DCE-RPC
 \begin_inset Foot
-collapsed false
+collapsed true
 
 \layout Standard
 
@@ -245,6 +247,10 @@
  that is carried over CIFS.
  This move to include new protocols and new transports (layered wrappings)
  for existing protocols is perhaps the most characteristic change.
+\layout Comment
+
+Perhaps reword the above.
+ Support for non-CIFS is a defining characteristic of Samba4.
 \layout Standard
 
 The first big change has been to answer DCE-RPC on non-CIFS transports.
@@ -274,8 +280,8 @@
  as the basis for the network login system.
 \layout Standard
 
-Directory servers, 

svn commit: samba r3261 - in branches/SAMBA_4_0/source: lib torture/raw

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 13:16:50 + (Tue, 26 Oct 2004)
New Revision: 3261

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=3261nolog=1

Log:
added seek to RAW-SEARCH test

Modified:
   branches/SAMBA_4_0/source/lib/genrand.c
   branches/SAMBA_4_0/source/torture/raw/search.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/genrand.c
===
--- branches/SAMBA_4_0/source/lib/genrand.c 2004-10-26 11:11:16 UTC (rev 3260)
+++ branches/SAMBA_4_0/source/lib/genrand.c 2004-10-26 13:16:50 UTC (rev 3261)
@@ -261,27 +261,36 @@
  Use the random number generator to generate a random string.
 /
 
-static char c_list[] = 
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_-#.,;
-
-char *generate_random_str(TALLOC_CTX *mem_ctx, size_t len)
+char *generate_random_str_list(TALLOC_CTX *mem_ctx, size_t len, const char *list)
 {
size_t i;
+   size_t list_len = strlen(list);
 
char *retstr = talloc(mem_ctx, len + 1);
+   if (!retstr) return NULL;
 
-   if (!retstr) 
-   return NULL;
+   generate_random_buffer(retstr, len);
+   for (i = 0; i  len; i++) {
+   retstr[i] = list[retstr[i] % list_len];
+   }
+   retstr[i] = '\0';
 
+   return retstr;
+}
+
+char *generate_random_str(TALLOC_CTX *mem_ctx, size_t len)
+{
+   char *retstr;
+   const char *c_list = 
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+_-#.,;
+
 again:
-   generate_random_buffer(retstr, len);
-   for (i = 0; i  len; i++)
-   retstr[i] = c_list[retstr[i] % (sizeof(c_list)-1) ];
+   retstr = generate_random_str_list(mem_ctx, len, c_list);
+   if (!retstr) return NULL;
 
-   retstr[i] = '\0';
-
/* we need to make sure the random string passes basic quality tests
   or it might be rejected by windows as a password */
if (len = 7  !check_password_quality(retstr)) {
+   talloc_free(retstr);
goto again;
}
 

Modified: branches/SAMBA_4_0/source/torture/raw/search.c
===
--- branches/SAMBA_4_0/source/torture/raw/search.c  2004-10-26 11:11:16 UTC (rev 
3260)
+++ branches/SAMBA_4_0/source/torture/raw/search.c  2004-10-26 13:16:50 UTC (rev 
3261)
@@ -811,15 +811,15 @@
 
io2.generic.level = RAW_SEARCH_BOTH_DIRECTORY_INFO;
io2.t2fnext.in.handle = io.t2ffirst.out.handle;
-   io2.t2fnext.in.max_count = num_files - 2;
+   io2.t2fnext.in.max_count = num_files - 1;
io2.t2fnext.in.resume_key = 0;
io2.t2fnext.in.flags = 0;
-   io2.t2fnext.in.last_name = 
result.list[result.count-1].both_directory_info.name.s;
+   io2.t2fnext.in.last_name = 
result.list[result.count-2].both_directory_info.name.s;
 
status = smb_raw_search_next(cli-tree, mem_ctx,
 io2, result, multiple_search_callback);
CHECK_STATUS(status, NT_STATUS_OK);
-   CHECK_VALUE(result.count, 20);
+   CHECK_VALUE(result.count, 21);
 
ret = check_result(result, t009-9.txt, True, FILE_ATTRIBUTE_ARCHIVE);
ret = check_result(result, t014-14.txt, False, 0);
@@ -840,7 +840,6 @@
   result.list[i].both_directory_info.attrib);
}
}
-   exit(1);
 
 done:
smb_raw_exit(cli-session);
@@ -871,7 +870,7 @@
printf(Creating %d files\n, num_files);
 
for (i=0;inum_files;i++) {
-   asprintf(fname, BASEDIR \\%s.txt, generate_random_str(mem_ctx, 10));
+   asprintf(fname, BASEDIR \\%s.txt, generate_random_str_list(mem_ctx, 
10, abcdefgh));
fnum = smbcli_open(cli-tree, fname, O_CREAT|O_RDWR, DENY_NONE);
if (fnum == -1) {
printf(Failed to create %s - %s\n, fname, 
smbcli_errstr(cli-tree));



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 13:18:34 + (Tue, 26 Oct 2004)
New Revision: 3262

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3262nolog=1

Log:
- new pvfs_dirlist code that reopens the directory between search
  calls. This is needed to allow for new files appear during a search
  behaviour

- pvfs now passes RAW-SEARCH


Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_search.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_unlink.c
   branches/SAMBA_4_0/source/ntvfs/posix/vfs_posix.h


Changeset:
Sorry, the patch is too large (463 lines) to include; please use WebSVN to see it!
WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3262nolog=1


svn commit: samba r3263 - in branches/SAMBA_4_0/source/script/tests: .

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 13:19:07 + (Tue, 26 Oct 2004)
New Revision: 3263

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/script/testsrev=3263nolog=1

Log:
- pvfs now passes RAW-SEARCH


Modified:
   branches/SAMBA_4_0/source/script/tests/test_posix.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 13:18:34 
UTC (rev 3262)
+++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 13:19:07 
UTC (rev 3263)
@@ -37,11 +37,11 @@
 tests=$tests BASE-CHKPATH BASE-SECLEAK BASE-TRANS2
 tests=$tests RAW-QFSINFO RAW-QFILEINFO RAW-SFILEINFO-BUG
 tests=$tests RAW-LOCK RAW-MKDIR RAW-SEEK RAW-CONTEXT BASE-RENAME
-tests=$tests RAW-UNLINK RAW-READ RAW-CLOSE RAW-IOCTL
+tests=$tests RAW-UNLINK RAW-READ RAW-CLOSE RAW-IOCTL RAW-SEARCH
 tests=$tests LOCAL-ICONV LOCAL-TALLOC LOCAL-MESSAGING LOCAL-BINDING LOCAL-IDTREE
 
 soon=BASE-DENY1 BASE-DEFER_OPEN BASE-OPENATTR BASE-CHARSET
-soon=$soon RAW-SFILEINFO RAW-SEARCH RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX
+soon=$soon RAW-SFILEINFO RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX
 soon=$soon RAW-CHKPATH RAW-WRITE RAW-RENAME
 soon=$soon BASE-TRANS2
 



svn commit: samba r3264 - in branches/SAMBA_3_0/source/libsmb: .

2004-10-26 Thread jerry
Author: jerry
Date: 2004-10-26 14:22:37 + (Tue, 26 Oct 2004)
New Revision: 3264

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/source/libsmbrev=3264nolog=1

Log:
fix lmhosts lookup so that we don't say we found something when we really didn't
Modified:
   branches/SAMBA_3_0/source/libsmb/namequery.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/namequery.c
===
--- branches/SAMBA_3_0/source/libsmb/namequery.c2004-10-26 13:19:07 UTC (rev 
3263)
+++ branches/SAMBA_3_0/source/libsmb/namequery.c2004-10-26 14:22:37 UTC (rev 
3264)
@@ -847,6 +847,7 @@
pstring lmhost_name;
int name_type2;
struct in_addr return_ip;
+   BOOL result = False;
 
*return_iplist = NULL;
*return_count = 0;
@@ -854,38 +855,42 @@
DEBUG(3,(resolve_lmhosts: Attempting lmhosts lookup for name %s0x%x\n, 
name, name_type));
 
fp = startlmhosts(dyn_LMHOSTSFILE);
-   if(fp) {
-   while (getlmhostsent(fp, lmhost_name, name_type2,
-return_ip)) {
 
-   if (!strequal(name, lmhost_name))
-   continue;
+   if ( fp == NULL )
+   return False;
 
-   if ((name_type2 != -1)  (name_type != name_type2))
-   continue;
+   while (getlmhostsent(fp, lmhost_name, name_type2, return_ip)) 
+   {
 
-   *return_iplist = (struct ip_service *)
-   realloc((*return_iplist),
-   sizeof(struct ip_service) *
-   ((*return_count)+1));
+   if (!strequal(name, lmhost_name))
+   continue;
 
-   if ((*return_iplist) == NULL) {
-   DEBUG(3,(resolve_lmhosts: malloc fail !\n));
-   return False;
-   }
+   if ((name_type2 != -1)  (name_type != name_type2))
+   continue;
 
-   (*return_iplist)[*return_count].ip   = return_ip;
-   (*return_iplist)[*return_count].port = PORT_NONE;
-   *return_count += 1;
+   *return_iplist = (struct ip_service *)realloc((*return_iplist),
+   sizeof(struct ip_service) * ((*return_count)+1));
 
-   /* Multiple names only for DC lookup */
-   if (name_type != 0x1c)
-   break;
+   if ((*return_iplist) == NULL) {
+   DEBUG(3,(resolve_lmhosts: malloc fail !\n));
+   return False;
}
-   endlmhosts(fp);
-   return True;
+
+   (*return_iplist)[*return_count].ip   = return_ip;
+   (*return_iplist)[*return_count].port = PORT_NONE;
+   *return_count += 1;
+
+   /* we found something */
+   result = True;
+
+   /* Multiple names only for DC lookup */
+   if (name_type != 0x1c)
+   break;
}
-   return False;
+
+   endlmhosts(fp);
+
+   return result;
 }
 
 



svn commit: samba r3265 - in branches/SAMBA_3_0_RELEASE/source/libsmb: .

2004-10-26 Thread jerry
Author: jerry
Date: 2004-10-26 14:23:39 + (Tue, 26 Oct 2004)
New Revision: 3265

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0_RELEASE/source/libsmbrev=3265nolog=1

Log:
fix lmhosts lookup so that we don't say we found something when we really didn't
Modified:
   branches/SAMBA_3_0_RELEASE/source/libsmb/namequery.c


Changeset:
Modified: branches/SAMBA_3_0_RELEASE/source/libsmb/namequery.c
===
--- branches/SAMBA_3_0_RELEASE/source/libsmb/namequery.c2004-10-26 14:22:37 
UTC (rev 3264)
+++ branches/SAMBA_3_0_RELEASE/source/libsmb/namequery.c2004-10-26 14:23:39 
UTC (rev 3265)
@@ -847,6 +847,7 @@
pstring lmhost_name;
int name_type2;
struct in_addr return_ip;
+   BOOL result = False;
 
*return_iplist = NULL;
*return_count = 0;
@@ -854,38 +855,42 @@
DEBUG(3,(resolve_lmhosts: Attempting lmhosts lookup for name %s0x%x\n, 
name, name_type));
 
fp = startlmhosts(dyn_LMHOSTSFILE);
-   if(fp) {
-   while (getlmhostsent(fp, lmhost_name, name_type2,
-return_ip)) {
 
-   if (!strequal(name, lmhost_name))
-   continue;
+   if ( fp == NULL )
+   return False;
 
-   if ((name_type2 != -1)  (name_type != name_type2))
-   continue;
+   while (getlmhostsent(fp, lmhost_name, name_type2, return_ip)) 
+   {
 
-   *return_iplist = (struct ip_service *)
-   realloc((*return_iplist),
-   sizeof(struct ip_service) *
-   ((*return_count)+1));
+   if (!strequal(name, lmhost_name))
+   continue;
 
-   if ((*return_iplist) == NULL) {
-   DEBUG(3,(resolve_lmhosts: malloc fail !\n));
-   return False;
-   }
+   if ((name_type2 != -1)  (name_type != name_type2))
+   continue;
 
-   (*return_iplist)[*return_count].ip   = return_ip;
-   (*return_iplist)[*return_count].port = PORT_NONE;
-   *return_count += 1;
+   *return_iplist = (struct ip_service *)realloc((*return_iplist),
+   sizeof(struct ip_service) * ((*return_count)+1));
 
-   /* Multiple names only for DC lookup */
-   if (name_type != 0x1c)
-   break;
+   if ((*return_iplist) == NULL) {
+   DEBUG(3,(resolve_lmhosts: malloc fail !\n));
+   return False;
}
-   endlmhosts(fp);
-   return True;
+
+   (*return_iplist)[*return_count].ip   = return_ip;
+   (*return_iplist)[*return_count].port = PORT_NONE;
+   *return_count += 1;
+
+   /* we found something */
+   result = True;
+
+   /* Multiple names only for DC lookup */
+   if (name_type != 0x1c)
+   break;
}
-   return False;
+
+   endlmhosts(fp);
+
+   return result;
 }
 
 



svn commit: samba-docs r257 - in tags: .

2004-10-26 Thread jerry
Author: jerry
Date: 2004-10-26 14:25:25 + (Tue, 26 Oct 2004)
New Revision: 257

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-docspath=/tagsrev=257nolog=1

Log:
tagging 3.0.8pre2
Added:
   tags/release-3-0-8pre2/


Changeset:
Copied: tags/release-3-0-8pre2 (from rev 256, trunk)



svn commit: samba-web r382 - in trunk: . history

2004-10-26 Thread deryck
Author: deryck
Date: 2004-10-26 15:11:24 + (Tue, 26 Oct 2004)
New Revision: 382

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunkrev=382nolog=1

Log:

Move old release announcement to release history page.
Set latest anchor to 3.0.8pre1 on /samba/index.html.

Just getting ready for new release announcement later
today.

--deryck

Modified:
   trunk/history/index.html
   trunk/index.html


Changeset:
Modified: trunk/history/index.html
===
--- trunk/history/index.html2004-10-25 18:08:12 UTC (rev 381)
+++ trunk/history/index.html2004-10-26 15:11:24 UTC (rev 382)
@@ -6,8 +6,8 @@
 
 div class=latest 
   ul
-  liLatest Release mdash; a href=/samba/index.html#latestSamba 3.0.7/a/li
-  liCurrent Stable Release mdash; a href=/samba/index.html#latestSamba 
3.0.7/a/li !-- Second link will point to #stable on this page when current 
+  liLatest Release mdash; a href=/samba/index.html#latestSamba 
3.0.8pre1/a/li
+  liCurrent Stable Release mdash; a href=#stableSamba 3.0.7/a/li !-- 
Second link will point to #stable on this page when current 
   release is a development release --
   /ul
 /div
@@ -17,6 +17,20 @@
 
 h2Previous Release Announcments/h2
 
+h4a name=stable13 September 2004/a/h4
+
+p class=headlineSamba 3.0.7 Available for Download/p
+
+pThis is the latest stable release of Samba. This is the version
+that production Samba servers should be running for all
+current bug-fixes.  There have been several important issues fixed since
+the 3.0.6 release.
+See the a href=/samba/history/samba-3.0.7.htmluChanges/u section of the 
Release Notes/a for details on exact updates and any changes in behavior./p
+
+pSamba 3.0.7 can be downloaded in a href=/samba/ftp/samba-3.0.7.tar.gzgzipped
+format/a.  The a href=/samba/ftp/samba-3.0.7.tar.ascGPG signature/a is for 
the 
+uncompressed tarball.  a 
href=http://download.samba.org/samba/ftp/Binary_Packages/;Binary packages are 
available/a for several platforms./p
+
 h424 August 2004/h4
 
 p class=headlineCorrected OpenLDAP schema file for Samba 3.0.6/p
@@ -91,7 +105,7 @@
 and Fedora Core 1/2/a can also be downloaded./p
 
 h422 July 2004/h4
-p class=headlinea name=stableSecurity Release - Samba 2.2.10 and 3.0.5 
Available 
+p class=headlineaSecurity Release - Samba 2.2.10 and 3.0.5 Available 
 for Download/a/p
 
 pTwo potential buffer overruns have been discovered in Samba = 3.0.2
@@ -241,22 +255,4 @@
 available on-line as well./p
 
 
-h416 July 2003/h4
-p class=headlineSamba-3.0.0beta3 available for download/p
-
-pThe third (and possibly final) beta release of Samba 3.0.0 is
-available for download. While significantly closer to the final
-release, it should still be considered a non-production release
-provided for testing purposes only. The a href=
-/samba/ftp/beta/source code and GnuPG signatures/a can be
-found on Samba mirrors. RedHat RPMS for 7.3, 8.0 and 9.0 are also
-available in the a href=
-/samba/ftp/Binary_Packages/RedHat/Binary_Packages/a download
-area. Packages for other platforms will follow shortly. The
-a href=/samba/whatsnew/samba-3.0.0beta3.htmlfull release
-notes/a are available on-line as well./p
-pIf all goes well, we will now move onto the Release Candidate
-(RC) stage./p
-
-
 !--#include virtual=footer_history.html --

Modified: trunk/index.html
===
--- trunk/index.html2004-10-25 18:08:12 UTC (rev 381)
+++ trunk/index.html2004-10-26 15:11:24 UTC (rev 382)
@@ -34,7 +34,7 @@
is available as well./p
 
 
-h4a24 September 2004/a/h4
+h424 September 2004/h4
 p class=headlineSamba 3.1.0 Available for Download/p
 
 pWelcome to the first release of the 3.1.0 development branch.
@@ -51,12 +51,10 @@
 p(a href=/samba/ftp/unstable/WHATSNEW-3-1-0.txt...more release 
notes/a)./p
 
 pThe a href=/samba/ftp/unstable/samba-3.1.0.tar.gzSamba 3.1.0
-   source code/a can be downloaded now.  The a 
href=/samba/ftp/unstable/samba-3.1.0.tar.ascGnuPG 
-   signature for the uncompressed tarball/a is also available for download./p
+   source code/a can be downloaded now.  The a 
href=/samba/ftp/unstable/samba-3.1.0.tar.ascGnuPG signature for the uncompressed 
tarball/a is also available for download./p
 
+   p class=headlinea name=latestSamba 3.0.8pre1 Available for Download/a/p
 
-p class=headlineSamba 3.0.8pre1 Available for Download/p
-
 pThis is a preview release of the Samba 3.0.8 code base.
It is bnot/b intended for production use but rather is
provided to allow people to test the bug fixes and new
@@ -68,21 +66,7 @@
signature for the uncompressed tarball/a is also available for download.  
RPMS for 
Redhat 9 and Fedora Core 2 are also a 
href=http://www.samba.org/~jerry/RPMS/samba/;currently available/a./p
 
-h4a13 September 2004/a/h4
-
-p class=headlineSamba 3.0.7 Available for 

svn commit: samba-web r383 - in trunk: .

2004-10-26 Thread jerry
Author: jerry
Date: 2004-10-26 18:27:13 + (Tue, 26 Oct 2004)
New Revision: 383

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunkrev=383nolog=1

Log:
announcing 3.0.8pre2
Modified:
   trunk/index.html


Changeset:
Modified: trunk/index.html
===
--- trunk/index.html2004-10-26 15:11:24 UTC (rev 382)
+++ trunk/index.html2004-10-26 18:27:13 UTC (rev 383)
@@ -9,6 +9,21 @@
 
 h2Current Release/h2
 
+h4a26 October 2004/a/h4
+p class=latestSamba 3.0.8pre2 Available for Download/p
+
+pThis is a preview release of the Samba 3.0.8 code base.
+   It is bnot/b intended for production use but rather is
+   provided to allow people to test the bug fixes and new
+   features in the upcoming 3.0.8 release.  Use at your own
+   risk. (a href=/samba/ftp/pre/WHATSNEW-3-0-8pre2.txtrelease notes/a)/p
+
+pThe a href=/samba/ftp/pre/samba-3.0.8pre2.tar.gzSamba 3.0.8pre1
+   source code/a can be downloaded now.  The a 
href=/samba/ftp/pre/samba-3.0.8pre2.tar.ascGnuPG
+   signature for the uncompressed tarball/a is available for download.  RPMS for
+   Redhat 9 and Fedora Core 2 are also a 
href=http://www.samba.org/~jerry/RPMS/samba/;currently available/a./p
+
+
 h4a05 October 2004/a/h4
 p class=headlineERRATA : Security Notice -- CVE CAN-2004-0815/p
 
@@ -53,7 +68,7 @@
 pThe a href=/samba/ftp/unstable/samba-3.1.0.tar.gzSamba 3.1.0
source code/a can be downloaded now.  The a 
href=/samba/ftp/unstable/samba-3.1.0.tar.ascGnuPG signature for the uncompressed 
tarball/a is also available for download./p
 
-   p class=headlinea name=latestSamba 3.0.8pre1 Available for Download/a/p
+   p class=headlineaSamba 3.0.8pre1 Available for Download/a/p
 
 pThis is a preview release of the Samba 3.0.8 code base.
It is bnot/b intended for production use but rather is



svn commit: samba-web r384 - in trunk: .

2004-10-26 Thread jerry
Author: jerry
Date: 2004-10-26 18:28:43 + (Tue, 26 Oct 2004)
New Revision: 384

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunkrev=384nolog=1

Log:
you never see the typo until its up on the web
Modified:
   trunk/index.html


Changeset:
Modified: trunk/index.html
===
--- trunk/index.html2004-10-26 18:27:13 UTC (rev 383)
+++ trunk/index.html2004-10-26 18:28:43 UTC (rev 384)
@@ -18,7 +18,7 @@
features in the upcoming 3.0.8 release.  Use at your own
risk. (a href=/samba/ftp/pre/WHATSNEW-3-0-8pre2.txtrelease notes/a)/p
 
-pThe a href=/samba/ftp/pre/samba-3.0.8pre2.tar.gzSamba 3.0.8pre1
+pThe a href=/samba/ftp/pre/samba-3.0.8pre2.tar.gzSamba 3.0.8pre2
source code/a can be downloaded now.  The a 
href=/samba/ftp/pre/samba-3.0.8pre2.tar.ascGnuPG
signature for the uncompressed tarball/a is available for download.  RPMS for
Redhat 9 and Fedora Core 2 are also a 
href=http://www.samba.org/~jerry/RPMS/samba/;currently available/a./p



svn commit: samba-web r385 - in trunk: . history news/releases

2004-10-26 Thread deryck
Author: deryck
Date: 2004-10-26 18:54:41 + (Tue, 26 Oct 2004)
New Revision: 385

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunkrev=385nolog=1

Log:

Move 3.0.8pre1 announcement to /samba/history.  Add
news item on new release.  Fix latest anchor on current
release.

--deryck

Added:
   trunk/news/releases/3.0.8pre2.html
Modified:
   trunk/history/index.html
   trunk/index.html


Changeset:
Modified: trunk/history/index.html
===
--- trunk/history/index.html2004-10-26 18:28:43 UTC (rev 384)
+++ trunk/history/index.html2004-10-26 18:54:41 UTC (rev 385)
@@ -6,7 +6,7 @@
 
 div class=latest 
   ul
-  liLatest Release mdash; a href=/samba/index.html#latestSamba 
3.0.8pre1/a/li
+  liLatest Release mdash; a href=/samba/index.html#latestSamba 
3.0.8pre2/a/li
   liCurrent Stable Release mdash; a href=#stableSamba 3.0.7/a/li !-- 
Second link will point to #stable on this page when current 
   release is a development release --
   /ul
@@ -17,6 +17,22 @@
 
 h2Previous Release Announcments/h2
 
+h424 September 2004/h4
+p class=headlineSamba 3.0.8pre1 Available for Download/p
+
+pThis is a preview release of the Samba 3.0.8 code base.
+It is bnot/b intended for production use but rather is
+provided to allow people to test the bug fixes and new
+features in the upcoming 3.0.8 release.  Use at your own
+risk. (a href=/samba/ftp/pre/WHATSNEW-3-0-8pre1.txtrelease notes/a)/p
+
+pThe a href=/samba/ftp/pre/samba-3.0.8pre1.tar.gzSamba 3.0.8pre1
+source code/a can be downloaded now.  The a 
href=/samba/ftp/pre/samba-3.0.8pre1.tar.ascGnuPG signature for the uncompressed 
tarball/a is also 
+available for download.  RPMS for Redhat 9 and Fedora Core 2 are
+also a href=http://www.samba.org/~jerry/RPMS/samba/;currently available/a./p
+
+
+
 h4a name=stable13 September 2004/a/h4
 
 p class=headlineSamba 3.0.7 Available for Download/p
@@ -239,20 +255,4 @@
 notes/a are available on-line as well./p
 
 
-
-h416 August 2003/h4
-p class=headlineSamba-3.0.0 RC1 available for download/p
-
-pThe first release candidate of the Samba 3.0.0 code base is now
-available for download. A release candidate implies that the code
-is very close to a final release, but remember that this is still a
-non-production snapshot intended for testing purposes. Use at your
-own risk. One of the main additions in this release is the stable
-support for both client and server SMB signing. The a href=
-/samba/ftp/rc/source code and GnuPG signatures/a can be found
-on Samba mirrors. The a href=
-/samba/whatsnew/samba-3.0.0rc1.htmlfull release notes/a are
-available on-line as well./p
-
-
 !--#include virtual=footer_history.html --

Modified: trunk/index.html
===
--- trunk/index.html2004-10-26 18:28:43 UTC (rev 384)
+++ trunk/index.html2004-10-26 18:54:41 UTC (rev 385)
@@ -9,8 +9,8 @@
 
 h2Current Release/h2
 
-h4a26 October 2004/a/h4
-p class=latestSamba 3.0.8pre2 Available for Download/p
+h4a name=latest26 October 2004/a/h4
+p class=headlineSamba 3.0.8pre2 Available for Download/p
 
 pThis is a preview release of the Samba 3.0.8 code base.
It is bnot/b intended for production use but rather is
@@ -68,21 +68,7 @@
 pThe a href=/samba/ftp/unstable/samba-3.1.0.tar.gzSamba 3.1.0
source code/a can be downloaded now.  The a 
href=/samba/ftp/unstable/samba-3.1.0.tar.ascGnuPG signature for the uncompressed 
tarball/a is also available for download./p
 
-   p class=headlineaSamba 3.0.8pre1 Available for Download/a/p
-
-pThis is a preview release of the Samba 3.0.8 code base.
-   It is bnot/b intended for production use but rather is
-   provided to allow people to test the bug fixes and new
-   features in the upcoming 3.0.8 release.  Use at your own
-   risk. (a href=/samba/ftp/pre/WHATSNEW-3-0-8pre1.txtrelease notes/a)/p
-
-pThe a href=/samba/ftp/pre/samba-3.0.8pre1.tar.gzSamba 3.0.8pre1
-   source code/a can be downloaded now.  The a 
href=/samba/ftp/pre/samba-3.0.8pre1.tar.ascGnuPG
-   signature for the uncompressed tarball/a is also available for download.  
RPMS for 
-   Redhat 9 and Fedora Core 2 are also a 
href=http://www.samba.org/~jerry/RPMS/samba/;currently available/a./p
-
-
-   
+  
 div class=plugs
   a href=/samba/team/tshirt.htmlimg src=/samba/images/t-small.jpg
 alt=Samba t-shirt //a

Added: trunk/news/releases/3.0.8pre2.html
===
--- trunk/news/releases/3.0.8pre2.html  2004-10-26 18:28:43 UTC (rev 384)
+++ trunk/news/releases/3.0.8pre2.html  2004-10-26 18:54:41 UTC (rev 385)
@@ -0,0 +1,16 @@
+h3a name=3.0.8pre2Samba 3.0.8pre2 Available for Download/a/h3 
+
+div class=article
+pThis is a preview release of the Samba 3.0.8 code base.
+   It is 

svn commit: samba-docs r258 - in trunk/smbdotconf/printing: .

2004-10-26 Thread jerry
Author: jerry
Date: 2004-10-26 18:54:49 + (Tue, 26 Oct 2004)
New Revision: 258

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-docspath=/trunk/smbdotconf/printingrev=258nolog=1

Log:
adding docs for force printername
Added:
   trunk/smbdotconf/printing/forceprintername.xml


Changeset:
Added: trunk/smbdotconf/printing/forceprintername.xml
===
--- trunk/smbdotconf/printing/forceprintername.xml  2004-10-26 14:25:25 UTC (rev 
257)
+++ trunk/smbdotconf/printing/forceprintername.xml  2004-10-26 18:54:49 UTC (rev 
258)
@@ -0,0 +1,39 @@
+samba:parameter name=force printername
+ context=S
+type=boolean
+print=1
+ xmlns:samba=http://samba.org/common;
+description
+paraWhen printing from Windows NT (or later), 
+each printer in filenamesmb.conf/filename has two 
+associated names which can be used by the client.  The first
+is the sharename (or shortname) defined in smb.conf.  This
+is the only printername available for use by Windows 9x clients.
+The second name associated with a printer can be seen when 
+browsing to the Printers (or Printers and Faxes) folder 
+on the Samba server.  This is referred to simply as the printername
+(not to be confused with the parameterprinter name/parameter option).
+/para
+
+paraWhen assigning a new driver to a printer on a remote 
+Windows compatible print server such as Samba, the Windows client
+will rename the printer to match the driver name just uploaded.
+This can result in confusion for users when multiple 
+printers are bound to the same driver.  To prevent Samba from
+allowing the printer's printername to differ from the sharename
+defined in smb.conf, set parameterforce printername = yes/parameter.
+/para
+
+paraBe aware that enabling this parameter may affect migrating
+printers from a Windows server to Samba since Windows has no way to 
+force the sharename and printername to match./para
+
+paraIt is recommended that this parameter's value not be changed
+once the printer is in use by clients as this could cause a user
+not be able to delete printer connections from their local Printers 
+folder./para
+
+/description
+
+value type=defaultno/value
+/samba:parameter



svn commit: samba-web r386 - in trunk: . DTD

2004-10-26 Thread jelmer
Author: jelmer
Date: 2004-10-26 19:48:16 + (Tue, 26 Oct 2004)
New Revision: 386

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunkrev=386nolog=1

Log:
Add two DTD files:
 - passdb (used by pdb_xml)
 - samba-doc (samba-specific DocBook elements)

Added:
   trunk/DTD/
   trunk/DTD/passdb
   trunk/DTD/samba-doc


Changeset:
Added: trunk/DTD/passdb
===
--- trunk/DTD/passdb2004-10-26 18:54:41 UTC (rev 385)
+++ trunk/DTD/passdb2004-10-26 19:48:16 UTC (rev 386)
@@ -0,0 +1,46 @@
+!ELEMENT samba:crypt (#PCDATA)* 
+!ATTLIST samba:crypt type CDATA #REQUIRED 
+
+!ELEMENT samba:password (samba:crypt*) 
+!ATTLIST samba:password last_set CDATA #IMPLIED 
+must_change CDATA #IMPLIED 
+can_change CDATA #IMPLIED
+
+!ELEMENT samba:group (#PCDATA)* 
+!ATTLIST samba:group sid CDATA #REQUIRED 
+   gid CDATA #IMPLIED 
+   
+!ELEMENT samba:domain (#PCDATA)* 
+!ELEMENT samba:fullname (#PCDATA)* 
+!ELEMENT samba:nt_username (#PCDATA)* 
+!ELEMENT samba:logon_script (#PCDATA)* 
+!ELEMENT samba:profile_path (#PCDATA)* 
+!ELEMENT samba:logon_time (#PCDATA)* 
+!ELEMENT samba:logoff_time (#PCDATA)* 
+!ELEMENT samba:kickoff_time (#PCDATA)* 
+!ELEMENT samba:logon_divs (#PCDATA)* 
+!ELEMENT samba:hours_len (#PCDATA)* 
+!ELEMENT samba:unknown_3 (#PCDATA)* 
+!ELEMENT samba:unknown_5 (#PCDATA)* 
+!ELEMENT samba:unknown_6 (#PCDATA)* 
+!ELEMENT samba:homedir (#PCDATA)* 
+!ELEMENT samba:unknown_str (#PCDATA)* 
+!ELEMENT samba:dir_drive (#PCDATA)* 
+!ELEMENT samba:munged_dial (#PCDATA)* 
+!ELEMENT samba:acct_desc (#PCDATA)* 
+!ELEMENT samba:acct_ctrl (#PCDATA)* 
+!ELEMENT samba:workstations (#PCDATA)* 
+
+!ELEMENT samba:user ( samba:group?, samba:domain?, samba:nt_username?, 
samba:fullname?, samba:homedir?, samba:dir_drive?, samba:logon_script?, 
samba:profile_path?, samba:password?, samba:acct_ctrl?,samba:unknown_3?, 
samba:logon_divs?, samba:hours_len?, samba:logon_time?, samba:logoff_time?, 
samba:kickoff_time?,  samba:unknown_5?, samba:unknown_6?, samba:unknown_str?, 
samba:munged_dial?, samba:acct_desc?, samba:workstations?  ) 
+
+!ATTLIST samba:user sid CDATA #REQUIRED 
+   uid CDATA #IMPLIED 
+   name CDATA #REQUIRED
+
+!ELEMENT samba:users (samba:user*) 
+
+!ELEMENT samba (samba:users?) 
+
+!ATTLIST samba
+  xmlns CDATA #FIXED 'http://www.samba.org/samba/DTD/passdb'
+

Added: trunk/DTD/samba-doc
===
--- trunk/DTD/samba-doc 2004-10-26 18:54:41 UTC (rev 385)
+++ trunk/DTD/samba-doc 2004-10-26 19:48:16 UTC (rev 386)
@@ -0,0 +1,6 @@
+!ELEMENT smbconfexample (description,smbconfoption*,smbconfsection*,smbconfblock*)
+!ELEMENT smbconfblock (description,smbconfoption*,smbconfsection*,smbconfblock*)
+!ATTLIST smbconfexample
+   id ID #REQUIRED
+!ATTLIST smbconfblock
+   id ID #REQUIRED



svn commit: samba-web r387 - in trunk/history: .

2004-10-26 Thread deryck
Author: deryck
Date: 2004-10-26 19:59:48 + (Tue, 26 Oct 2004)
New Revision: 387

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunk/historyrev=387nolog=1

Log:

Update security page with current info from last
'ERRATA' security notice.

--deryck

Modified:
   trunk/history/security.html


Changeset:
Modified: trunk/history/security.html
===
--- trunk/history/security.html 2004-10-26 19:48:16 UTC (rev 386)
+++ trunk/history/security.html 2004-10-26 19:59:48 UTC (rev 387)
@@ -23,9 +23,9 @@
   
 tr
 td30 September 2004/td
-tda href=/samba/ftp/samba-2.2.12.tar.gzSamba 2.2.12/a and/or  a 
href=/samba/ftp/patches/security/samba-3.0.5-reduce_name.patchpatch for 
lt;#61;Samba 3.0.5/a
+tda href=/samba/ftp/samba-2.2.12.tar.gzSamba 2.2.12/a and/or  a 
href=/samba/ftp/patches/security/samba-3.0.2a-reduce_name.patchpatch for 
lt;#61;Samba 3.0.2a/a
 tdPotential arbitrary file access/td
-tdSamba 2.2.x lt;#61;2.2.11 and Samba 3.0.x lt;#61;3.0.5/td
+tdSamba 2.2.x lt;#61;2.2.11 and Samba 3.0.x lt;#61;3.0.2a/td
 tda 
href=http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0815;CAN-2004-0815/a/td
 tda href=/samba/history/samba-2.2.12.htmlRelease Notes/a/td
 /tr



svn commit: samba-web r388 - in trunk: GUI support

2004-10-26 Thread deryck
Author: deryck
Date: 2004-10-26 20:45:51 + (Tue, 26 Oct 2004)
New Revision: 388

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunkrev=388nolog=1

Log:

Add a company to UK support list.  Fix a typo or two
on the Portugal list.  Add a webdav servlet to the GUI
page.

--deryck

Modified:
   trunk/GUI/index.html
   trunk/support/portugal.html
   trunk/support/uk.html


Changeset:
Modified: trunk/GUI/index.html
===
--- trunk/GUI/index.html2004-10-26 19:59:48 UTC (rev 387)
+++ trunk/GUI/index.html2004-10-26 20:45:51 UTC (rev 388)
@@ -172,6 +172,15 @@
 
 pa href=http://www.nivel0.net/SmbWebClient;SMB Web Client/a is a single PHP 
script to access Windows Networks similar to Windows Network Environment. It uses 
smbclient./p
 
+h3Davenport WebDAV-SMB Gateway/h3
+pDavenport is a servlet that makes it possible to access samba-shares 
+via webdav through a servlet-container.  It allows access to samba-shares 
+through a firewall/proxy without the need to open the smb-related ports and 
+without a VPN-client.  See 
+a href=http://davenport.sourceforge.net/;http://davenport.sourceforge.net//a 
+for more info./p
+
+
 !--
 
 H2smbedit/H2

Modified: trunk/support/portugal.html
===
--- trunk/support/portugal.html 2004-10-26 19:59:48 UTC (rev 387)
+++ trunk/support/portugal.html 2004-10-26 20:45:51 UTC (rev 388)
@@ -2,7 +2,7 @@
   titleSamba Commercial Support Providers/title
 !--#include virtual=header_support.html --
 
-h2Commericial Support - Portugal/h2
+h2Commercial Support - Portugal/h2
 
 
 !-- Added: 23 October 2004 --
@@ -13,8 +13,8 @@
 Alameda Dr. Antonio Macedo, 119
 4250-053 Porto - Portugal
 
-Phone:  +351-2-8329835
-Fax:+351-2-8329836
+Phone:  +351-22-8329835
+Fax:+351-22-8329836
 
 E-mail: a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a
 Homepage: a href=http://websolut.pt/;http://websolut.pt//a 

Modified: trunk/support/uk.html
===
--- trunk/support/uk.html   2004-10-26 19:59:48 UTC (rev 387)
+++ trunk/support/uk.html   2004-10-26 20:45:51 UTC (rev 388)
@@ -56,7 +56,31 @@
 /small/pre
 
 
+!-- Added: 26 October 2004 --
+hr /
+h3NOTTS/h3
+presmall
+First Alternative
 
+Regions: Notts. and Oxon. 
+High Park Farm, Swinderby Road,  Collingham, Nr. Newark,  Notts NG23 7NZ
++44(0)1636 893673 (Phone)+44(0)870 051 7558 (Fax)
+Email: a href=mailto:[EMAIL PROTECTED][EMAIL PROTECTED]/a
+Web: a href=http://www.firstalt.co.uk;http://www.firstalt.co.uk/a
+
+First Alternative offer a two-day training course on Samba 3, details at:-
+a 
href=http://www.firstalt.co.uk/courses/samba.html;http://www.firstalt.co.uk/courses/samba.html/a
 
+
+We do not offer consulting services, but will run the course at a client site
+anywhere in the UK or Europe.
+We resource the courses well (we think!) with individual PCs for each student,
+and plenty of Microsoft machines for testing, including XP Pro clients,
+Windows 2003 SBS, etc. Full comprehensive course notes are provided for each
+attendee, with both Linux and Solaris platforms covered.
+/small/pre
+
+
+
 !-- Updated: 22 June 2004 --
 hr /
 h3YORKSHIRE/h3
@@ -100,7 +124,7 @@
 We also provide onsite as well as offsite support and consultancy. For
 more information about our services, please visit our website
 a href=http://www.linux4biz.net;http://www.linux4biz.net/a.
-/pre/small
+/small/pre
 
 
 !--#include virtual=footer_support.html --



svn commit: samba r3267 - in branches/SAMBA_4_0/source/lib/tdb: .

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 21:43:34 + (Tue, 26 Oct 2004)
New Revision: 3267

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/lib/tdbrev=3267nolog=1

Log:
make LIBTDB depend on LIBREPLACE. This is needed for building the tdb tools on Solaris.

Modified:
   branches/SAMBA_4_0/source/lib/tdb/config.mk


Changeset:
Modified: branches/SAMBA_4_0/source/lib/tdb/config.mk
===
--- branches/SAMBA_4_0/source/lib/tdb/config.mk 2004-10-26 14:25:15 UTC (rev 3266)
+++ branches/SAMBA_4_0/source/lib/tdb/config.mk 2004-10-26 21:43:34 UTC (rev 3267)
@@ -6,6 +6,8 @@
 ADD_OBJ_FILES = \
lib/tdb/common/tdbutil.o \
lib/tdb/common/spinlock.o
+REQUIRED_SUBSYSTEMS = \
+   LIBREPLACE
 #
 # End SUBSYSTEM LIBLDB
 



svn commit: samba-web r389 - in trunk: . style

2004-10-26 Thread deryck
Author: deryck
Date: 2004-10-26 22:10:08 + (Tue, 26 Oct 2004)
New Revision: 389

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-webpath=/trunkrev=389nolog=1

Log:

Add margins to pre tags on pages using wide.css.  Just
opening open some space on the page, like a blockquote.

Also, I added the second header to the testpage, so the
logo will actually show up, given the new design.

--deryck

Modified:
   trunk/style/wide.css
   trunk/testpage.html


Changeset:
Modified: trunk/style/wide.css
===
--- trunk/style/wide.css2004-10-26 20:45:51 UTC (rev 388)
+++ trunk/style/wide.css2004-10-26 22:10:08 UTC (rev 389)
@@ -23,3 +23,7 @@
width:431px;
height:300px;
 }
+/* Set a global pre style for pages using wide.css */
+pre {
+margin:15px 0 30px 20px;
+}

Modified: trunk/testpage.html
===
--- trunk/testpage.html 2004-10-26 20:45:51 UTC (rev 388)
+++ trunk/testpage.html 2004-10-26 22:10:08 UTC (rev 389)
@@ -1,4 +1,6 @@
 !--#include virtual=/samba/header.html --
+titleTest Page/title
+!--#include virtual=/samba/header2.html --
 
 H1 align=centerThis is a test page/H1
 



svn commit: lorikeet r106 - in trunk/samba4-ad-thesis: .

2004-10-26 Thread abartlet
Author: abartlet
Date: 2004-10-26 22:18:56 + (Tue, 26 Oct 2004)
New Revision: 106

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=lorikeetpath=/trunk/samba4-ad-thesisrev=106nolog=1

Log:
Fix the other 'invisible footnote' (crh's credit) and clarify how we
store and use passwords, from comments by G?\195?\169mes G?\195?\169za
[EMAIL PROTECTED].

Andrew Bartlett


Modified:
   trunk/samba4-ad-thesis/chapters.lyx


Changeset:
Modified: trunk/samba4-ad-thesis/chapters.lyx
===
--- trunk/samba4-ad-thesis/chapters.lyx 2004-10-26 12:27:18 UTC (rev 105)
+++ trunk/samba4-ad-thesis/chapters.lyx 2004-10-26 22:18:56 UTC (rev 106)
@@ -936,24 +936,19 @@
  It keeps track of the common authentication database that is shared by
  the SMB servers in the Domain.
  The SMB servers query the DC when a client requests access to SMB services.
- 
-\begin_inset Foot
-collapsed false
-
-\layout Standard
-
-Image and text (c) Chris Hertel
+ (Image and text (c) Chris Hertel
 \begin_inset LatexCommand \citep{hertel}
 
 \end_inset 
 
-, http://www.ubiqx.org/cifs/figures/smb-15.html
+, 
+\family typewriter 
+http://www.ubiqx.org/cifs/figures/smb-15.html
+\family default 
+)
 \end_inset 
 
 
-\end_inset 
-
-
 \layout Standard
 
 For an authentication system to be secure, it must be possible to trust
@@ -3299,10 +3294,15 @@
 
 A few aspects of the hdb-ldb development created problems, due to the structure
  and assumptions in the original Heimdal code.
- In particular, hdb-ldb is unique in Heimdal in that it contains plain-text
+ In particular, hdb-ldb is unique in Heimdal in that it may contain plain-text
  passwords, not the hashed encryption keys.
- This required a minor code restructure, that has not been included by Heimdal's
- developers into current snapshots.
+ Storing the plaintext password is required when the `store password with
+ reversable encryption' flag is set, and doing so by default has allowed
+ easier initial development.
+ In this case, we `hash' the passwords on the fly, but we can also store
+ the pre-hashed password if the plaintext is not available.
+ These requirements required a minor code restructure, that has now been
+ included by Heimdal's developers into current snapshots.
 \layout Subsection
 
 No PAC at this stage



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

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 22:25:34 + (Tue, 26 Oct 2004)
New Revision: 3268

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/ntvfs/posixrev=3268nolog=1

Log:
- fixed wildcard handling in new dirlist code

- ensure that d_name from readdir is not used after closedir


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


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c
===
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c2004-10-26 21:43:34 
UTC (rev 3267)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c2004-10-26 22:25:34 
UTC (rev 3268)
@@ -28,6 +28,7 @@
struct pvfs_state *pvfs;
BOOL no_wildcard;
char *last_name;
+   const char *pattern;
off_t offset;
DIR *dir;
const char *unix_path;
@@ -60,6 +61,7 @@
 
dir-dir = NULL;
dir-offset = 0;
+   dir-pattern = NULL;
 
return NT_STATUS_OK;
 }
@@ -110,6 +112,11 @@
if (!dir-unix_path) {
return NT_STATUS_NO_MEMORY;
}
+
+   dir-pattern = talloc_strdup(dir, pattern);
+   if (dir-pattern == NULL) {
+   return NT_STATUS_NO_MEMORY;
+   }

dir-dir = opendir(name-full_name);
if (!dir-dir) { 
@@ -147,20 +154,35 @@
dir-offset = *ofs;
}

-   de = readdir(dir-dir);
-   if (de == NULL) {
-   dir-last_name = NULL;
-   dir-end_of_search = True;
-   pvfs_list_hibernate(dir);
-   return NULL;
-   }
+   while ((de = readdir(dir-dir))) {
+   const char *dname = de-d_name;
 
-   dir-offset = telldir(dir-dir);
-   (*ofs) = dir-offset;
+   if (ms_fnmatch(dir-pattern, dname, 
+  dir-pvfs-tcon-smb_conn-negotiate.protocol) != 0) {
+   char *short_name = pvfs_short_name_component(dir-pvfs, dname);
+   if (short_name == NULL ||
+   ms_fnmatch(dir-pattern, short_name, 
+  dir-pvfs-tcon-smb_conn-negotiate.protocol) 
!= 0) {
+   talloc_free(short_name);
+   continue;
+   }
+   talloc_free(short_name);
+   }
 
-   dir-last_name = de-d_name;
+   dir-offset = telldir(dir-dir);
+   (*ofs) = dir-offset;
 
-   return dir-last_name;
+   if (dir-last_name) talloc_free(dir-last_name);
+   dir-last_name = talloc_strdup(dir, de-d_name);
+
+   return dir-last_name;
+   }
+
+   if (dir-last_name) talloc_free(dir-last_name);
+   dir-last_name = NULL;
+   dir-end_of_search = True;
+   pvfs_list_hibernate(dir);
+   return NULL;
 }
 
 /* 
@@ -173,6 +195,10 @@
closedir(dir-dir);
dir-dir = NULL;
}
+   if (!dir-no_wildcard  dir-last_name) {
+   talloc_free(dir-last_name);
+   dir-last_name = NULL;
+   }
 }
 
 
@@ -233,7 +259,8 @@
return status;
}
 
-   if (StrCaseCmp(name, dir-last_name) == 0) {
+   if (dir-last_name 
+   StrCaseCmp(name, dir-last_name) == 0) {
*ofs = dir-offset;
return NT_STATUS_OK;
}
@@ -244,6 +271,8 @@
if (StrCaseCmp(name, de-d_name) == 0) {
dir-offset = telldir(dir-dir);
*ofs = dir-offset;
+   if (dir-last_name) talloc_free(dir-last_name);
+   dir-last_name = talloc_strdup(dir, de-d_name);
return NT_STATUS_OK;
}
}



svn commit: samba r3269 - in branches/SAMBA_4_0/source/auth: .

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 22:42:43 + (Tue, 26 Oct 2004)
New Revision: 3269

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/source/authrev=3269nolog=1

Log:
fixed return value

Modified:
   branches/SAMBA_4_0/source/auth/auth_winbind.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/auth_winbind.c
===
--- branches/SAMBA_4_0/source/auth/auth_winbind.c   2004-10-26 22:25:34 UTC (rev 
3268)
+++ branches/SAMBA_4_0/source/auth/auth_winbind.c   2004-10-26 22:42:43 UTC (rev 
3269)
@@ -124,6 +124,6 @@
if (!NT_STATUS_IS_OK(ret)) {
DEBUG(0,(Failed to register '%s' auth backend!\n,
ops.name));
-   return ret;
}
+   return ret;
 }



svn commit: samba r3270 - in branches/SAMBA_4_0/source: script/tests torture/raw

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 22:44:28 + (Tue, 26 Oct 2004)
New Revision: 3270

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=3270nolog=1

Log:
- added another unlink test

- removed BASE-TRANS2 from the list of tests to be worked on (its
  already in the passes list)


Modified:
   branches/SAMBA_4_0/source/script/tests/test_posix.sh
   branches/SAMBA_4_0/source/torture/raw/unlink.c


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_posix.sh
===
--- branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 22:42:43 
UTC (rev 3269)
+++ branches/SAMBA_4_0/source/script/tests/test_posix.sh2004-10-26 22:44:28 
UTC (rev 3270)
@@ -43,7 +43,6 @@
 soon=BASE-DENY1 BASE-DEFER_OPEN BASE-OPENATTR BASE-CHARSET
 soon=$soon RAW-SFILEINFO RAW-OPEN RAW-OPLOCK RAW-NOTIFY RAW-MUX
 soon=$soon RAW-CHKPATH RAW-WRITE RAW-RENAME
-soon=$soon BASE-TRANS2
 
 for t in $tests; do
 if [ ! -z $start -a $start != $t ]; then

Modified: branches/SAMBA_4_0/source/torture/raw/unlink.c
===
--- branches/SAMBA_4_0/source/torture/raw/unlink.c  2004-10-26 22:42:43 UTC (rev 
3269)
+++ branches/SAMBA_4_0/source/torture/raw/unlink.c  2004-10-26 22:44:28 UTC (rev 
3270)
@@ -73,6 +73,11 @@
status = smb_raw_unlink(cli-tree, io);
CHECK_STATUS(status, NT_STATUS_OK);
 
+   io.in.pattern = fname;
+   io.in.attrib = FILE_ATTRIBUTE_HIDDEN;
+   status = smb_raw_unlink(cli-tree, io);
+   CHECK_STATUS(status, NT_STATUS_OBJECT_NAME_NOT_FOUND);
+
printf(Trying a directory\n);
io.in.pattern = BASEDIR;
io.in.attrib = 0;



svn commit: samba r3271 - in branches/SAMBA_4_0/source: include lib/messaging ntvfs/common smbd torture/local

2004-10-26 Thread tridge
Author: tridge
Date: 2004-10-26 22:45:33 + (Tue, 26 Oct 2004)
New Revision: 3271

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=3271nolog=1

Log:
use struct messaging_context * instead of void * in messaging API


Modified:
   branches/SAMBA_4_0/source/include/messages.h
   branches/SAMBA_4_0/source/lib/messaging/messaging.c
   branches/SAMBA_4_0/source/ntvfs/common/brlock.c
   branches/SAMBA_4_0/source/ntvfs/common/opendb.c
   branches/SAMBA_4_0/source/smbd/service.h
   branches/SAMBA_4_0/source/torture/local/messaging.c


Changeset:
Sorry, the patch is too large (278 lines) to include; please use WebSVN to see it!
WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_4_0/sourcerev=3271nolog=1


svn commit: samba r3272 - in trunk/source: libads utils

2004-10-26 Thread jra
Author: jra
Date: 2004-10-27 00:41:39 + (Wed, 27 Oct 2004)
New Revision: 3272

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/trunk/sourcerev=3272nolog=1

Log:
Ensure we're consistent in the use of strchr_m for '@'.
Jeremy.

Modified:
   trunk/source/libads/ldap.c
   trunk/source/utils/net_ads.c
   trunk/source/utils/ntlm_auth.c


Changeset:
Modified: trunk/source/libads/ldap.c
===
--- trunk/source/libads/ldap.c  2004-10-26 22:45:33 UTC (rev 3271)
+++ trunk/source/libads/ldap.c  2004-10-27 00:41:39 UTC (rev 3272)
@@ -2261,7 +2261,7 @@
   breaks winbindd_getpwnam() */
 
ret = ads_pull_string(ads, mem_ctx, msg, userPrincipalName);
-   if (ret  (p = strchr(ret, '@'))) {
+   if (ret  (p = strchr_m(ret, '@'))) {
*p = 0;
return ret;
}

Modified: trunk/source/utils/net_ads.c
===
--- trunk/source/utils/net_ads.c2004-10-26 22:45:33 UTC (rev 3271)
+++ trunk/source/utils/net_ads.c2004-10-27 00:41:39 UTC (rev 3272)
@@ -169,7 +169,7 @@
 * extract the realm and convert to upper case.
 * This is only used to establish the connection.
 */
-   if ((cp = strchr(ads-auth.user_name, '@'))!=0) {
+   if ((cp = strchr_m(ads-auth.user_name, '@'))!=0) {
*cp++ = '\0';
ads-auth.realm = smb_xstrdup(cp);
strupper_m(ads-auth.realm);
@@ -1163,7 +1163,7 @@
}
 
use_in_memory_ccache();
-   c = strchr(auth_principal, '@');
+   c = strchr_m(auth_principal, '@');
if (c) {
realm = ++c;
} else {

Modified: trunk/source/utils/ntlm_auth.c
===
--- trunk/source/utils/ntlm_auth.c  2004-10-26 22:45:33 UTC (rev 3271)
+++ trunk/source/utils/ntlm_auth.c  2004-10-27 00:41:39 UTC (rev 3272)
@@ -920,7 +920,7 @@
 
if (NT_STATUS_IS_OK(status)) {
 
-   domain = strchr(principal, '@');
+   domain = strchr_m(principal, '@');
 
if (domain == NULL) {
DEBUG(1, (Did not get a valid principal 



svn commit: samba r3273 - in branches/SAMBA_3_0/source: libads utils

2004-10-26 Thread jra
Author: jra
Date: 2004-10-27 00:41:41 + (Wed, 27 Oct 2004)
New Revision: 3273

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=sambapath=/branches/SAMBA_3_0/sourcerev=3273nolog=1

Log:
Ensure we're consistent in the use of strchr_m for '@'.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/libads/ldap.c
   branches/SAMBA_3_0/source/utils/net_ads.c
   branches/SAMBA_3_0/source/utils/ntlm_auth.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/ldap.c
===
--- branches/SAMBA_3_0/source/libads/ldap.c 2004-10-27 00:41:39 UTC (rev 3272)
+++ branches/SAMBA_3_0/source/libads/ldap.c 2004-10-27 00:41:41 UTC (rev 3273)
@@ -2261,7 +2261,7 @@
   breaks winbindd_getpwnam() */
 
ret = ads_pull_string(ads, mem_ctx, msg, userPrincipalName);
-   if (ret  (p = strchr(ret, '@'))) {
+   if (ret  (p = strchr_m(ret, '@'))) {
*p = 0;
return ret;
}

Modified: branches/SAMBA_3_0/source/utils/net_ads.c
===
--- branches/SAMBA_3_0/source/utils/net_ads.c   2004-10-27 00:41:39 UTC (rev 3272)
+++ branches/SAMBA_3_0/source/utils/net_ads.c   2004-10-27 00:41:41 UTC (rev 3273)
@@ -169,7 +169,7 @@
 * extract the realm and convert to upper case.
 * This is only used to establish the connection.
 */
-   if ((cp = strchr(ads-auth.user_name, '@'))!=0) {
+   if ((cp = strchr_m(ads-auth.user_name, '@'))!=0) {
*cp++ = '\0';
ads-auth.realm = smb_xstrdup(cp);
strupper_m(ads-auth.realm);
@@ -1126,7 +1126,7 @@
}
 
use_in_memory_ccache();
-   c = strchr(auth_principal, '@');
+   c = strchr_m(auth_principal, '@');
if (c) {
realm = ++c;
} else {

Modified: branches/SAMBA_3_0/source/utils/ntlm_auth.c
===
--- branches/SAMBA_3_0/source/utils/ntlm_auth.c 2004-10-27 00:41:39 UTC (rev 3272)
+++ branches/SAMBA_3_0/source/utils/ntlm_auth.c 2004-10-27 00:41:41 UTC (rev 3273)
@@ -920,7 +920,7 @@
 
if (NT_STATUS_IS_OK(status)) {
 
-   domain = strchr(principal, '@');
+   domain = strchr_m(principal, '@');
 
if (domain == NULL) {
DEBUG(1, (Did not get a valid principal 



  1   2   >