Re: [Samba] Write Once Read Many share with samba

2008-05-21 Thread Björn Jacke
On 2008-05-18 at 19:03 +1000 Jean-Yves Avenard sent off:
 I am trying to simulate a Write Once Read Many (WORM) drive using Samba.
 Eg. Anyone can write on a drive, but once the file has been written no
 one can delete or modify the file.

try making the shared directory be owned by root:root and mode 1777 and set
the WORM share settings like this:

read only = no
inherit owner = yes
force create mode = 0644
force directory mode = 1777
nt acl support = no

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


[Samba] Fwd: permissions

2008-05-21 Thread solarflow99
I guess not many people use this on here?  perhaps the cups list is a better
place to ask this?


-- Forwarded message --
From: solarflow99 [EMAIL PROTECTED]
Date: May 20, 2008 11:53 AM
Subject: permissions
To: samba@lists.samba.org


Hi, I am trying to run the cupsaddsmb command which uses: smbclient,
rpcclient, adddriver, setdriver commands to do its work.  It seems like it
expects be be root, since it has to write to various places:
/var/spool/cups/tmp/ and /usr/share/cups/drivers.  My question is since I am
using LDAP as the backend, root can't easily be used; does anyone have any
recommendations on how this can be done?

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


RE: [Samba] squid + samba error

2008-05-21 Thread Jason Waters
How many users do you have?  It says you reached your max for mapping.
Try changing

winbind uid = 1-2
winbind gid = 1-2

To

winbind uid = 1-3
winbind gid = 1-3

Jason Waters


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Wilson A. Galafassi Jr.
Sent: Tuesday, May 20, 2008 11:58 PM
To: samba@lists.samba.org
Subject: [Samba] squid + samba error

Hello to all.

I´m using squid + samba to authenticate my users with active directory.

The error occour only in the first time i authenticate an user.

All works fine, but i have this is my logs:

== /var/log/samba/log.winbindd ==
[2008/05/21 00:32:36, 2] nsswitch/winbindd_util.c:add_trusted_domain(171)
  Added domain BUILTIN  S-1-5-32
[2008/05/21 00:32:37, 2]
libsmb/cliconnect.c:cli_session_setup_kerberos(615)
  Doing kerberos session setup
[2008/05/21 00:35:56, 1] nsswitch/winbindd_sid.c:winbindd_sid_to_gid(312)
  Could not get convert sid  from string
[2008/05/21 00:47:01, 1] nsswitch/winbindd_sid.c:winbindd_sid_to_gid(312)
  Could not get convert sid  from string
[2008/05/21 00:48:57, 1] nsswitch/winbindd_sid.c:winbindd_sid_to_gid(312)
  Could not get convert sid  from string

== /var/log/samba/log.winbindd-idmap ==
[2008/05/21 00:47:01, 2] nsswitch/idmap.c:idmap_new_mapping(957)
  gid allocation failed! Can't create mapping
[2008/05/21 00:47:01, 1] nsswitch/idmap_tdb.c:idmap_tdb_allocate_id(470)
  Fatal Error: GID range full!! (max: 2)
[2008/05/21 00:47:01, 2] nsswitch/idmap.c:idmap_new_mapping(957)
  gid allocation failed! Can't create mapping
[2008/05/21 00:47:01, 1] nsswitch/idmap_tdb.c:idmap_tdb_allocate_id(470)
  Fatal Error: GID range full!! (max: 2)
[2008/05/21 00:47:01, 2] nsswitch/idmap.c:idmap_new_mapping(957)
  gid allocation failed! Can't create mapping

my smb.conf

workgroup = DIGITALSTORAGESD
password server = SERVER2003
realm = DIGITALSTORAGESD.LOCAL
security = ADS
netbios name = netserver

# Definiçs do winbind
bind interfaces only = yes
winbind separator = /
winbind uid = 1-2
winbind gid = 1-2
winbind enum users = yes
winbind enum groups = yes
winbind enum groups = yes
winbind use default domain = yes

log file = /var/log/samba/log.%m
log level = 2
max log size = 1000

my samba version: samba-3.0.28a-0

What i can to solve that error?

Thanks,
Wilson Galafassi

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


Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz

*Bump*

Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)


In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is 
still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens 
with Windows XP, Windows Vista, Linux CIFS and Linux smclient clients, 
so it is likely to be a server problem. I'm stuck and I'm hoping a 
bright mind from this list will be able to help!


Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:
I found out this bizarre problem also occurs when I mount the share 
from another Linux system, so it does not appear to be related to 
Windows.


To recap: one of my Samba shares suddenly mysteriously hides all 
existing files, while still working completely normally with any newly 
created files.


The shared directory (/mnt/data/multimedia) looks like this:

drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:08 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2006-07-02 15:49 Audio
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos - Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX

When I mount the share on another Linux system using mount -t cifs, 
the contents look like this:


drwxrwxrwx 11  500  5000 2008-05-17 14:08 .
drwxr-xr-x  4 root root 4096 2008-05-17 14:06 ..
-rwxr--r--  1  500  5006 2008-05-17 14:08 test.txt

The test.txt is a file I created since this problem started and as you 
can see it's the only one visible. I can change its contents on the 
file server and see the changes on the client. I can manipulate the 
file on the client, even create new files, it all works perfectly. But 
I can't see any of the existing files or directories. It's utterly 
bizarre to me.


I tried using smbclient, and it displays the same behaviour, so it 
really looks like the problem is on the server side. I tried 
touching the existing directories but that made no difference either.


Does anyone know what might cause this strange behaviour?

Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:

I am suddenly no longer able to see any existing files on one of my
shares, from my Windows clients.

I have a Linux server (Fedora Core 8) which used to be my firewall and
router as well as file and print server. There are two Samba shares on
it I have mounted on various Windows clients: my home directory and a
multimedia directory with my music and videos, etc. I mount the former
as H: on all my Windows machines and the latter as M:.

Recently I installed a new server to be router and firewall. I kept the
existing server as file server though, only it now no longer has a fixed
IP address, and it is no longer configured to be be the master browser.

Since this change, my Windows clients no longer see the existing files
on the multimedia share! Some strange features of the problem are:

* It occurs on my Windows Vista Home Premium 64-bit machine, as well as
on my Windows XP SP2 machine, in exactly the same way.
* My home directory share doesn't have the problem, I can still see all
the existing files there.
* There are no errors connecting to the share from the Windows side, nor
do I see strange things in the logs on the file server.
* I can still create new files on the share from Windows! The new file
will show up locally on the file server (as verified by logging in with
SSH and checking the shared directory), and my other Windows client will
see the new file as well.
* I can also create new files locally on the file server, and these will
also show up on the Windows clients.
* I can see no difference between the existing files and any new files
created locally or through a Windows client. The file permissions are
all the same.
* The only difference between the two shares is that my home directory
is on the root filesystem (ext3) and the multimedia share
(/mnt/data/multimedia) is on a mounted ext3 file system (/mnt/data). But
this hasn't changed!
* While googling the problem I found some references to a directory
name cache size option which might be related, so I added a directory
name cache size = 0 to my smb.conf, but that made no difference.

I've attached my smb.conf (I've removed all the comments for brevity).
I'll provide any log, trace or debug info if someone tells me how 

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Jason Waters
What parameters are set on the share?  Anything like map system, map
hidden?  Are you using ACL's?  What about giving us an ls -l of a
directory that isn't showing files.  Is it just files or does it happen to
folders too.

Jason Waters


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Pepijn Schmitz
Sent: Wednesday, May 21, 2008 7:38 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

*Bump*

Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)

In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is 
still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens 
with Windows XP, Windows Vista, Linux CIFS and Linux smclient clients, 
so it is likely to be a server problem. I'm stuck and I'm hoping a 
bright mind from this list will be able to help!

Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:
 I found out this bizarre problem also occurs when I mount the share 
 from another Linux system, so it does not appear to be related to 
 Windows.

 To recap: one of my Samba shares suddenly mysteriously hides all 
 existing files, while still working completely normally with any newly 
 created files.

 The shared directory (/mnt/data/multimedia) looks like this:

 drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:08 .
 drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
 drwxr-xr-x  6 pepijn pepijn   4096 2006-07-02 15:49 Audio
 lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos - Foto's
 drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
 drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
 drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
 drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
 -rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
 drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
 drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
 drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
 -r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
 drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX

 When I mount the share on another Linux system using mount -t cifs, 
 the contents look like this:

 drwxrwxrwx 11  500  5000 2008-05-17 14:08 .
 drwxr-xr-x  4 root root 4096 2008-05-17 14:06 ..
 -rwxr--r--  1  500  5006 2008-05-17 14:08 test.txt

 The test.txt is a file I created since this problem started and as you 
 can see it's the only one visible. I can change its contents on the 
 file server and see the changes on the client. I can manipulate the 
 file on the client, even create new files, it all works perfectly. But 
 I can't see any of the existing files or directories. It's utterly 
 bizarre to me.

 I tried using smbclient, and it displays the same behaviour, so it 
 really looks like the problem is on the server side. I tried 
 touching the existing directories but that made no difference either.

 Does anyone know what might cause this strange behaviour?

 Kind regards,
 Pepijn Schmitz

 Pepijn Schmitz wrote:
 I am suddenly no longer able to see any existing files on one of my
 shares, from my Windows clients.

 I have a Linux server (Fedora Core 8) which used to be my firewall and
 router as well as file and print server. There are two Samba shares on
 it I have mounted on various Windows clients: my home directory and a
 multimedia directory with my music and videos, etc. I mount the former
 as H: on all my Windows machines and the latter as M:.

 Recently I installed a new server to be router and firewall. I kept the
 existing server as file server though, only it now no longer has a
fixed
 IP address, and it is no longer configured to be be the master browser.

 Since this change, my Windows clients no longer see the existing files
 on the multimedia share! Some strange features of the problem are:

 * It occurs on my Windows Vista Home Premium 64-bit machine, as well as
 on my Windows XP SP2 machine, in exactly the same way.
 * My home directory share doesn't have the problem, I can still see all
 the existing files there.
 * There are no errors connecting to the share from the Windows side,
nor
 do I see strange things in the logs on the file server.
 * I can still create new files on the share from Windows! The new file
 will show up locally on the file server (as verified by logging in with
 SSH and checking the shared directory), and my other Windows client
will
 see the new file as well.
 * I can also create new files locally on the file server, and these
will
 also show up on the Windows clients.
 * I can see no difference between the existing files and any new files
 created locally or through a Windows client. The file permissions are
 all the same.
 * The only difference 

Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz

Jason Waters wrote:

What parameters are set on the share?  Anything like map system, map
hidden?

This is the share definition:

   [multimedia]
   comment = Multimedia Files
   path = /mnt/data/multimedia
   public = yes
   writable = yes
   printable = no
   write list = pepijn

So no map system or map hidden. I should also note that neither the 
share definition nor the contents of the directory have changed. The 
only thing that happened was that the server, which used to be my router 
and firewall also, is now only a file server and no longer has a static 
IP address.

Are you using ACL's?

I don't think so. How can I tell?

What about giving us an ls -l of a
directory that isn't showing files.

Here's the ouput of ls -al on /mnt/data/multimedia:

total 2260
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
-rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40 
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT

lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos - Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
-rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40 
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT

-rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40 LAST_CHANCE_TO_SEE.TXT
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
-rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
-rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40 
RESTAURANT_END_OF_THE_UNIVERSE.TXT

-rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
-rw-rw-r--  1 pepijn pepijn  24247 2004-09-18 08:40 
YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT


When I mount the share on another Linux system using this command:

sudo mount -t cifs -o user=pepijn //10.0.0.163/multimedia roadrunner/

And then perform an ls -al in the roadrunner directory the output is as 
follows:


total 2052
drwxrwxrwx 115005000 2008-05-17 14:13 .
drwxr-xr-x 22 pepijn pepijn 4096 2008-05-21 13:50 ..
-rwxr--r--  15005005 2008-05-17 14:13 test2.txt
-rwxr--r--  15005006 2008-05-17 14:08 test.txt

As you can see it only show the two test files I created since this 
problem started.

Is it just files or does it happen to
folders too.
  

It happens with both.

Kind regards,
Pepijn Schmitz

Jason Waters


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Pepijn Schmitz
Sent: Wednesday, May 21, 2008 7:38 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

*Bump*

Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)


In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is 
still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens 
with Windows XP, Windows Vista, Linux CIFS and Linux smclient clients, 
so it is likely to be a server problem. I'm stuck and I'm hoping a 
bright mind from this list will be able to help!


Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:
  
I found out this bizarre problem also occurs when I mount the share 
from another Linux system, so it does not appear to be related to 
Windows.


To recap: one of my Samba shares suddenly mysteriously hides all 
existing files, while still working completely normally with any newly 
created files.


The shared directory (/mnt/data/multimedia) looks like this:

drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:08 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2006-07-02 15:49 Audio
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos - Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Jason Waters
Let's see if it's permissions(which is what I think it is).  chmod 777 *
in that directory and then see if it works.  Then we can figure out what
went on.  The uid of 500 of the new file seems strange.

 

Jason Waters

 

From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 7:56 AM
To: Jason Waters
Cc: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

 

Jason Waters wrote: 

What parameters are set on the share?  Anything like map system, map
hidden?

This is the share definition:

[multimedia]
comment = Multimedia Files
path = /mnt/data/multimedia
public = yes
writable = yes
printable = no
write list = pepijn

So no map system or map hidden. I should also note that neither the share
definition nor the contents of the directory have changed. The only thing
that happened was that the server, which used to be my router and firewall
also, is now only a file server and no longer has a static IP address.



Are you using ACL's?

I don't think so. How can I tell?



What about giving us an ls -l of a
directory that isn't showing files.

Here's the ouput of ls -al on /mnt/data/multimedia:

total 2260
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
-rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos - Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
-rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
-rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40 LAST_CHANCE_TO_SEE.TXT
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
-rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
-rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40
RESTAURANT_END_OF_THE_UNIVERSE.TXT
-rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
-rw-rw-r--  1 pepijn pepijn  24247 2004-09-18 08:40
YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT

When I mount the share on another Linux system using this command:

sudo mount -t cifs -o user=pepijn //10.0.0.163/multimedia roadrunner/

And then perform an ls -al in the roadrunner directory the output is as
follows:

total 2052
drwxrwxrwx 115005000 2008-05-17 14:13 .
drwxr-xr-x 22 pepijn pepijn 4096 2008-05-21 13:50 ..
-rwxr--r--  15005005 2008-05-17 14:13 test2.txt
-rwxr--r--  15005006 2008-05-17 14:08 test.txt

As you can see it only show the two test files I created since this
problem started.



Is it just files or does it happen to
folders too.
  

It happens with both.

Kind regards,
Pepijn Schmitz



 
Jason Waters
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Pepijn Schmitz
Sent: Wednesday, May 21, 2008 7:38 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do
 
*Bump*
 
Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)
 
In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is 
still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens 
with Windows XP, Windows Vista, Linux CIFS and Linux smclient clients, 
so it is likely to be a server problem. I'm stuck and I'm hoping a 
bright mind from this list will be able to help!
 
Kind regards,
Pepijn Schmitz
 
Pepijn Schmitz wrote:
  

I found out this bizarre problem also occurs when I mount the share 
from another Linux system, so it does not appear to be related to 
Windows.
 
To recap: one of my Samba shares suddenly mysteriously hides all 
existing files, while still working completely normally with any newly 
created files.
 
The shared directory (/mnt/data/multimedia) looks like this:
 
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:08 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2006-07-02 15:49 Audio
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos - Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Greene, Joe

His directory is already 777 and the 500 is the UID of pepijn on the
serve unless I miss my guess. I also had him check all permissions on
the directories above it to make sure they were at least 755 and they
were. 
BTW Pepijn, you might want o make sure that your userid is the same on
all of your linux boxes.. just check /etc/passwd to make sure username
Pepijn is userid 500, then on any system you have to change it, I
recommend running (as root) 'find / -user olduid -exec chown 500 {}
\;'
This may or may not have any affect on this problem. also check the
usermapping, maybe there is something there. 

Joe Greene
UNIX Systems Administrator
Phone 317-707-2730
Fax 317-707-2397
Hours M-F 7am-4pm

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Jason Waters
Sent: Wednesday, May 21, 2008 8:09 AM
To: samba@lists.samba.org
Subject: RE: [Samba] Existing files don't show up in share, new files do


Let's see if it's permissions(which is what I think it is).  chmod 777 *
in that directory and then see if it works.  Then we can figure out what
went on.  The uid of 500 of the new file seems strange.

 

Jason Waters

 

From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 7:56 AM
To: Jason Waters
Cc: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

 

Jason Waters wrote: 

What parameters are set on the share?  Anything like map system, map
hidden?

This is the share definition:

[multimedia]
comment = Multimedia Files
path = /mnt/data/multimedia
public = yes
writable = yes
printable = no
write list = pepijn

So no map system or map hidden. I should also note that neither the
share
definition nor the contents of the directory have changed. The only
thing
that happened was that the server, which used to be my router and
firewall
also, is now only a file server and no longer has a static IP address.



Are you using ACL's?

I don't think so. How can I tell?



What about giving us an ls -l of a
directory that isn't showing files.

Here's the ouput of ls -al on /mnt/data/multimedia:

total 2260
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
-rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos - Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
-rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
-rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40
LAST_CHANCE_TO_SEE.TXT
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
-rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
-rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40
RESTAURANT_END_OF_THE_UNIVERSE.TXT
-rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
-rw-rw-r--  1 pepijn pepijn  24247 2004-09-18 08:40
YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT

When I mount the share on another Linux system using this command:

sudo mount -t cifs -o user=pepijn //10.0.0.163/multimedia roadrunner/

And then perform an ls -al in the roadrunner directory the output is as
follows:

total 2052
drwxrwxrwx 115005000 2008-05-17 14:13 .
drwxr-xr-x 22 pepijn pepijn 4096 2008-05-21 13:50 ..
-rwxr--r--  15005005 2008-05-17 14:13 test2.txt
-rwxr--r--  15005006 2008-05-17 14:08 test.txt

As you can see it only show the two test files I created since this
problem started.



Is it just files or does it happen to
folders too.
  

It happens with both.

Kind regards,
Pepijn Schmitz



 
Jason Waters
 
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Pepijn Schmitz
Sent: Wednesday, May 21, 2008 7:38 AM
To: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do
 
*Bump*
 
Does this ring a bell with anyone? I'm still at a loss and so it seems 
is everyone else... :-)
 
In short: on one of my existing Samba 3.0 shares (Linux server, ext3 
filesystem) all existing files have suddenly become invisible, but it is

still possible to create, modify and delete new files (and I see no 
differences between these new files and the existing ones). This happens

with Windows XP, 

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Rubin Bennett
Unless I missed it there was no further discussion of ACLs?

Run mount on the linux box and look to see if that filesystem is mounted
with the acl option.  If it was, you can either remountit without ACLs
or reset the ACLs on the filesystem.

Run getfacl on the directory and see if there's anything out of bounds
there; that's quite frankly the only thing I can think of that would
cause this behaviour.  Disappearing files have *always* been due to a
mismatch between Samba permissions and those set by the underlying
filesystem in my experience (10+ years of Samba and counting).  Not to
say that it's impossible you've found something new and different, but
statistics say it's very likely a permissions/ acl issue.

HTH,
Rubin


On Wed, 2008-05-21 at 09:11 -0400, Jason Waters wrote:
 What about settings windows to view hidden files and system files.  Do
 they show up then?
 
 Jason Waters
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Greene, Joe
 Sent: Wednesday, May 21, 2008 8:42 AM
 To: samba@lists.samba.org
 Subject: RE: [Samba] Existing files don't show up in share, new files do
 
 
 His directory is already 777 and the 500 is the UID of pepijn on the
 serve unless I miss my guess. I also had him check all permissions on
 the directories above it to make sure they were at least 755 and they
 were. 
 BTW Pepijn, you might want o make sure that your userid is the same on
 all of your linux boxes.. just check /etc/passwd to make sure username
 Pepijn is userid 500, then on any system you have to change it, I
 recommend running (as root) 'find / -user olduid -exec chown 500 {}
 \;'
 This may or may not have any affect on this problem. also check the
 usermapping, maybe there is something there. 
 
 Joe Greene
 UNIX Systems Administrator
 Phone 317-707-2730
 Fax 317-707-2397
 Hours M-F 7am-4pm
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Jason Waters
 Sent: Wednesday, May 21, 2008 8:09 AM
 To: samba@lists.samba.org
 Subject: RE: [Samba] Existing files don't show up in share, new files do
 
 
 Let's see if it's permissions(which is what I think it is).  chmod 777 *
 in that directory and then see if it works.  Then we can figure out what
 went on.  The uid of 500 of the new file seems strange.
 
  
 
 Jason Waters
 
  
 
 From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 21, 2008 7:56 AM
 To: Jason Waters
 Cc: samba@lists.samba.org
 Subject: Re: [Samba] Existing files don't show up in share, new files do
 
  
 
 Jason Waters wrote: 
 
 What parameters are set on the share?  Anything like map system, map
 hidden?
 
 This is the share definition:
 
 [multimedia]
 comment = Multimedia Files
 path = /mnt/data/multimedia
 public = yes
 writable = yes
 printable = no
 write list = pepijn
 
 So no map system or map hidden. I should also note that neither the
 share
 definition nor the contents of the directory have changed. The only
 thing
 that happened was that the server, which used to be my router and
 firewall
 also, is now only a file server and no longer has a static IP address.
 
 
 
 Are you using ACL's?
 
 I don't think so. How can I tell?
 
 
 
 What about giving us an ls -l of a
 directory that isn't showing files.
 
 Here's the ouput of ls -al on /mnt/data/multimedia:
 
 total 2260
 drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
 drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
 drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
 -rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40
 DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
 lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos - Foto's
 drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
 -rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40
 HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
 -rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40
 LAST_CHANCE_TO_SEE.TXT
 drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
 -rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
 drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
 -rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40
 RESTAURANT_END_OF_THE_UNIVERSE.TXT
 -rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
 drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
 -rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
 -rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
 drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
 drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
 drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
 -r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx
 drwxr-xr-x  4 pepijn pepijn   4096 2007-12-07 22:15 XXX
 -rw-rw-r--  1 pepijn pepijn  24247 2004-09-18 08:40
 YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT
 
 When I mount the share on another Linux system using this command:
 
 

Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz
I tried getfacl on both the share directory and the files within it, but 
it showed only the regular UNIX permissions, no access control lists. 
Nevertheless I tried mounting the filesystem that contains 
/mnt/data/multimedia with noacl, but it made no difference...


Kind regards,
Pepijn Schmitz

Rubin Bennett wrote:

Unless I missed it there was no further discussion of ACLs?

Run mount on the linux box and look to see if that filesystem is mounted
with the acl option.  If it was, you can either remountit without ACLs
or reset the ACLs on the filesystem.

Run getfacl on the directory and see if there's anything out of bounds
there; that's quite frankly the only thing I can think of that would
cause this behaviour.  Disappearing files have *always* been due to a
mismatch between Samba permissions and those set by the underlying
filesystem in my experience (10+ years of Samba and counting).  Not to
say that it's impossible you've found something new and different, but
statistics say it's very likely a permissions/ acl issue.

HTH,
Rubin


On Wed, 2008-05-21 at 09:11 -0400, Jason Waters wrote:
  

What about settings windows to view hidden files and system files.  Do
they show up then?

Jason Waters


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Greene, Joe
Sent: Wednesday, May 21, 2008 8:42 AM
To: samba@lists.samba.org
Subject: RE: [Samba] Existing files don't show up in share, new files do


His directory is already 777 and the 500 is the UID of pepijn on the
serve unless I miss my guess. I also had him check all permissions on
the directories above it to make sure they were at least 755 and they
were. 
BTW Pepijn, you might want o make sure that your userid is the same on

all of your linux boxes.. just check /etc/passwd to make sure username
Pepijn is userid 500, then on any system you have to change it, I
recommend running (as root) 'find / -user olduid -exec chown 500 {}
\;'
This may or may not have any affect on this problem. also check the
usermapping, maybe there is something there. 


Joe Greene
UNIX Systems Administrator
Phone 317-707-2730
Fax 317-707-2397
Hours M-F 7am-4pm

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Jason Waters
Sent: Wednesday, May 21, 2008 8:09 AM
To: samba@lists.samba.org
Subject: RE: [Samba] Existing files don't show up in share, new files do


Let's see if it's permissions(which is what I think it is).  chmod 777 *
in that directory and then see if it works.  Then we can figure out what
went on.  The uid of 500 of the new file seems strange.

 


Jason Waters

 

From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 7:56 AM

To: Jason Waters
Cc: samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

 

Jason Waters wrote: 


What parameters are set on the share?  Anything like map system, map
hidden?

This is the share definition:

[multimedia]
comment = Multimedia Files
path = /mnt/data/multimedia
public = yes
writable = yes
printable = no
write list = pepijn

So no map system or map hidden. I should also note that neither the
share
definition nor the contents of the directory have changed. The only
thing
that happened was that the server, which used to be my router and
firewall
also, is now only a file server and no longer has a static IP address.



Are you using ACL's?

I don't think so. How can I tell?



What about giving us an ls -l of a
directory that isn't showing files.

Here's the ouput of ls -al on /mnt/data/multimedia:

total 2260
drwxrwxrwx 11 pepijn pepijn   4096 2008-05-17 14:13 .
drwxr-xr-x 10 root   root 4096 2008-05-16 19:58 ..
drwxr-xr-x  6 pepijn pepijn   4096 2008-05-17 14:16 Audio
-rw-rw-r--  1 pepijn pepijn 468919 2004-09-18 08:40
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
lrwxrwxrwx  1 pepijn pepijn  6 2005-01-17 22:13 Fotos - Foto's
drwxrwxr-x 41 pepijn pepijn   4096 2008-03-15 23:27 Foto's
-rw-rw-r--  1 pepijn pepijn 292097 2004-09-18 08:40
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
-rw-rw-r--  1 pepijn pepijn 396618 2004-09-18 08:40
LAST_CHANCE_TO_SEE.TXT
drwxrwxr-x  4 pepijn pepijn   4096 2002-07-01 02:32 Martijn
-rw-rw-r--  1 pepijn pepijn 372140 2004-09-18 08:40 MOSTLY_HARMLESS.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2002-03-31 04:48 recycled
-rw-rw-r--  1 pepijn pepijn 333862 2004-09-18 08:40
RESTAURANT_END_OF_THE_UNIVERSE.TXT
-rw-rw-r--  1 pepijn pepijn 296645 2004-09-18 08:40 STARSHIP_TITANIC.TXT
drwxrwxr-x  2 pepijn pepijn   4096 2004-11-28 17:00 temp
-rwxr--r--  1 pepijn pepijn  5 2008-05-17 14:13 test2.txt
-rwxr--r--  1 pepijn pepijn  6 2008-05-17 14:08 test.txt
drwx--  4 pepijn pepijn   4096 2005-07-02 16:17 .Trash-500
drwx--  2 pepijn pepijn   4096 2005-04-02 13:54 .Trash-pepijn
drwxrwxr-x 10 pepijn pepijn   4096 2008-03-15 23:31 Video
-r-xr--r--  1 pepijn pepijn 80 2005-07-10 19:07 volumeid.zbx

[Samba] [Slightly OT] Mac and Samba

2008-05-21 Thread Rubin Bennett
Hello all...
I have a question that is outside the realm of my experience but that
has come up several times recently.

I have a mixed network (some Macs, some PCs) that needs a server.  I'm
going through the standard process of deciding between Samba and a
Windows domain controller, my strong preference being to install
Linux/Samba server.  The sticking point seems to be that the Mac users
need to be able to run Access and Quickbooks, recent versions, neither
of which are ported to the Mac as I understand it.

So my question is this:  When faced with this situation, what do folks
out there do?  Install a Terminal server of some flavor (out of reach
for this tiny non-profit)?  Or is there some simple thing I could do
that would bridge the gap in a cost effective and reasonably easy to
administer way?

Thanks very much in advance,
Rubin
-- 
Rubin Bennett
RB Technologies
http://thatitguy.com
[EMAIL PROTECTED]
(802)223-4448

They that can give up essential liberty to obtain a little
temporary security deserve neither liberty nor safety
  --Benjamin Franklin, Historical Review of Pennsylvania, 1759


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


Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz
I'm slightly closer to finding the cause of this problem. I set the smbd 
log level to 7 and found the following entries when trying to list the 
contents of the share:


[2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
change_to_user uid=(500,500) gid=(0,500)
[2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
call_trans2findfirst: dirtype = 16, maxentries = 1366, 
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
0x104, max_data_bytes = 16644

[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
unix_convert called on file *
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
unix_convert begin: name = *, dirpath = , start = *
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
dir=./, mask = *
[2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
dptr_create dir=./
[2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
creating new dirptr 256 for path ./, expect_close = 1
[2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
dptr_num is 256, wcard = *, attr = 22
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./. fname=.
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./.. fname=..
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat 
[./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat 
[./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] (Permission 
denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat 
[./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./test.txt fname=test.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./test2.txt fname=test2.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
call_trans2findfirst - (2) closing dptr_num 256
[2008/05/21 15:27:05, 4] smbd/dir.c:dptr_close_internal(238)
closing dptr key 256

The Permission denieds correspond exactly to the files and directories 
that are missing. As you can see, it somehow can't stat (whatever that 
is) the existing files, but it can the new files. Which is bizarre, 
since their permissions are the same. We need a real Samba internals 
guru. What exactly is it trying to stat, and how is it possible for that 
to succeed for some files but fail for others while having the same 
permissions?


Kind regards,
Pepijn Schmitz

Rubin Bennett wrote:

Unless I missed it there was no further discussion of ACLs?

Run mount on the linux box and look to see if that filesystem is mounted
with the acl option.  If it was, you can either 

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Jason Waters
Remove any restrictions on the shares.  Like valid user and that sort of
thing.

Jason Waters


-Original Message-
From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 10:08 AM
To: Rubin Bennett
Cc: Jason Waters; samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

I'm slightly closer to finding the cause of this problem. I set the smbd 
log level to 7 and found the following entries when trying to list the 
contents of the share:

[2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
  change_to_user uid=(500,500) gid=(0,500)
[2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
  call_trans2findfirst: dirtype = 16, maxentries = 1366, 
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
0x104, max_data_bytes = 16644
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
  unix_convert called on file *
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
  unix_convert begin: name = *, dirpath = , start = *
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
  dir=./, mask = *
[2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
  dptr_create dir=./
[2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
  creating new dirptr 256 for path ./, expect_close = 1
[2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
  dptr_num is 256, wcard = *, attr = 22
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./. fname=.
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./.. fname=..
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] 
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 
(Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission
denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test.txt fname=test.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test2.txt fname=test2.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
  call_trans2findfirst - (2) closing dptr_num 256
[2008/05/21 15:27:05, 4] smbd/dir.c:dptr_close_internal(238)
  closing dptr key 256

The Permission denieds correspond exactly to the files and directories 
that are missing. As you can see, it somehow can't stat (whatever that 
is) the existing files, but it can the new files. Which is bizarre, 
since their permissions are the same. We need a real Samba internals 

RE: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread stephane . purnelle
It's the unix right which is incorrect.

what is the unix right of the file on the server ?


---
Stéphane PURNELLE [EMAIL PROTECTED]
Service Informatique   Corman S.A.   Tel : 00 32 087/342467

[EMAIL PROTECTED] a écrit sur 
21/05/2008 16:18:41 :

 Remove any restrictions on the shares.  Like valid user and that sort of
 thing.
 
 Jason Waters
 
 
 -Original Message-
 From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, May 21, 2008 10:08 AM
 To: Rubin Bennett
 Cc: Jason Waters; samba@lists.samba.org
 Subject: Re: [Samba] Existing files don't show up in share, new files do
 
 I'm slightly closer to finding the cause of this problem. I set the smbd 

 log level to 7 and found the following entries when trying to list the 
 contents of the share:
 
 [2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
   change_to_user uid=(500,500) gid=(0,500)
 [2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
   call_trans2findfirst: dirtype = 16, maxentries = 1366, 
 close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
 0x104, max_data_bytes = 16644
 [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
   unix_convert called on file *
 [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
   unix_convert begin: name = *, dirpath = , start = *
 [2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
   dir=./, mask = *
 [2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
   dptr_create dir=./
 [2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
   creating new dirptr 256 for path ./, expect_close = 1
 [2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
   dptr_num is 256, wcard = *, attr = 22
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
   get_lanman2_dir_entry found ./. fname=.
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
   get_lanman2_dir_entry found ./.. fname=..
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat 
 [./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat 
 [./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
 (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] 
 (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat 
 [./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
 (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 

 (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission
 denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission 
denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
   get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
   get_lanman2_dir_entry found ./test.txt fname=test.txt
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
   get_lanman2_dir_entry found ./test2.txt fname=test2.txt
 [2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
   

Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Pepijn Schmitz
I tried commenting out the write list = pepijn line and adding a guest 
ok = yes line, but it made no difference, both when logging in as pepijn 
or when logging in as guest.


Kind regards,
Pepijn Schmitz

Jason Waters wrote:

Remove any restrictions on the shares.  Like valid user and that sort of
thing.

Jason Waters


-Original Message-
From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 21, 2008 10:08 AM

To: Rubin Bennett
Cc: Jason Waters; samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

I'm slightly closer to finding the cause of this problem. I set the smbd 
log level to 7 and found the following entries when trying to list the 
contents of the share:


[2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
  change_to_user uid=(500,500) gid=(0,500)
[2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
  call_trans2findfirst: dirtype = 16, maxentries = 1366, 
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
0x104, max_data_bytes = 16644

[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
  unix_convert called on file *
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
  unix_convert begin: name = *, dirpath = , start = *
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
  dir=./, mask = *
[2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
  dptr_create dir=./
[2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
  creating new dirptr 256 for path ./, expect_close = 1
[2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
  dptr_num is 256, wcard = *, attr = 22
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./. fname=.
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./.. fname=..
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 
(Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission
denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test.txt fname=test.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test2.txt fname=test2.txt
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
  call_trans2findfirst - (2) closing dptr_num 256
[2008/05/21 15:27:05, 4] smbd/dir.c:dptr_close_internal(238)
  closing dptr key 256

The Permission denieds correspond exactly to the 

Re: [Samba] Existing files don't show up in share, new files do

2008-05-21 Thread Rubin Bennett
Ok then my guess is that somehow Samba is reverting to nobody/nogroup or
similar guest permissions.  chmod 777 Audio and see what happens?

Rubin
On Wed, 2008-05-21 at 16:09 +0200, Pepijn Schmitz wrote:
 I'm slightly closer to finding the cause of this problem. I set the smbd 
 log level to 7 and found the following entries when trying to list the 
 contents of the share:
 
 [2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
  change_to_user uid=(500,500) gid=(0,500)
 [2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
  call_trans2findfirst: dirtype = 16, maxentries = 1366, 
 close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
 0x104, max_data_bytes = 16644
 [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
  unix_convert called on file *
 [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
  unix_convert begin: name = *, dirpath = , start = *
 [2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
  dir=./, mask = *
 [2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
  dptr_create dir=./
 [2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
  creating new dirptr 256 for path ./, expect_close = 1
 [2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
  dptr_num is 256, wcard = *, attr = 22
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./. fname=.
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./.. fname=..
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
 [./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
 [./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 
 (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Martijn] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./MOSTLY_HARMLESS.TXT] (Permission 
 denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./recycled] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
 [./RESTAURANT_END_OF_THE_UNIVERSE.TXT] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./STARSHIP_TITANIC.TXT] 
 (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./temp] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Video] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT] 
 (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Fotos] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-pepijn] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./.Trash-500] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./volumeid.zbx] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./XXX] (Permission denied)
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test.txt fname=test.txt
 [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./test2.txt fname=test2.txt
 [2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1890)
  call_trans2findfirst - (2) closing dptr_num 256
 [2008/05/21 15:27:05, 4] smbd/dir.c:dptr_close_internal(238)
  closing dptr key 256
 
 The Permission denieds correspond exactly to the files and directories 
 that are missing. As you can see, it somehow can't stat (whatever that 
 is) the existing files, but it can the new files. Which is bizarre, 
 since their permissions are the same. We need a real Samba internals 
 guru. What exactly is it trying to stat, and how is it possible for that 
 to succeed for 

Re: [Samba] Existing files don't show up in share, new files do (Solved!)

2008-05-21 Thread Pepijn Schmitz
I got it. SELinux was causing the problem. Grmbl... I don't know why I 
didn't think to check before, but I took a look in my syslog and saw 
entries like these:


May 21 16:21:29 roadrunner kernel: audit(1211379689.340:4629): avc:  
denied  { getattr } for  pid=13682 comm=smbd 
path=/mnt/data/multimedia/XXX dev=sdb1 ino=28066343 
scontext=system_u:system_r:smbd_t:s0 tcontext=user_u:object_r:file_t:s0 
tclass=dir


I did a ls -Z on /mnt/data/multimedia with the following result:

drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Audio
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT

lrwxrwxrwx  pepijn pepijn user_u:object_r:file_t:s0Fotos - Foto's
drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Foto's
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
LAST_CHANCE_TO_SEE.TXT

drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Martijn
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
MOSTLY_HARMLESS.TXT

drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  recycled
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
RESTAURANT_END_OF_THE_UNIVERSE.TXT
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
STARSHIP_TITANIC.TXT

drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  temp
-rw-rw-r--  pepijn pepijn system_u:object_r:samba_share_t:s0 test2.txt
-rw-rw-r--  pepijn pepijn system_u:object_r:samba_share_t:s0 test.txt
drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Video
-rw-rw-r--  pepijn pepijn user_u:object_r:file_t:s0volumeid.zbx
drwxrwxr-x  pepijn pepijn user_u:object_r:file_t:s0XXX
-rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT


The existing files have a different security context (file_t) than the 
new ones (samba_share_t). I have no idea how or why this has happened, 
and frankly I don't feel like spending any more time to find out 
(although I'm still interested if someone knows more about how this 
could happen). Since the server is now just an internal file server I 
decided just to turn off SELinux. Now the share works perfectly again!


Thanks everyone for your time and patience!

Kind regards,
Pepijn Schmitz

Pepijn Schmitz wrote:
I tried commenting out the write list = pepijn line and adding a guest 
ok = yes line, but it made no difference, both when logging in as 
pepijn or when logging in as guest.


Kind regards,
Pepijn Schmitz

Jason Waters wrote:

Remove any restrictions on the shares.  Like valid user and that sort of
thing.

Jason Waters


-Original Message-
From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
May 21, 2008 10:08 AM

To: Rubin Bennett
Cc: Jason Waters; samba@lists.samba.org
Subject: Re: [Samba] Existing files don't show up in share, new files do

I'm slightly closer to finding the cause of this problem. I set the 
smbd log level to 7 and found the following entries when trying to 
list the contents of the share:


[2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
  change_to_user uid=(500,500) gid=(0,500)
[2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
  call_trans2findfirst: dirtype = 16, maxentries = 1366, 
close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
0x104, max_data_bytes = 16644

[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
  unix_convert called on file *
[2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
  unix_convert begin: name = *, dirpath = , start = *
[2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
  dir=./, mask = *
[2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
  dptr_create dir=./
[2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
  creating new dirptr 256 for path ./, expect_close = 1
[2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
  dptr_num is 256, wcard = *, attr = 22
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./. fname=.
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
  get_lanman2_dir_entry found ./.. fname=..
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat 
[./HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT] (Permission denied)

[2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
  get_lanman2_dir_entry:Couldn't stat [./LAST_CHANCE_TO_SEE.TXT] 

[Samba] Samba4 wouldn't create smbpython

2008-05-21 Thread Martin Faust

Hello,
i have installed samba alpha3, domain-join works fine. But smbpython  
setup/adduser is buggy, so i tried to install newest checkout.

(I also tried it with a new installed machine)
After configure, make, and make install there is no smbpython in  
source/bin. Everyother seems to bee there.
It is a ubuntu with the packets installed mentioned in the tutorial  
plus python and python-dev and build-essential,linux-headers.

I can't see any errors regarding this in the make-msgs.

Anyone an idea were (my) smbpython is?
best regards, Martin Faust

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


Re: [Samba] [Slightly OT] Mac and Samba

2008-05-21 Thread James Peach
2008/5/21 Rubin Bennett [EMAIL PROTECTED]:
 Hello all...
 I have a question that is outside the realm of my experience but that
 has come up several times recently.

 I have a mixed network (some Macs, some PCs) that needs a server.  I'm
 going through the standard process of deciding between Samba and a
 Windows domain controller, my strong preference being to install
 Linux/Samba server.

The Mac won't join to a Samba (NT4-style) domain, only to an Active
Directory domain.

 The sticking point seems to be that the Mac users
 need to be able to run Access and Quickbooks, recent versions, neither
 of which are ported to the Mac as I understand it.

You could run these under Parallels or VMware Fusion.


 So my question is this:  When faced with this situation, what do folks
 out there do?  Install a Terminal server of some flavor (out of reach
 for this tiny non-profit)?  Or is there some simple thing I could do
 that would bridge the gap in a cost effective and reasonably easy to
 administer way?

 Thanks very much in advance,
 Rubin
 --
 Rubin Bennett
 RB Technologies
 http://thatitguy.com
 [EMAIL PROTECTED]
 (802)223-4448

 They that can give up essential liberty to obtain a little
 temporary security deserve neither liberty nor safety
  --Benjamin Franklin, Historical Review of Pennsylvania, 1759


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




-- 
James Peach | [EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] SAMBA PDC with LDAP backend syncing unix/samba accounts ...

2008-05-21 Thread Adam Williams
do the samba accounts already exist in another format such as smbpasswd 
or tdbsam?  if so, use pdbedit -i smbpasswd:/etc/samba/smbpasswd (dunno 
what the command is for tdbsam though)


to have samba and unix passwords changed at the same time, use ldap 
password sync = yes in smb.conf and when a user in windows hits 
ctrl-alt-del and clicks on change password, it will change both at the 
same time.


yogi wrote:

Hi all ,
 I'm running Debian Etch . I just finished
configuring SAMBA
as PDC to authenticate against LDAP server which works.
The system in question uses default debian etch packages.
As My Linix/unix accounts can authenticate against it. The
LDAP works.
I  Used the default shipped smbldap-populate script to
setup SAMBA.
   Everything seems to work as Anonymous User or as
user root.

shark:/etc/samba# smbclient -L shark -N
Anonymous login successful
Domain=[LDAPBIOMAX] OS=[Unix] Server=[Samba 3.0.24]

Share name   Type  Comment
-     ---
netlogonDisk  Network Logon Service
knoppix Disk
IPC$IPC   IPC Service (Samba Server
3.0.24)
Anonymous login successful
Domain=[LDAPBIOMAX] OS=[Unix] Server=[Samba 3.0.24]

Server   Comment
----
SHARKSamba Server 3.0.24


  Now when I try and login as normal user, which i have
enabled
with smbldap-usermod -a  yogesh

smbldap-usershow yogesh

dn: uid=yogesh,ou=People,dc=biomax,dc=de
uid: yogesh
cn: yogesh
objectClass:
account,posixAccount,top,shadowAccount,sambaSamAccount
userPassword: {MD5}.SOMELONGHASH 
shadowLastChange: 12900
shadowMax: 1
loginShell: /bin/bash
uidNumber: 668
gidNumber: 100
homeDirectory: /sk-home/yogesh
sambaPwdLastSet: 0
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
sambaPwdMustChange: 2147483647
displayName: System User
sambaSID: S-1-5-21-4033729970-1053622217-143831336-9886
sambaAcctFlags: [UX ]

-

Now when I try and connect I get the following failure .
shark:/etc/samba# smbclient -L shark -U yogesh
session setup failed: NT_STATUS_LOGON_FAILURE

After Digging thru the logs I figuered that if I enter
password using
smbldap-password . It works.

Now my Stupid questions ?
I already have unix users working of LDAP, How can I
automate the addition of remaining accounts with SAMBA ?

Also whenever a unix user changes passwd samba password is
not updated ?

Any pointers will be of great help.

Thanks in advace
yogesh



  

  


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


[Samba] ADS, NTLM, KRB and other crazy acronyms

2008-05-21 Thread Jason Gerfen

Ok I have a problem and I am not sure how I can go about resolving it.

This environment utilizes a strange configuration I have not seen 
anywhere else.


Kerberos Realm is: REALM.COM

SMB.CONF
realm = REALM.COM

% net ads join
Failed: no servers

If I change it to this:

SMB.CONF
realm = SUB.REALM.COM

% net ads join
'machine' added to 'SUB.REALM.COM'

My problem is not this but I suspect it to be part of the problem. You 
see I can see all users, all groups within the domain but when I try to 
authentication one of these users against the SUB.REALM.COM domain it fails.


Part of the problem here is that our AD setup does not contain valid 
password hashes so any NTLM authentication fails. Is there a way to have 
this ADS server type a member of the SUB.REALM.COM domain but explicitly 
authenticate all users to REALM.COM (Kerberos Realm).


Thanks in advance.

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


Re: [Samba] Unable to join Samba

2008-05-21 Thread Adam Williams

recompile samba?

agustin cruz wrote:
hope I'm in the right place, I trying to join a samba server to Active Directory. 
Samba server FreeBSD 6.2
the Active Directory machine is running Windows 2008 Server 


When I execute net ads join -U Administrator I get the following error

/libexec/ld-elf.so.1: /usr/lib/libkrb5.so.8: Undefined symbol init_error_table

does any body know how to fix this error? If I execute net rpc join -U Administrator 
I get a Join domain lab


here is the smb.conf located in FreeBSD /usr/local/etc/

[global]
   Netbios Name = ROCK
   idmap uid = 1-2
   winbind enum users = yes
   winbind gid = 1-2
   workgroup = LAB
   os level = 20
   winbind enum groups = yes
   socket address = 192.168.124.23
   password server = *
   preferred master = no
   winbind separator = +
   max log size = 50
   log file = /var/log/samba3/log.%m
   encrypt passwords = yes
   dns proxy = no
   realm = lab.net
   security = ADS
   wins server = 192.168.124.23
   wins proxy = no

[homes]
   comment = Home Directories
   valid users = %S
   read only = NO
   browseable = yes
   writable = yes
   create mask = 0777
   admin users = Administrator

[test]
  comment = TestingADintegration
  browseable = yes
  writeable = yes
  path = /home/usr
  inherit acls = yes
  inherit permissions = yes
  directory mask = 700
  valid users = @lab.net+SSCSusers
  admin users = @lab.net+Administrator

Please help? 
Thanks, in advance!

- Augustin

_
Windows Live SkyDrive lets you share files with faraway friends.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_052008-- 
To unsubscribe from this list go to the following URL and read the

instructions:  https://lists.samba.org/mailman/listinfo/samba
  


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


RE: [Samba] [samba 3.0.25c] disappearing printers problem

2008-05-21 Thread Greene, Joe
debug was not turned on, but no errors or access showed when it failed.
I can't try again until the Tuesday after Memorial Day as they are
production servers.. I'll try and get debugs then.



Joe Greene
UNIX Systems Administrator
Phone 317-707-2730
Fax 317-707-2397
Hours M-F 7am-4pm

-Original Message-
From: Jeremy Allison [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 20, 2008 8:58 PM
To: Greene, Joe
Cc: samba@lists.samba.org
Subject: Re: [Samba] [samba 3.0.25c] disappearing printers problem


On Tue, May 20, 2008 at 02:17:27PM -0400, Greene, Joe wrote:
 Scenario: 
 
 Citrix, Win2k3.
 
 Solaris 9 Server - latest Solaris patch Samba 3.0.25c
 
  
 
 Every Monday morning, since applying the latest Solaris patches which
 upgraded samba from 3.0.21b - 3.0.25c, the following occurs. The
Citrix
 clients can no longer print. 
 
 Active directory was also switched to 2003 native mode.
 
  
 
 Sunday night, Citrix servers undergo a weekly reboot. 
 
 Week 1 and 2:Monday morning start of business the Citrix clients
cannot
 print to the Samba print shares. Restart Samba, service restored.
 
 Week 3 and 4: Monday Morning before start of business, restart samba
via
 cron  scheduler,  Start of business, Citrix clients cannot print..
 restart samba again.. service restored.
 
 Week 5: Admin on site. Manually restart samba, test user tries to
print
 and cannot, however smbstatus shows the citrix server connects and
pulls
 the data file for formatting the raw print job, but the print share
 never registers an access. restart samba again, Citrix server pulls
file
 and printer session registers in smbstatus.
 
  
 
 Week 6: I'm dreading this. Rollback to 3.0.21b?

Need more info I'm afraid. What do the debug logs
for smbd say ?

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


Re: [Samba] Re: Write Once Read Many share with samba

2008-05-21 Thread Mike Wilkinson

Hello all,

I've knocked together a vfs module that does this, basically a worm with 
the exception of directories. directories can be renamed if they're 
empty, otherwise it's readonly. I'm not sure what the policy is with 
posting attachments so won't include it here, give me a shout if your 
interested in it.

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


[Samba] could not parse domain user errors

2008-05-21 Thread Jason Gerfen
Hello again. Well I am stuck again. I cannot for the life of me get the 
wbinfo -i username to work properly


Here is some more information pulled from the log.winbind file:
[2008/05/21 11:15:15, 10] nsswitch/winbindd.c:process_request(314)
  process_request: request fn GETPWNAM
[2008/05/21 11:15:15, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(346)
  [14936]: getpwnam smb
[2008/05/21 11:15:15, 5] nsswitch/winbindd_user.c:winbindd_getpwnam(353)
  Could not parse domain user: smb

Any help is appreciated.

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


Re: [Samba] Re: Write Once Read Many share with samba

2008-05-21 Thread Jeremy Allison
On Wed, May 21, 2008 at 01:15:02PM -0400, Mike Wilkinson wrote:
 Hello all,
 
 I've knocked together a vfs module that does this, basically a worm with 
 the exception of directories. directories can be renamed if they're 
 empty, otherwise it's readonly. I'm not sure what the policy is with 
 posting attachments so won't include it here, give me a shout if your 
 interested in it.

If you're willing to post it under your (C) and GPLv3 I'd be happy to
take a look and maybe add it to the official source tree.

Thanks a lot for the help !

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


Re: [Samba] HowTo clear a share using smbclient ?

2008-05-21 Thread Charlie
find /full/path/to/directory -type f  -exec rm {} \;  will delete
all files found below /full/path/to/directory without deleting pipes,
directories, etc.

find /full/path/to/directory -exec rm {} \; will blow out everything.

If you don't use an environment variable for the path you run no
risks.  Admittedly you can get in trouble with find /$FullPath because
some logic error introduced by a maintenance programmer in the future
could cause $FullPath to resolve to the empty string... you might use
one of these tricks:

#1 - bodge up a sandbox

#!/bin/bash
mkdir /tmp/safedir  2/dev/null
if cd /tmp/safedir
  then
find $FullPath  -exec rm {} \;
else
   echo ERROR: Unable to clear $FullPath
fi

#2 - sanity check

#!/bin/bash
if [ -n $FullPath]
  then
  find $FullPath  -exec rm {} \;
else
  echo FATAL ERROR
  echo Moronic programming SNAFU
  echo variable FullPath is empty!
fi

As a general rule, never script file glob wildcards into bash (because
a big directory will make bash's globbing overrun the shell command
line length limitation of your OS) and always put appropriate  sanity
checks into path composition code to detect unset variables.

Hope that helped!
--Charlie


On Wed, May 14, 2008 at 9:15 PM, Michael Heydon [EMAIL PROTECTED] wrote:
 This seems a bit Rube Goldberg to me, you have direct access to the file
 system, why not use it?

 If you are really worried that rm -rf /full/path/to/directory might somehow
 morph into rm -rf / you could do something like:
 su nobody -c rm -rf /full/path/to/directory
 In the event that it did try to delete / it would be limited to files
 writable by nobody.

 I understand being cautious around rm -rf especially when running as root,
 but I think testing and being careful are a better solution than using samba
 to limit access.

 Jon Wilson wrote:

 Good Evening,

 I was wondering if anyone knows how to clear a share on a server using
 a command line interface ?

 Basically I have a [public] share that I would like cleared down every
 night, I've worked out that

 smbclient //apps-srv/public -N -c del * 
 /var/log/samba_public_delete.log 21

 seems to go most of the way to doing what I want - however it doesn't
 delete subdirectories. Is there any easy way to accomplish this ?


 I prefer the idea of running this rather than a 'rm -rf' from the
 command line as I can script this and as it's a public share the
 possibility of deleting anything else is pretty minimal.
 I've seen a few examples of wayward rm command in crons to be wary of
 doing that !

 Any ideas how I could accomplish this ?


 Many Thanks

 Jon



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

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


[Samba] swat password

2008-05-21 Thread Santiago Andres Triana
Hello all,

I'm having trouble logging into swat. Not even root can login! I'm using
Rocks 4.1 (linux cluster based on CentOS) Has anybody experienced this?
Thanks in advance!

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


[Samba] swat password

2008-05-21 Thread Santiago Andres Triana
Hello all,

I'm having trouble logging into swat. Not even root can login! I'm using
Rocks 4.1 (linux cluster based on CentOS) Has anybody experienced this?
Thanks in advance!

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


Re: [Samba] add machine script option

2008-05-21 Thread Charlie
Red Hat linux includes a few extra switches on useradd.  This is from
the RHEL4 man page, but I think Fedora and all recent versions of Red
Hat have these:

   -M The user home directory will not be created, even if the
system wide settings  from  /etc/login.defs is to create home dirs.

   -n A  group having the same name as the user being added to
the system will be created by default. This option will turn off this
Red Hat Linux specific behavior.

Note the -n switch is related to Red Hat's penchant for creating
single-user groups, which makes some sense in a pure RH linux
environment but probably translates very poorly to the flat namespace
shared by users and groups in the Windows world.

I think Suse's been using Thorsten Kukuk's LDAP capable pwutils for
some time, but Red Hat was shipping a fork of the original Jockgrrl
shadowutils that was totally unPAMmed (it directly operated on
/etc/passwd and /etc/shadow) until RHEL5.  I have not yet examined or
tested the RHEL5 stuff to see if they've got PAM working yet, or if
they've managed to shoehorn in LDAP.

If you are using a Red Hat samba server and you need to create machine
trusts in any backend other than vanilla shadow suite (/etc/passwd,
/etc/shadow and friends) you will need to write yourself a custom
script.  If your POSIX authentication backend is NIS, Hesiod or LDAP
you will really really want to involve the person who built the
backend, or failing that the person who currently maintains it.

--Charlie

On Fri, May 16, 2008 at 3:55 PM, Leandro Tracchia [EMAIL PROTECTED] wrote:
 hi, thank you for replying... i do see an -m option which is for creating a
 home directory. i am not actually using Red Hat, i am using the much talked
 about Ubuntu 8.04. i believe Ubuntu is part of the Debian family. which
 distro uses the -M option out of curiosity?? is it SUSE??

 On Fri, May 16, 2008 at 1:26 PM, John H Terpstra [EMAIL PROTECTED] wrote:

 On Friday 16 May 2008 09:46:15 am Leandro Tracchia wrote:
  i'm reading through the samba howto. section 6.2.3 (page 105) shows the
 add
  machine script as follows:
 
  add machine script = /usr/sbin/useradd -d /var/lib/nobody -g 100 -s
  /bin/false -M %u
 
  i have a problem with the -M option. i cannot find this option in
 useradd's
  man page.
 
  can i assume this example is incorrect??
 
  what would be a correct example???

 I am the author of that document.  The problem is that on some Linux
 distributions the -M option is replaced with -m - it means to create
 the
 home directory if it does not exist.  In fact, if I am not mistaken, the
 reference you are referring to specifically relates to this command on Red
 Hat Linux. Corrct?

 FYI: In the real world I would probably NOT include the -M option.

 - John T.

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

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


[Samba] user can not print to cups printer

2008-05-21 Thread Andreas

Hello,

we installed cups, the cups-windows driver and added the printers to 
samba via cupsaddsmb.
As administrators we can print to this printer. When I look into windows 
security tab everyone has the right to print, but when the standard 
users logs in there are two problems:


- the printer does not appear in ther printers windows and I have to add 
it a secont time to the user


- the user has not the right to print to the printers.

Actualy I solved it by printing via http to cups, but the installation 
steps are to complicated. **


Can anyone please tell me if there is something wrong in our smb.conf

Thanks
Andreas

[global]
netbios name = atlas1
netbios aliases = svc-ps
workgroup = verwaltung
server string = Samba
 winbind trusted domains only = Yes
#
admin users = skaltenhauser jschrott ghirber amessavilla apreti 
ablasbichler amoroder fsigmund

wins server = 10.53.5.12
time server = Yes

security = domain
domain master = no
domain logons = no
#
ldap admin dn = uid=sambaadmin,dc=sb-brixen,dc=it
passdb backend = ldapsam:ldap://10.53.5.12/
ldap machine suffix = ou=samba-computers
ldap group suffix = ou=groups
ldap suffix = dc=sb-brixen,dc=it
ldap user suffix = ou=users
ldapsam:trusted = yes

directory security mask =  770
create mask = 0766
directory mask = 0777
printing = cups
dos charset = 850
os level = 200
obey pam restrictions = No
preserve case = yes
enable privileges = yes
show add printer wizard = yes
printcap name = cups
dont descend = /proc,/dev,/etc,/lib,/lost+found,/initrd
short preserve case = yes
max log size = 10
log level = 0
log file = /var/log/samba/%U.log
load printers = Yes
hide unreadable = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
mangling method = hash2
deadtime = 10
map to guest = Bad User
username map = /etc/samba/smbusers
encrypt passwords = Yes
case sensitive = no
syslog = 0
unix charset = ISO8859-1


[printers]
comment = Network Printers
printer admin = @Print Operators
guest ok = yes
printable = yes
path = /var/spool/samba
browseable = No
public = yes

[print$]
comment =  Drucker Treiber
path = /etc/samba/drivers
guest ok = No
browseable = Yes
read only = Yes

write list = @Print Operators




** IPP Installation

Add the printer via samba share
Add a second printer via IPP, chose a standard printer driver
change the driver in this second printer to the cups one
delete the first printer.

Not very clean

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


Re: [Samba] smb_ldap_setup_connection failed with blank user Password

2008-05-21 Thread Charlie
It looks like your LDAP backend is rejecting the bind - if the backend
was OpenLDAP, this would be because the LDAP administrator disabled
anonymous (passwordless) binds.  I don't know eDirectory, I jumped
ship on NDS years ago.

That's all I know, sorry.
--Charlie

On Sat, May 17, 2008 at 5:56 AM, Thomas Reiß [EMAIL PROTECTED] wrote:
 Hi,

 i have a succesfully PDC Setup on a Novell/Suse OES1 SP2 Server with
 eDirectory/LDAP and Samba Version 3.0.26a-0.7-1616-SUSE-SLES9.

 Only Problem is, a User with a blank Password can't be authenticated on
 a Domain Member Server (Users with Passwords doesn't have this Problem).

 A Samba Level 10 Log show me this:

 snip

 [2008/05/14 16:25:48, 9]
 passdb/passdb.c:pdb_update_autolock_flag(1418)
 pdb_update_autolock_flag: Account user not autolocked, no check
 needed
 [2008/05/14 16:25:48, 4] libsmb/ntlm_check.c:ntlm_password_check(326)
 ntlm_password_check: Checking NT MD4 password
 [2008/05/14 16:25:48, 5]
 passdb/pdb_nds.c:pdb_nds_update_login_attempts(770)
 pdb_nds_update_login_attempts: Successful login for user
 [2008/05/14 16:25:48, 3]
 passdb/pdb_nds.c:pdb_nds_update_login_attempts(797)
 pdb_nds_update_login_attempts: username user found dn
 'cn=user,ou=stat,o=TKH'
 [2008/05/14 16:25:48, 5] passdb/pdb_nds.c:pdb_nds_get_password(677)
 NDS Universal Password retrieved for cn=user,ou=stat,o=TKH
 [2008/05/14 16:25:48, 10]  lib/smbldap.c:smb_ldap_setup_conn(630)
 smb_ldap_setup_connection: ldaps://172.30.10.25:636
 [2008/05/14 16:25:51, 5]
 passdb/pdb_nds.c:pdb_nds_update_login_attempts(825)
 pdb_nds_update_login_attempts: ldap_simple_bind_s Failed for user

 snip

 This one looks to be the Problem:

 smb_ldap_setup_connection: ldaps://172.30.10.25:636


 What is the Problem?
 Is there a way to avoid this?

 Thomas

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

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


[Samba] Looking for a set of definitive answers (long)

2008-05-21 Thread Avery Payne
Question:

We recently moved to a Samba-based file server, which holds mission-
critical data on it (.dbf files used by our Accounting software, etc.)  
The goal was to create a file server that had excellent performance while 
providing Volume Management, but we felt that something like Veritas was 
overkill for our needs.  

Design Goals:
- Redundant Hardware
- Manual Failover (this was an acceptable solution)
- Very large storage capacity (minimum 1 Terabyte)
- Better than 100Mbyte/sec throughput
- Volume Management, Journaled Filesystem
- Drop-In Replacement for aging Win2k file server
- Use existing admin tools to avoid retraining


The proposed solution was a Samba file server running on a pair of 
redundant servers, with one connected to an eSATA raid box, with LVM and 
Ext3 providing volume management and journaling.  Our transition was a 
bit rough, but in the end it has been very stable and fast.  We have been 
really pleased with the performance of the hardware/software combo, 
seeing sustained throughput of about 250Mbyte/sec with peaks as high as 
300Mbyte/sec.  But along the way, we encountered some oddities, and I 
have some remaining questions.

First, the oddities (long-time Samba devs and admins, take this with a 
grain of salt, when I say oddity I mean it from the perspective of an 
experienced Windows administrator):

- File permissions do not behave as expected (from the viewpoint of other 
staff working with the server).

The *nix permission bits cause a user, group, and Everyone entry to 
become permanent and persistent.  There was some initial grousing over 
this fact as our long-time Windows admin scratched his head over why he 
couldn't remove these entries as he saw fit.  After explaining that there 
would always be three settings no matter what, that they could never be 
deleted, and that they represented actual filesystem-level bits that 
wouldn't go away, it was accepted.  I didn't notice if this was in the 
docs or not, but I certainly didn't find it.  It also meant enabling ACLs 
on all of the filesystems and doing some creative thinking with the 
permissions.  The closest I could do was to map all files as owner root, 
group set to Domain Admins, and Everyone set to disallowed; members of 
the IT staff would be mapped with the admin users parameter; from 
there, any additional permissions would be mapped via ACLs.  We've found 
that this method has the closest behavior to a real Windows server and 
has satisfied everyone.

- Permissions don't propigate through the filesystem.

On a Real Windows Box(tm) you would be able to set permissions at the 
parent level of a directory and have them show up for each child object.  
Because the filesystem semantics are not the same in *nix-land, you need 
to go into the directly and manually propigate the permissions, or if 
you're stuck trying to administer permissions through a windows session 
(like the other IT staffers in my department), using the Advanced setting 
to force-reset all permissions on all child objects.  This has also 
caused a bit of grousing as we have several nested directories with a 
heiarchy of permissions; getting one parent directory wrong means 
rebuilding permissions for several child directories as well.  I have 
never been able to get a satisfactory answer as to how to resolve this 
issue, other than the process I described above (which I had to resolve 
for myself without documentation).

- To oplock or not to oplock: that is the question

The documentation is not entirely clear about when you should and 
shouldn't use oplocks on shared files.  It would have been much simplier 
(IMHO) to simply say use your best judgement, BUT if you are using 
shared data files like Access or Excel or DBF's, you will want to disable 
them or you'll have problems!.  Yes those words show up on newsgroups, 
but it should also show up in the documentation clearly.

- Office file locking workaround(s) were not immediately obvious

Buried in the nice (but large) Official Samba Reference and HOWTO is a 
fix for sharing Word and Excel files through Samba, which involves using 
the sticky bit for group permissions.  While the fix was adequate and 
works well, it should have been I think a little more prominently 
displayed in the documentation.

- What?  You want me to unlock that file?

We have had recurring instances where a workstation on the network has 
seized a DBF file and held onto it, not allowing any other workstation or 
server to perform writes to the file.  This locking issue shows up in 
random intervals and always requires that we have the person quit the 
program we are using and log back in.  It is not an application issue 
that we can determine - the rest of the system continues to funciton, it 
just prevents one of our servers (or anyone else) from locking the file.

- Speaking of which - just WHO does have that file lock?

For some reason, using the computer management tool in a windows 
workstation shows 

Re: [Samba] [Slightly OT] Mac and Samba

2008-05-21 Thread Steve Thompson

On Wed, 21 May 2008, James Peach wrote:


The Mac won't join to a Samba (NT4-style) domain, only to an Active
Directory domain.


I have several Macs (Tiger) joined to a Samba-hosted domain with no 
problems. Haven't tried it with Leopard, though.


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


[Samba] Re: swat password

2008-05-21 Thread Santiago Andres Triana
Thanks for your reply Vickie,

I actually have the OS root password and samba root password identical. I
did it issuing the command smbpasswd -a root and setting the password as the
same for the OS but swat still won't let me in...

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


Re: [Samba] Looking for a set of definitive answers (long)

2008-05-21 Thread Jeremy Allison
On Wed, May 21, 2008 at 06:47:52PM +, Avery Payne wrote:
 Question:
 
 We recently moved to a Samba-based file server, which holds mission-
 critical data on it (.dbf files used by our Accounting software, etc.)  
 The goal was to create a file server that had excellent performance while 
 providing Volume Management, but we felt that something like Veritas was 
 overkill for our needs.  
 
 Design Goals:
 - Redundant Hardware
 - Manual Failover (this was an acceptable solution)
 - Very large storage capacity (minimum 1 Terabyte)
 - Better than 100Mbyte/sec throughput
 - Volume Management, Journaled Filesystem
 - Drop-In Replacement for aging Win2k file server
 - Use existing admin tools to avoid retraining
 
 
 The proposed solution was a Samba file server running on a pair of 
 redundant servers, with one connected to an eSATA raid box, with LVM and 
 Ext3 providing volume management and journaling.  Our transition was a 
 bit rough, but in the end it has been very stable and fast.  We have been 
 really pleased with the performance of the hardware/software combo, 
 seeing sustained throughput of about 250Mbyte/sec with peaks as high as 
 300Mbyte/sec.  But along the way, we encountered some oddities, and I 
 have some remaining questions.
 
 First, the oddities (long-time Samba devs and admins, take this with a 
 grain of salt, when I say oddity I mean it from the perspective of an 
 experienced Windows administrator):

Great post, thanks for writing it !

I always appreciate it when users come and tell us about their
experiences, and where we can improve.

Now onto the specifics:

 - File permissions do not behave as expected (from the viewpoint of other 
 staff working with the server).

Yes, ACLs are just different between UNIX  Windows. We map Windows
ACLs onto POSIX as best as we can, but the mapping is not perfect.
The goal is to make the two common cases : these groups and user
fred have access, and these groups but *not* user fred have access
as intuitive as possible.

For 3.3 we're planning to overlay a Windows ACL model that will
allow perfect Windows ACL restrictions to be added to Samba,
but not perfect Windows ACL allowances (ie. we'll store the
Windows ACLs and use them to restrict access early on access
denied returns, but still map down to POSIX to allow the underlying
file permissions to take effect).

Hopefully this might help you.

 - To oplock or not to oplock: that is the question
 
 The documentation is not entirely clear about when you should and 
 shouldn't use oplocks on shared files.  It would have been much simplier 
 (IMHO) to simply say use your best judgement, BUT if you are using 
 shared data files like Access or Excel or DBF's, you will want to disable 
 them or you'll have problems!.  Yes those words show up on newsgroups, 
 but it should also show up in the documentation clearly.

Ok, I believe we are *identical* w.r.t. Windows as far as
oplocks go. If the vendor says disable oplocks with Windows,
disable them with Samba also. If not, leave them in place.

 - Office file locking workaround(s) were not immediately obvious
 
 Buried in the nice (but large) Official Samba Reference and HOWTO is a 
 fix for sharing Word and Excel files through Samba, which involves using 
 the sticky bit for group permissions.  While the fix was adequate and 
 works well, it should have been I think a little more prominently 
 displayed in the documentation.

Can you point that out to me. We've done more work on ACL compatibility
with 3.0.28a and I believe that fix may not now be needed.

 - What?  You want me to unlock that file?
 
 We have had recurring instances where a workstation on the network has 
 seized a DBF file and held onto it, not allowing any other workstation or 
 server to perform writes to the file.  This locking issue shows up in 
 random intervals and always requires that we have the person quit the 
 program we are using and log back in.  It is not an application issue 
 that we can determine - the rest of the system continues to funciton, it 
 just prevents one of our servers (or anyone else) from locking the file.

Sounds like a bug to me. Not sure where, client app or Samba. Need
more info on this.

 - Speaking of which - just WHO does have that file lock?
 
 For some reason, using the computer management tool in a windows 
 workstation shows stale information.  In our past arrangement, we were 
 able to determine who would have the locked file by simply connecting the 
 tool to the server, and sorting on the number of locks present; the tool 
 would show the data file with a lock count greater than zero.  Apparently 
 this doesn't fly when connecting to the Samba server - it shows files 
 open, but the lock count is for ALL locks (including reads) and not just 
 write locks.

This seems like a Samba dificiency with that tool. You should be
able to get that info by running smbstatus on the Samba box.

 - You sure you still have that file open?  It says you 

Re: [Samba] Existing files don't show up in share, new files do (Solved!)

2008-05-21 Thread Rubin Bennett
Glad to hear it!  Damn SELinux *grumble*.

I shoulda thought of that too :)

Rubin

On Wed, 2008-05-21 at 17:20 +0200, Pepijn Schmitz wrote:
 I got it. SELinux was causing the problem. Grmbl... I don't know why I 
 didn't think to check before, but I took a look in my syslog and saw 
 entries like these:
 
 May 21 16:21:29 roadrunner kernel: audit(1211379689.340:4629): avc:  
 denied  { getattr } for  pid=13682 comm=smbd 
 path=/mnt/data/multimedia/XXX dev=sdb1 ino=28066343 
 scontext=system_u:system_r:smbd_t:s0 tcontext=user_u:object_r:file_t:s0 
 tclass=dir
 
 I did a ls -Z on /mnt/data/multimedia with the following result:
 
 drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Audio
 -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
 DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT
 lrwxrwxrwx  pepijn pepijn user_u:object_r:file_t:s0Fotos - Foto's
 drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Foto's
 -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
 HITCHHIKER'S_GUIDE_TO_THE_GALAXY.TXT
 -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
 LAST_CHANCE_TO_SEE.TXT
 drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Martijn
 -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
 MOSTLY_HARMLESS.TXT
 drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  recycled
 -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
 RESTAURANT_END_OF_THE_UNIVERSE.TXT
 -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
 STARSHIP_TITANIC.TXT
 drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  temp
 -rw-rw-r--  pepijn pepijn system_u:object_r:samba_share_t:s0 test2.txt
 -rw-rw-r--  pepijn pepijn system_u:object_r:samba_share_t:s0 test.txt
 drwxrwxr-x  pepijn pepijn system_u:object_r:file_t:s0  Video
 -rw-rw-r--  pepijn pepijn user_u:object_r:file_t:s0volumeid.zbx
 drwxrwxr-x  pepijn pepijn user_u:object_r:file_t:s0XXX
 -rw-rw-r--  pepijn pepijn system_u:object_r:file_t:s0  
 YOUNG_ZAPHOD_PLAYS_IT_SAFE.TXT
 
 The existing files have a different security context (file_t) than the 
 new ones (samba_share_t). I have no idea how or why this has happened, 
 and frankly I don't feel like spending any more time to find out 
 (although I'm still interested if someone knows more about how this 
 could happen). Since the server is now just an internal file server I 
 decided just to turn off SELinux. Now the share works perfectly again!
 
 Thanks everyone for your time and patience!
 
 Kind regards,
 Pepijn Schmitz
 
 Pepijn Schmitz wrote:
  I tried commenting out the write list = pepijn line and adding a guest 
  ok = yes line, but it made no difference, both when logging in as 
  pepijn or when logging in as guest.
 
  Kind regards,
  Pepijn Schmitz
 
  Jason Waters wrote:
  Remove any restrictions on the shares.  Like valid user and that sort of
  thing.
 
  Jason Waters
 
 
  -Original Message-
  From: Pepijn Schmitz [mailto:[EMAIL PROTECTED] Sent: Wednesday, 
  May 21, 2008 10:08 AM
  To: Rubin Bennett
  Cc: Jason Waters; samba@lists.samba.org
  Subject: Re: [Samba] Existing files don't show up in share, new files do
 
  I'm slightly closer to finding the cause of this problem. I set the 
  smbd log level to 7 and found the following entries when trying to 
  list the contents of the share:
 
  [2008/05/21 15:27:05, 5] smbd/uid.c:change_to_user(273)
change_to_user uid=(500,500) gid=(0,500)
  [2008/05/21 15:27:05, 3] smbd/trans2.c:call_trans2findfirst(1704)
call_trans2findfirst: dirtype = 16, maxentries = 1366, 
  close_after_first=0, close_if_end = 2 requires_resume_key = 4 level = 
  0x104, max_data_bytes = 16644
  [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(147)
unix_convert called on file *
  [2008/05/21 15:27:05, 5] smbd/filename.c:unix_convert(246)
unix_convert begin: name = *, dirpath = , start = *
  [2008/05/21 15:27:05, 5] smbd/trans2.c:call_trans2findfirst(1769)
dir=./, mask = *
  [2008/05/21 15:27:05, 5] smbd/dir.c:dptr_create(392)
dptr_create dir=./
  [2008/05/21 15:27:05, 3] smbd/dir.c:dptr_create(515)
creating new dirptr 256 for path ./, expect_close = 1
  [2008/05/21 15:27:05, 4] smbd/trans2.c:call_trans2findfirst(1837)
dptr_num is 256, wcard = *, attr = 22
  [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./. fname=.
  [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1255)
get_lanman2_dir_entry found ./.. fname=..
  [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Audio] (Permission denied)
  [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat 
  [./DIRK_GENTLY'S_HOLISTIC_DETECTIVE_AGENCY.TXT] (Permission denied)
  [2008/05/21 15:27:05, 5] smbd/trans2.c:get_lanman2_dir_entry(1221)
get_lanman2_dir_entry:Couldn't stat [./Foto's] (Permission denied)
  [2008/05/21 

Re: [Samba] Looking for a set of definitive answers (long)

2008-05-21 Thread John H Terpstra
Avery,

OK - I'll respond too.  I see Jeremy has beaten me to it.  

Let me tell you up front, if you want the documentation to be improved the 
best thing you can do is contribute changes and updates.  Making us aware of 
docuentation problems is a good start, but please take this a step further - 
send us your updates and changes.

One other thing, before I get too far into answer or commenting is this: The 
Official Samba3 HOWTO and Reference Guide (TOSHARG) is a document (book) that 
sets out how specific parts of Samba function.  It was never intended to 
provide a working template or a scripted recipe.  

I did write the Samba3-ByExample book with the specific objective to provide 
detailed step-by-step, fully worked, examples of real working networks, did 
you consult that document at any time?  Are you offering to improve its value 
and utility by contributing your experiences and recommendations?

Users and admins like yourself are in the best position to improve the 
documentation.

Please see comments below.

Chees,
 John T.

On Wednesday 21 May 2008 01:47:52 pm Avery Payne wrote:
 Question:

 We recently moved to a Samba-based file server, which holds mission-
 critical data on it (.dbf files used by our Accounting software, etc.)
 The goal was to create a file server that had excellent performance while
 providing Volume Management, but we felt that something like Veritas was
 overkill for our needs.

A noble goal that can be achieved.

 Design Goals:
 - Redundant Hardware
 - Manual Failover (this was an acceptable solution)
 - Very large storage capacity (minimum 1 Terabyte)
 - Better than 100Mbyte/sec throughput
 - Volume Management, Journaled Filesystem
 - Drop-In Replacement for aging Win2k file server
 - Use existing admin tools to avoid retraining

The last two goals are a little ambitious.  A drop-in replacement is a tall 
order that I believe can not be met today.  There are some existing tools, 
but none are a complete replacement for the nicely integrated Microsoft 
toolset.

 The proposed solution was a Samba file server running on a pair of
 redundant servers, with one connected to an eSATA raid box, with LVM and
 Ext3 providing volume management and journaling.  

I would not architect the solution this way.  There are way too many pitfals 
with this solution.  You have identified one already - the SID = UID/GID 
mapping challenge.

I would have used a RAID5 array in each server with rsync to synchronize from 
the master to the slave.  This could be run from cron.  Anyhow, this is a 
digression from your problems.

 Our transition was a 
 bit rough, but in the end it has been very stable and fast.  We have been
 really pleased with the performance of the hardware/software combo,
 seeing sustained throughput of about 250Mbyte/sec with peaks as high as
 300Mbyte/sec.  But along the way, we encountered some oddities, and I
 have some remaining questions.

What lab work did you do in a test environment before rolling this life?  
Proper pre-rollout evaluation can save a lot of head-banging later.

 First, the oddities (long-time Samba devs and admins, take this with a
 grain of salt, when I say oddity I mean it from the perspective of an
 experienced Windows administrator):

Grain of salt taken.  Your initiative to write this email is most appreciated.  
It is a first step in the process of improvement.

 - File permissions do not behave as expected (from the viewpoint of other
 staff working with the server).

 The *nix permission bits cause a user, group, and Everyone entry to
 become permanent and persistent.  There was some initial grousing over
 this fact as our long-time Windows admin scratched his head over why he
 couldn't remove these entries as he saw fit.  

Samba is an engine that sits on top of a host OS. That host OS is NOT Windows.  
Samba has to go along with the rules imposed by the host OS.  The TOSHARG 
chapter on File, Directory, and Share Access Controls should be the red 
flag that underlying file system semantics are exerted by Samba.  Windows 
admins need to be trained to understand that Samba is not Windows NT/2Kx, 
etc.

Jeremy's notes about the VFS modular work aimed at providing better Windows 
ACLs emulation may provide the solution you are looking for.

 After explaining that there 
 would always be three settings no matter what, that they could never be
 deleted, and that they represented actual filesystem-level bits that
 wouldn't go away, it was accepted.  I didn't notice if this was in the
 docs or not, but I certainly didn't find it.  

It would help me to understand your problem if you can point out how you went 
about searching for answers.  What questions did you frame mentally in your 
search? Where and how did you look?

Did you use a hard-copy of the book? Search online in the HTML web pages? Or 
did you download the PDF of the book and use the hotlinked pages in the 
subject and topic indexes?

 It also meant enabling ACLs 
 on all of the 

Re: [Samba] could not parse domain user errors

2008-05-21 Thread Volker Lendecke
On Wed, May 21, 2008 at 11:23:36AM -0600, Jason Gerfen wrote:
 Hello again. Well I am stuck again. I cannot for the life of me get the 
 wbinfo -i username to work properly
 
 Here is some more information pulled from the log.winbind file:
 [2008/05/21 11:15:15, 10] nsswitch/winbindd.c:process_request(314)
   process_request: request fn GETPWNAM
 [2008/05/21 11:15:15, 3] nsswitch/winbindd_user.c:winbindd_getpwnam(346)
   [14936]: getpwnam smb
 [2008/05/21 11:15:15, 5] nsswitch/winbindd_user.c:winbindd_getpwnam(353)
   Could not parse domain user: smb

Try wbinfo -i domain\\username.

Volker


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

[Samba] howto sync unix passwd samba passwd?

2008-05-21 Thread Iris Lames
Hi,

I'm using samba-3.0.28-0.fc8. I'm trying to build a file server for 100
users. I created a perl script that automatically adds the 100 users plus
their passwords with success. Now I'm having difficulty creating a script
using the smbpasswd command because passwords must be entered in stdin. I
also tried smbpasswd -s option but it asks passwd in stdin. Is there a way
that I can use the command smbpasswd plus the user password in one line?

Also, I read about mksmbpasswd.sh and test it but it did not work at all.
My smb.conf contains:
smb passwd file = /etc/samba/sambapassword
and did:
cat /etc/passwd | grep test | /usr/bin/mksmbpasswd.sh 
/etc/samba/sambapassword


Is there a way for me to sync the userpassword and smbpasswd? Help me
please.

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


Re: [Samba] howto sync unix passwd samba passwd?

2008-05-21 Thread Scott Lovenberg

Iris Lames wrote:

Hi,

I'm using samba-3.0.28-0.fc8. I'm trying to build a file server for 100
users. I created a perl script that automatically adds the 100 users plus
their passwords with success. Now I'm having difficulty creating a script
using the smbpasswd command because passwords must be entered in stdin. I
also tried smbpasswd -s option but it asks passwd in stdin. Is there a way
that I can use the command smbpasswd plus the user password in one line?

Also, I read about mksmbpasswd.sh and test it but it did not work at all.
My smb.conf contains:
smb passwd file = /etc/samba/sambapassword
and did:
cat /etc/passwd | grep test | /usr/bin/mksmbpasswd.sh 
/etc/samba/sambapassword


Is there a way for me to sync the userpassword and smbpasswd? Help me
please.

-Iris Lames
  
Is PAM a viable option in your current environment? 
Chapter 28. PAM-Based Distributed Authentication 
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/pam.html


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


Re: [Samba] howto sync unix passwd samba passwd?

2008-05-21 Thread Carl Brewer

Iris Lames wrote:

Hi,

I'm using samba-3.0.28-0.fc8. I'm trying to build a file server for 100
users. I created a perl script that automatically adds the 100 users plus
their passwords with success. Now I'm having difficulty creating a script
using the smbpasswd command because passwords must be entered in stdin. I
also tried smbpasswd -s option but it asks passwd in stdin. Is there a way
that I can use the command smbpasswd plus the user password in one line?


You will be able to knock something up using expect.
http://expect.nist.gov/

There may be a better way, but that will work
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] howto sync unix passwd samba passwd?

2008-05-21 Thread Edmundo Valle Neto

Iris Lames escreveu:

Hi,

I'm using samba-3.0.28-0.fc8. I'm trying to build a file server for 100
users. I created a perl script that automatically adds the 100 users plus
their passwords with success. Now I'm having difficulty creating a script
using the smbpasswd command because passwords must be entered in stdin. I
also tried smbpasswd -s option but it asks passwd in stdin. Is there a way
that I can use the command smbpasswd plus the user password in one line?
  


As already answered by other people, you can use expect, I use it to set 
initial passwords, feeding smbldap-passwd in automated installs, it 
works and is the only solution that I know about too.



Also, I read about mksmbpasswd.sh and test it but it did not work at all.
My smb.conf contains:
smb passwd file = /etc/samba/sambapassword
and did:
cat /etc/passwd | grep test | /usr/bin/mksmbpasswd.sh 
/etc/samba/sambapassword
  


What do you mean by did not work at all? Have you sure that you are 
executing it in the right place? Theres nothing wrong with that line 
unless mksmbpasswd isn't where you think it is (isn't it in sbin?) or 
isn't working as it should (not likely).



Is there a way for me to sync the userpassword and smbpasswd? Help me
please.

-Iris Lames
  


I don't know if I got it right. Doing what you are trying to do will 
just INITIALLY create the same accounts in samba as in /etc/passwd 
without setting the passwords (I don't know Fedora, but Debian based 
distros does that by default in the package scripts if the user choose 
to). Debian can convert it to tdbsam after that too. All that can be 
scripted.


If by sync you mean initially populate smbpasswd as you are trying to 
do, the easiest way is already this way. Any other way you will redoing 
the mksmbpasswd script.




Regards.

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


Re: [Samba] permissions

2008-05-21 Thread Michael Heydon

solarflow99 wrote:

Hi, snip  My question is since I am
using LDAP as the backend, root can't easily be used; does anyone have any
recommendations on how this can be done?
  

Why don't you create an Administrator user in ldap that has uid 0?

*Michael Heydon - IT Administrator *
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

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


[Samba] Samba 3.0.29 Available for Download

2008-05-21 Thread Gerald (Jerry) Carter

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

==
~ You have an amazing capacity for self-deception.
~  How do you do that?
~   --Number Six (spoken to Baltar)
~  BSG (2003)
==
Release Announcements
=

This is a bug fix release of the Samba 3.0 production series
and is the version that servers should be run for all current
Samba 3.0 bug fixes.

Major bug fixes included in Samba 3.0.29 are:

~  o Problems following domain trusts on a Samba DC.
~  o SMB Signing errors.
~  o Interoperability issues with Windows 2008 domains.



Download Details


The uncompressed tarballs and patch files have been signed
using GnuPG (ID 6568B7EA).  The source code can be downloaded
from:

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

The release notes are available online at:

http://www.samba.org/samba/history/samba-3.0.29.html

Binary packages will be made available on a volunteer basis at

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

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

--Enjoy
The Samba Team
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFINNd8IR7qMdg1EfYRAsh6AJwNrH9rx5HIyONUjXqPNJ8qe94VJQCfYLpf
3cIE5u8v6vxmj3+JkuUOCOA=
=6Vka
-END PGP SIGNATURE-

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


Re: [Samba] Samba 3.0.29 Available for Download

2008-05-21 Thread Jeremy Allison
On Wed, May 21, 2008 at 09:16:28PM -0500, Gerald (Jerry) Carter wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 ==
 ~ You have an amazing capacity for self-deception.
 ~  How do you do that?
 ~   --Number Six (spoken to Baltar)
 ~  BSG (2003)
 ==
 Release Announcements
 =

 This is a bug fix release of the Samba 3.0 production series
 and is the version that servers should be run for all current
 Samba 3.0 bug fixes.

Yay ! Well done (and what a great choice of quote too :-) :-).

Thanks,

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


RE: HP CIFS and ExtAuth Module

2008-05-21 Thread Michael Ober
Paul,

I should have provided this in my first request.

Single OpenVMS 8.3 running TCPIP v5.3 Alpha Server.  The HP CIFS is
configured as a domain member.  What I need to do is enable the
Pathworks External Authentication module so that our users, who are VMS
dumb can change their windows passwords and still be able to use our
captive telnet interface to the VMS Server.

Thanks,
Mike.

-Original Message-
From: Nunez, Paul [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 20, 2008 3:57 PM
To: Michael Ober
Subject: RE: HP CIFS and ExtAuth Module

Hi Mike,

CIFS does not provide External Authentication. On OpenVMS Alpha and
Integrity systems running OpenVMS 8.2 and later you'll want to use the
ACME LDAP module to provide external authentication for Active Directory
users (or any OpenLDAP implementation, including HP's Enterprise
Directory).  CIFS is not required in this environment in order to
provide ExtAuth (see the OpenVMS web site, under Security).

The other option is to cluster the Integrity systems with an Alpha
running Advanced Server. Advanced Server provides the external
authentication images and command procedures necessary for OpenVMS
Integrity systems (see the Advanced Server release notes for details).
Basically, you copy a few files to the Integrity system(s), define a
logical name - pwrk$acme_server - to equate to the scsnode name of the
Advanced Server system(s), and run the command procedure provided by
Advanced Server to start it up.   The Integrity system will pass
external authentication requests over the cluster communication
interface to the Alpha(s) which send the authentication request on the
wire for Active Directory (or NT or Advanced Server) domain controllers
to validate.  The result is obviously passed back to the Integrity
system.

HTH,

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Michael Ober
Sent: Tuesday, May 20, 2008 3:09 PM
To: samba-vms@lists.samba.org
Subject: HP CIFS and ExtAuth Module

Will the HP CIFS and the Patchworks External Authentication modules work
together.  Basically, I want our VMS system to update UAF passwords from
a Windows AD domain.

Thanks,
Mike Ober.

PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

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

http://www.catb.org/~esr/faqs/smart-questions.html


Re: HP CIFS vs JYC SAMBA 2.2.8

2008-05-21 Thread bradhamilton

Michael Ober wrote:

Now that HP's CIFS has been out for a few months, are there any benefits
to migrating from JYC's Samba 2.2.8 to HP CIFS?


I have a slightly different question - has anyone migrated from Samba to 
CIFS using workgroup only, rather than a domain setup?


The last time I attempted to migrate without using a domain, I found the 
resulting CONF file would not work in a workgroup (peer) setup, and I 
could not modify the CONF file properly.  I don't need a domain setup, 
since this is a home network.

PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING:

http://www.catb.org/~esr/faqs/smart-questions.html


[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-0pre3-110-g697159d

2008-05-21 Thread Karolin Seeger
The branch, v3-2-stable has been updated
   via  697159d80a766d9a47b6c52ebb2544343e350c08 (commit)
   via  b8dce2ffe528c8bf149207ed3eb3dc4338a44161 (commit)
   via  c31e1a9765552ced56d031aac1be4221e0ec3412 (commit)
   via  f4a7b090115b8eaf27c7ed842b02f027f5b44b33 (commit)
   via  75731a3117a03a10ca8e4f694424f0729165aa48 (commit)
   via  32562ffeae30a15f04fa734bc0c453b55fdb8006 (commit)
  from  fd5a58980d4fc2d0f9a8ba81a5ae9490e306b2ba (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable


- Log -
commit 697159d80a766d9a47b6c52ebb2544343e350c08
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Tue May 20 17:48:39 2008 +0200

Fix typo.

Guenther
(cherry picked from commit d3dd7ea5a77414c0d802668ab5bfbe3487b66926)

commit b8dce2ffe528c8bf149207ed3eb3dc4338a44161
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Tue May 20 17:29:40 2008 +0200

Fix a valgrind error in _samr_LookupNames
(cherry picked from commit fb0a25d59ddd28ea1d5af33ec7d9f817fac3fb9d)

commit c31e1a9765552ced56d031aac1be4221e0ec3412
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Tue May 20 14:18:58 2008 -0700

Convert in_transaction to a bool. Add the same fix Volker
used for tdb_traverse() to tdb_traverse_read().
Jeremy.
(cherry picked from commit a0e1d8ac4dd9121312fd66ecb2e2942513df5a4b)

commit f4a7b090115b8eaf27c7ed842b02f027f5b44b33
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Tue May 20 21:54:36 2008 +0200

Fix nesting tdb_traverse in a transaction

Calling tdb_traverse inside a transaction led to the transaction lock being
held indefinitely. This was caused by the tdb_transaction_lock/unlock inside
tdb_traverse: The transaction code holds the global lock at offset
TRANSACTION_LOCK. The call to tdb_transaction_lock does nothing because the
transaction_lock is already being held. tdb_transaction_unlock inside 
tdb_wrap
resets tdb-have_transaction_lock but does not release the kernel-level 
fcntl
lock. transaction_commit later on does not release that fcntl lock either,
because tdb-have_transaction_lock was already reset by tdb_transaction().

This patch does fix that problem for me. An alternative would be to make
tdb-have_transaction_lock a counter that can cope with proper nesting, 
maybe
in other places as well.

Volker
(cherry picked from commit fd0b60a9e000f969cf99a8d670080cc7a52d97d8)

commit 75731a3117a03a10ca8e4f694424f0729165aa48
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Tue May 20 12:10:01 2008 -0700

Fix bug #5477 - recvfile code was broken.
Jeremy.
(cherry picked from commit 47eb2e8fa858d9f12637eb9a10466271335f61aa)

commit 32562ffeae30a15f04fa734bc0c453b55fdb8006
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Tue May 20 18:35:23 2008 +0200

Fix memcache_flush()

I have no idea what I've been smoking when I checked this in :-(

Karolin, this fixes the join bug 3.0.28-3.2.0rc1

Please merge!

Thanks,

Volker
(cherry picked from commit 006e45fba01e05c664359e8104d495609d9555f7)

---

Summary of changes:
 source/lib/memcache.c|   39 +
 source/lib/recvfile.c|   10 +
 source/lib/tdb/common/traverse.c |   22 +++-
 source/rpc_server/srv_samr_nt.c  |   13 +++
 source/smbd/process.c|   12 +++---
 5 files changed, 72 insertions(+), 24 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/memcache.c b/source/lib/memcache.c
index 6dee61a..e1426bc 100644
--- a/source/lib/memcache.c
+++ b/source/lib/memcache.c
@@ -120,11 +120,11 @@ static int memcache_compare(struct memcache_element *e, 
enum memcache_number n,
 {
DATA_BLOB this_key, this_value;
 
-   if ((int)e-n  (int)n) return -1;
-   if ((int)e-n  (int)n) return 1;
+   if ((int)e-n  (int)n) return 1;
+   if ((int)e-n  (int)n) return -1;
 
-   if (e-keylength  key.length) return -1;
-   if (e-keylength  key.length) return 1;
+   if (e-keylength  key.length) return 1;
+   if (e-keylength  key.length) return -1;
 
memcache_element_parse(e, this_key, this_value);
return memcmp(this_key.data, key.data, key.length);
@@ -357,10 +357,18 @@ void memcache_flush(struct memcache *cache, enum 
memcache_number n)
return;
}
 
+   /*
+* First, find *any* element of number n
+*/
+
while (true) {
struct memcache_element *elem = memcache_node2elem(node);
struct rb_node *next;
 
+   if ((int)elem-n == (int)n) {
+   break;
+   }
+
if ((int)elem-n  (int)n) {
next = node-rb_right;
}
@@ 

Re: [SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2385-g006e45f

2008-05-21 Thread Karolin Seeger
On Tue, May 20, 2008 at 11:37:07AM -0500, Volker Lendecke wrote:
 The branch, v3-2-test has been updated
via  006e45fba01e05c664359e8104d495609d9555f7 (commit)
   from  d3dd7ea5a77414c0d802668ab5bfbe3487b66926 (commit)
 
 http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
 
 
 - Log -
 commit 006e45fba01e05c664359e8104d495609d9555f7
 Author: Volker Lendecke [EMAIL PROTECTED]
 Date:   Tue May 20 18:35:23 2008 +0200
 
 Fix memcache_flush()
 
 I have no idea what I've been smoking when I checked this in :-(
 
 Karolin, this fixes the join bug 3.0.28-3.2.0rc1
 
 Please merge!
 
 Thanks,
 
 Volker
 
 ---

Pushed, thanks.

Karolin

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-37-0, fax: +49-551-37-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE



pgplytJDn6vlX.pgp
Description: PGP signature


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2389-gd923d3a

2008-05-21 Thread Kai Blin
The branch, v3-2-test has been updated
   via  d923d3acdf2c47e8d1dff0951edabe37ba5078c0 (commit)
  from  a0e1d8ac4dd9121312fd66ecb2e2942513df5a4b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit d923d3acdf2c47e8d1dff0951edabe37ba5078c0
Author: Kai Blin [EMAIL PROTECTED]
Date:   Wed May 21 09:34:02 2008 +0200

net: Display net rpc trustdom usage from net rpc trustdom

---

Summary of changes:
 source/utils/net_rpc.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c
index 3fbfbb6..cbe3d45 100644
--- a/source/utils/net_rpc.c
+++ b/source/utils/net_rpc.c
@@ -6410,7 +6410,7 @@ static int rpc_trustdom(int argc, const char **argv)
return -1;
}
 
-   return (net_run_function(argc, argv, func, rpc_user_usage));
+   return (net_run_function(argc, argv, func, rpc_trustdom_usage));
 }
 
 /**


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-0pre3-111-ga8d27e4

2008-05-21 Thread Karolin Seeger
The branch, v3-2-stable has been updated
   via  a8d27e49003ce43c353c5b3938adb0e11da0a2fa (commit)
  from  697159d80a766d9a47b6c52ebb2544343e350c08 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable


- Log -
commit a8d27e49003ce43c353c5b3938adb0e11da0a2fa
Author: Kai Blin [EMAIL PROTECTED]
Date:   Wed May 21 09:34:02 2008 +0200

net: Display net rpc trustdom usage from net rpc trustdom
(cherry picked from commit d923d3acdf2c47e8d1dff0951edabe37ba5078c0)

---

Summary of changes:
 source/utils/net_rpc.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c
index 3fbfbb6..cbe3d45 100644
--- a/source/utils/net_rpc.c
+++ b/source/utils/net_rpc.c
@@ -6410,7 +6410,7 @@ static int rpc_trustdom(int argc, const char **argv)
return -1;
}
 
-   return (net_run_function(argc, argv, func, rpc_user_usage));
+   return (net_run_function(argc, argv, func, rpc_trustdom_usage));
 }
 
 /**


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2391-g46985b3

2008-05-21 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  46985b309f9cf3261d34746294ac13e56ac283e4 (commit)
   via  ee196b77b1f8fa35c5127958962a7f1a68665c1e (commit)
  from  d923d3acdf2c47e8d1dff0951edabe37ba5078c0 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 46985b309f9cf3261d34746294ac13e56ac283e4
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Fri May 16 12:11:43 2008 +0200

netdomjoin-gui: before prompting for creds (for receiving joinable ous), 
find a dc.

Guenther
(cherry picked from commit ae60695a349bccd1128e6c439664b0607627ef23)

commit ee196b77b1f8fa35c5127958962a7f1a68665c1e
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Thu May 8 01:07:10 2008 +0200

netdomjoin-gui: before prompting for creds, ask dsgetdcname for a dc.

Guenther
(cherry picked from commit 47146effc1c2bca516d4fbccf221b5b0e02737bf)

---

Summary of changes:
 .../examples/netdomjoin-gui/netdomjoin-gui.c   |   67 +++-
 1 files changed, 66 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 
b/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
index 5ce4ca2..df81937 100644
--- a/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
+++ b/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
@@ -670,6 +670,41 @@ static void callback_do_join(GtkWidget *widget,
 
}
 
+   /* before prompting for creds, make sure we can find a dc */
+
+   if (domain_join) {
+
+   struct DOMAIN_CONTROLLER_INFO *dc_info = NULL;
+
+   status = DsGetDcName(NULL,
+state-name_buffer_new,
+NULL,
+NULL,
+0,
+dc_info);
+   if (status != 0) {
+   err_str = libnetapi_get_error_string(state-ctx, 
status);
+   g_print(callback_do_join: failed find dc (%s)\n, 
err_str);
+
+   dialog = 
gtk_message_dialog_new(GTK_WINDOW(state-window_parent),
+   
GTK_DIALOG_DESTROY_WITH_PARENT,
+   GTK_MESSAGE_ERROR,
+   GTK_BUTTONS_CLOSE,
+   Failed to find a 
domain controller for domain: \%s\: %s,
+   state-name_buffer_new,
+   err_str);
+
+   gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
+   g_signal_connect_swapped(dialog, response,
+G_CALLBACK(gtk_widget_destroy),
+dialog);
+
+   gtk_widget_show(dialog);
+
+   return;
+   }
+   }
+
if (join_creds_required) {
if (!state-account || !state-password) {
debug(callback_do_join: no creds yet\n);
@@ -897,6 +932,9 @@ static void callback_do_getous(GtkWidget *widget,
const char **ous = NULL;
int i;
const char *domain = NULL;
+   struct DOMAIN_CONTROLLER_INFO *dc_info = NULL;
+   const char *err_str = NULL;
+   GtkWidget *dialog;
 
struct join_state *state = (struct join_state *)data;
 
@@ -904,6 +942,34 @@ static void callback_do_getous(GtkWidget *widget,
 
domain = state-name_buffer_new ? state-name_buffer_new : 
state-name_buffer_initial;
 
+   status = DsGetDcName(NULL,
+domain,
+NULL,
+NULL,
+0,
+dc_info);
+   if (status != 0) {
+   err_str = libnetapi_get_error_string(state-ctx, status);
+   g_print(callback_do_getous: failed find dc (%s)\n, err_str);
+
+   dialog = 
gtk_message_dialog_new(GTK_WINDOW(state-window_parent),
+   GTK_DIALOG_DESTROY_WITH_PARENT,
+   GTK_MESSAGE_ERROR,
+   GTK_BUTTONS_CLOSE,
+   Failed to find a domain 
controller for domain: \%s\: %s,
+   domain,
+   err_str);
+
+   gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
+   g_signal_connect_swapped(dialog, response,
+

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1665-g5c56464

2008-05-21 Thread Jelmer Vernooij
The branch, v4-0-test has been updated
   via  5c56464a6c2f29a039ba3152de83d34778ca0615 (commit)
   via  a95f2bf86a75729717542b401aa39bedd21be8d0 (commit)
   via  bd3f3e7c85f1a92638d69379782aa7bfcecd9e2f (commit)
  from  c3eeae2ea6a7562b43a436f20c110002ca4d1d2b (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 5c56464a6c2f29a039ba3152de83d34778ca0615
Merge: a95f2bf86a75729717542b401aa39bedd21be8d0 
c3eeae2ea6a7562b43a436f20c110002ca4d1d2b
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 12:22:05 2008 +0200

Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 
nosmbpython

commit a95f2bf86a75729717542b401aa39bedd21be8d0
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 12:14:47 2008 +0200

Fix installed symlinks (cp was trying to be smart).

commit bd3f3e7c85f1a92638d69379782aa7bfcecd9e2f
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 12:02:02 2008 +0200

Allow dots in .mk file section headers, fix docstring.

---

Summary of changes:
 source/build/make/python.mk |2 +-
 source/build/make/templates.mk  |2 +-
 source/build/smb_build/config_mk.pm |2 +-
 source/param/config.mk  |2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/build/make/python.mk b/source/build/make/python.mk
index c243b88..7d957fb 100644
--- a/source/build/make/python.mk
+++ b/source/build/make/python.mk
@@ -29,7 +29,7 @@ $(call python_module_template,$(1))
 endef
 
 # Python C module
-# Arguments: Module path, object files
+# Arguments: File name, dependencies, link list
 define python_c_module_template
 
 $$(pythonbuilddir)/$(1): $(2) ; 
diff --git a/source/build/make/templates.mk b/source/build/make/templates.mk
index 48678c5..1c0af4d 100644
--- a/source/build/make/templates.mk
+++ b/source/build/make/templates.mk
@@ -92,7 +92,7 @@ PLUGINS += bin/modules/$(2)/$(3).$$(SHLIBEXT)
 uninstallplugins::
@-rm $$(DESTDIR)$$(modulesdir)/$(2)/$(3).$$(SHLIBEXT)
 installplugins::
-   @ln -fs $(1) $$(DESTDIR)$$(modulesdir)/$(2)/$(3).$$(SHLIBEXT)
+   @ln -fs $(basename $(1)) 
$$(DESTDIR)$$(modulesdir)/$(2)/$(3).$$(SHLIBEXT)
 
 endef
 
diff --git a/source/build/smb_build/config_mk.pm 
b/source/build/smb_build/config_mk.pm
index 88e24a5..d28adb2 100644
--- a/source/build/smb_build/config_mk.pm
+++ b/source/build/smb_build/config_mk.pm
@@ -197,7 +197,7 @@ sub run_config_mk()
$prev = ;
}
 
-   if ($line =~ /^\[([-a-zA-Z0-9_:]+)\][\t ]*$/) 
+   if ($line =~ /^\[([-a-zA-Z0-9_.:]+)\][\t ]*$/) 
{
$section = $1;
$infragment = 0;
diff --git a/source/param/config.mk b/source/param/config.mk
index a25dd32..cf92089 100644
--- a/source/param/config.mk
+++ b/source/param/config.mk
@@ -57,7 +57,7 @@ PRIVATE_DEPENDENCIES = LIBLDB TDB_WRAP UTIL_TDB NDR_SECURITY
 
 SECRETS_OBJ_FILES = $(paramsrcdir)/secrets.o
 
-[PYTHON::param]
+[PYTHON::samba.param]
 SWIG_FILE = param.i
 PRIVATE_DEPENDENCIES = LIBSAMBA-HOSTCONFIG
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2392-g2d06726

2008-05-21 Thread Günther Deschner
The branch, v3-2-test has been updated
   via  2d06726b7b65a9071a872ac71a09a614270c6b2c (commit)
  from  46985b309f9cf3261d34746294ac13e56ac283e4 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 2d06726b7b65a9071a872ac71a09a614270c6b2c
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Tue Apr 29 20:11:02 2008 +0200

netapi: fix returned name buffer in NetGetJoinInformation_r().

Guenther
(cherry picked from commit 0e8e05d556a7f84e500cca3fa858f9b4a9522a5f)

---

Summary of changes:
 source/lib/netapi/joindomain.c |6 +-
 1 files changed, 5 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/joindomain.c b/source/lib/netapi/joindomain.c
index 8e0a62e..74ed8f2 100644
--- a/source/lib/netapi/joindomain.c
+++ b/source/lib/netapi/joindomain.c
@@ -282,6 +282,7 @@ WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx,
struct rpc_pipe_client *pipe_cli = NULL;
NTSTATUS status;
WERROR werr;
+   const char *buffer = NULL;
 
werr = libnetapi_open_ipc_connection(ctx, r-in.server_name, cli);
if (!W_ERROR_IS_OK(werr)) {
@@ -295,7 +296,7 @@ WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx,
 
status = rpccli_wkssvc_NetrGetJoinInformation(pipe_cli, ctx,
  r-in.server_name,
- r-out.name_buffer,
+ buffer,
  (enum 
wkssvc_NetJoinStatus *)r-out.name_type,
  werr);
if (!NT_STATUS_IS_OK(status)) {
@@ -303,6 +304,9 @@ WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx,
goto done;
}
 
+   *r-out.name_buffer = talloc_strdup(ctx, buffer);
+   W_ERROR_HAVE_NO_MEMORY(*r-out.name_buffer);
+
  done:
return werr;
 }


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1666-g17c41a6

2008-05-21 Thread Jelmer Vernooij
The branch, v4-0-test has been updated
   via  17c41a6c3e71102e3516e6926f7e7d1ab5c97563 (commit)
  from  5c56464a6c2f29a039ba3152de83d34778ca0615 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 17c41a6c3e71102e3516e6926f7e7d1ab5c97563
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 12:38:47 2008 +0200

Fix dependencies for ldb instancetype module.

---

Summary of changes:
 source/dsdb/samdb/ldb_modules/config.mk |2 +-
 source/param/config.mk  |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/dsdb/samdb/ldb_modules/config.mk 
b/source/dsdb/samdb/ldb_modules/config.mk
index a5f5bc4..eae190a 100644
--- a/source/dsdb/samdb/ldb_modules/config.mk
+++ b/source/dsdb/samdb/ldb_modules/config.mk
@@ -336,7 +336,7 @@ ldb_normalise_OBJ_FILES = dsdb/samdb/ldb_modules/normalise.o
 INIT_FUNCTION = LDB_MODULE(instancetype)
 CFLAGS = -Ilib/ldb/include
 OUTPUT_TYPE = SHARED_LIBRARY
-PRIVATE_DEPENDENCIES = LIBTALLOC
+PRIVATE_DEPENDENCIES = LIBTALLOC LIBSAMBA-UTIL SAMDB
 SUBSYSTEM = LIBLDB
 # End MODULE ldb_instancetype
 
diff --git a/source/param/config.mk b/source/param/config.mk
index cf92089..a25dd32 100644
--- a/source/param/config.mk
+++ b/source/param/config.mk
@@ -57,7 +57,7 @@ PRIVATE_DEPENDENCIES = LIBLDB TDB_WRAP UTIL_TDB NDR_SECURITY
 
 SECRETS_OBJ_FILES = $(paramsrcdir)/secrets.o
 
-[PYTHON::samba.param]
+[PYTHON::param]
 SWIG_FILE = param.i
 PRIVATE_DEPENDENCIES = LIBSAMBA-HOSTCONFIG
 


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-0pre3-113-gb6be3a4

2008-05-21 Thread Karolin Seeger
The branch, v3-2-stable has been updated
   via  b6be3a4426dca340459ed60ea328d7855fd3f5d4 (commit)
   via  f522c9bc3981d7558f4a6dc5407db284f8a8ca72 (commit)
  from  a8d27e49003ce43c353c5b3938adb0e11da0a2fa (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-stable


- Log -
commit b6be3a4426dca340459ed60ea328d7855fd3f5d4
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Fri May 16 12:11:43 2008 +0200

netdomjoin-gui: before prompting for creds (for receiving joinable ous), 
find a dc.

Guenther
(cherry picked from commit ae60695a349bccd1128e6c439664b0607627ef23)

commit f522c9bc3981d7558f4a6dc5407db284f8a8ca72
Author: Günther Deschner [EMAIL PROTECTED]
Date:   Thu May 8 01:07:10 2008 +0200

netdomjoin-gui: before prompting for creds, ask dsgetdcname for a dc.

Guenther
(cherry picked from commit 47146effc1c2bca516d4fbccf221b5b0e02737bf)

---

Summary of changes:
 .../examples/netdomjoin-gui/netdomjoin-gui.c   |   67 +++-
 1 files changed, 66 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c 
b/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
index 5ce4ca2..df81937 100644
--- a/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
+++ b/source/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c
@@ -670,6 +670,41 @@ static void callback_do_join(GtkWidget *widget,
 
}
 
+   /* before prompting for creds, make sure we can find a dc */
+
+   if (domain_join) {
+
+   struct DOMAIN_CONTROLLER_INFO *dc_info = NULL;
+
+   status = DsGetDcName(NULL,
+state-name_buffer_new,
+NULL,
+NULL,
+0,
+dc_info);
+   if (status != 0) {
+   err_str = libnetapi_get_error_string(state-ctx, 
status);
+   g_print(callback_do_join: failed find dc (%s)\n, 
err_str);
+
+   dialog = 
gtk_message_dialog_new(GTK_WINDOW(state-window_parent),
+   
GTK_DIALOG_DESTROY_WITH_PARENT,
+   GTK_MESSAGE_ERROR,
+   GTK_BUTTONS_CLOSE,
+   Failed to find a 
domain controller for domain: \%s\: %s,
+   state-name_buffer_new,
+   err_str);
+
+   gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
+   g_signal_connect_swapped(dialog, response,
+G_CALLBACK(gtk_widget_destroy),
+dialog);
+
+   gtk_widget_show(dialog);
+
+   return;
+   }
+   }
+
if (join_creds_required) {
if (!state-account || !state-password) {
debug(callback_do_join: no creds yet\n);
@@ -897,6 +932,9 @@ static void callback_do_getous(GtkWidget *widget,
const char **ous = NULL;
int i;
const char *domain = NULL;
+   struct DOMAIN_CONTROLLER_INFO *dc_info = NULL;
+   const char *err_str = NULL;
+   GtkWidget *dialog;
 
struct join_state *state = (struct join_state *)data;
 
@@ -904,6 +942,34 @@ static void callback_do_getous(GtkWidget *widget,
 
domain = state-name_buffer_new ? state-name_buffer_new : 
state-name_buffer_initial;
 
+   status = DsGetDcName(NULL,
+domain,
+NULL,
+NULL,
+0,
+dc_info);
+   if (status != 0) {
+   err_str = libnetapi_get_error_string(state-ctx, status);
+   g_print(callback_do_getous: failed find dc (%s)\n, err_str);
+
+   dialog = 
gtk_message_dialog_new(GTK_WINDOW(state-window_parent),
+   GTK_DIALOG_DESTROY_WITH_PARENT,
+   GTK_MESSAGE_ERROR,
+   GTK_BUTTONS_CLOSE,
+   Failed to find a domain 
controller for domain: \%s\: %s,
+   domain,
+   err_str);
+
+   gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);
+   g_signal_connect_swapped(dialog, response,
+

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1673-gf29e900

2008-05-21 Thread Jelmer Vernooij
The branch, v4-0-test has been updated
   via  f29e9009310e4a6d575651dd9ba41ffc90bfb386 (commit)
   via  f0914d0187130adcd4f239d4ea0fc9f729fdedc9 (commit)
   via  58f956dc4591137489cba16f360f2d24d91dadc1 (commit)
   via  034c68bea934db87bce13a750c17fb1bd2bbe3b6 (commit)
   via  ce440887316d3ae379551c136f6b640c573fd702 (commit)
  from  c52fe1fe1c77636d87355d3c4baa66e052fe9008 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit f29e9009310e4a6d575651dd9ba41ffc90bfb386
Merge: f0914d0187130adcd4f239d4ea0fc9f729fdedc9 
c52fe1fe1c77636d87355d3c4baa66e052fe9008
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 15:45:04 2008 +0200

Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 
nosmbpython

commit f0914d0187130adcd4f239d4ea0fc9f729fdedc9
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 15:40:55 2008 +0200

Fix typo.

commit 58f956dc4591137489cba16f360f2d24d91dadc1
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 15:39:00 2008 +0200

Fix reference to removed smbpython.

commit 034c68bea934db87bce13a750c17fb1bd2bbe3b6
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 14:29:05 2008 +0200

Regenerate with newer version of swig.

commit ce440887316d3ae379551c136f6b640c573fd702
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 14:28:10 2008 +0200

Use gnu make syntax for SWIG implicit rule since it allows multiple output 
files.

---

Summary of changes:
 source/build/make/python.mk  |4 +-
 source/configure.ac  |2 +-
 source/lib/events/events.py  |2 +-
 source/lib/events/events_wrap.c  |   65 +-
 source/libcli/swig/libcli_nbt.py |2 +-
 source/libcli/swig/libcli_nbt_wrap.c |   73 +++---
 source/setup/enableaccount   |4 +-
 testprogs/blackbox/test_kinit.sh |2 +-
 8 files changed, 105 insertions(+), 49 deletions(-)
 mode change 100644 = 100755 source/setup/enableaccount


Changeset truncated at 500 lines:

diff --git a/source/build/make/python.mk b/source/build/make/python.mk
index 7d957fb..66e5def 100644
--- a/source/build/make/python.mk
+++ b/source/build/make/python.mk
@@ -43,9 +43,9 @@ endef
 # Swig extensions
 swig:: pythonmods
 
-.SUFFIXES: _wrap.c .i
+.SUFFIXES: _wrap.c .i .py
 
-.i_wrap.c:
+%_wrap.c %.py: %.i
[ $(SWIG) == no ] || $(SWIG) -O -Wall -I$(srcdir)/scripting/swig 
-python -keyword $
 
 realdistclean::
diff --git a/source/configure.ac b/source/configure.ac
index 34657cf..73d3ffd 100644
--- a/source/configure.ac
+++ b/source/configure.ac
@@ -162,7 +162,7 @@ CPPFLAGS=$builddir_headers-I\$(srcdir)/include 
-I\$(srcdir) -I\$(srcdir)/lib -I
 
 SMB_WRITE_PERLVARS(build/smb_build/config.pm)
 
-../../source/echo configure: creating config.mk
+echo configure: creating config.mk
 cat config.mkCEOF
 # config.mk - Autogenerated by configure, DO NOT EDIT!
 $SMB_INFO_EXT_LIBS
diff --git a/source/lib/events/events.py b/source/lib/events/events.py
index d8f70f6..2377268 100644
--- a/source/lib/events/events.py
+++ b/source/lib/events/events.py
@@ -1,5 +1,5 @@
 # This file was automatically generated by SWIG (http://www.swig.org).
-# Version 1.3.33
+# Version 1.3.35
 #
 # Don't modify this file, modify the SWIG interface instead.
 
diff --git a/source/lib/events/events_wrap.c b/source/lib/events/events_wrap.c
index 9dbbb08..727485d 100644
--- a/source/lib/events/events_wrap.c
+++ b/source/lib/events/events_wrap.c
@@ -1,6 +1,6 @@
 /* 
  * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 1.3.33
+ * Version 1.3.35
  * 
  * This file is not intended to be easily readable and contains a number of 
  * coding conventions designed to improve portability and efficiency. Do not 
make
@@ -126,7 +126,7 @@
 
 /* This should only be incremented when either the layout of swig_type_info 
changes,
or for whatever reason, the runtime changes incompatibly */
-#define SWIG_RUNTIME_VERSION 3
+#define SWIG_RUNTIME_VERSION 4
 
 /* define SWIG_TYPE_TABLE_NAME as SWIG_TYPE_TABLE */
 #ifdef SWIG_TYPE_TABLE
@@ -161,6 +161,7 @@
 
 /* Flags for pointer conversions */
 #define SWIG_POINTER_DISOWN0x1
+#define SWIG_CAST_NEW_MEMORY   0x2
 
 /* Flags for new pointer objects */
 #define SWIG_POINTER_OWN   0x1
@@ -301,10 +302,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
 extern C {
 #endif
 
-typedef void *(*swig_converter_func)(void *);
+typedef void *(*swig_converter_func)(void *, int *);
 typedef struct swig_type_info *(*swig_dycast_func)(void **);
 
-/* Structure to store inforomation on one type */
+/* Structure to store information on one type */
 typedef struct swig_type_info {
   const char 

[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2543-g0198777

2008-05-21 Thread Jelmer Vernooij
The branch, v3-3-test has been updated
   via  01987778a123f853fccdcb7fe9566143e2d7c490 (commit)
   via  825cf91fa8b30a67d04cbda8885ff62a4c26458f (commit)
   via  256200e951476ff31c95a7d5621a50ba297ea6e4 (commit)
   via  ac0d768676b1b8105a9141169b1afa248df6ce66 (commit)
   via  1fa4ef553c437bae07389c0f6a5410ba22ee4905 (commit)
  from  bda0f03fb3fa8a7b14d4f54bee7076d691cad44f (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -
commit 01987778a123f853fccdcb7fe9566143e2d7c490
Merge: 825cf91fa8b30a67d04cbda8885ff62a4c26458f 
bda0f03fb3fa8a7b14d4f54bee7076d691cad44f
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 18:04:47 2008 +0200

Merge branch 'v3-3-test' of ssh://git.samba.org/data/git/samba into docbook

Conflicts:

source/Makefile.in

commit 825cf91fa8b30a67d04cbda8885ff62a4c26458f
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 17:55:20 2008 +0200

Use double colon targets.

commit 256200e951476ff31c95a7d5621a50ba297ea6e4
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Sun May 18 18:39:48 2008 +0200

Add double-colon where it makes sense.

commit ac0d768676b1b8105a9141169b1afa248df6ce66
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Fri May 16 15:46:36 2008 +0200

Add test target in Makefile.

commit 1fa4ef553c437bae07389c0f6a5410ba22ee4905
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Fri May 16 15:31:54 2008 +0200

Make the make output a bit less chatty.

---

Summary of changes:
 docs-xml/Makefile  |   67 +++-
 source/Makefile.in |  124 +--
 2 files changed, 96 insertions(+), 95 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/Makefile b/docs-xml/Makefile
index 0f401d6..70ffdc1 100644
--- a/docs-xml/Makefile
+++ b/docs-xml/Makefile
@@ -50,10 +50,10 @@ $(DOCBOOKDIR)/Samba3-Developers-Guide.xml: $(filter-out 
Samba3-Developers-Guide/
 $(DOCBOOKDIR)/Samba4-HOWTO.xml: $(filter-out Samba4-HOWTO/index.xml,$(wildcard 
Samba4-HOWTO/*.xml)) Samba4-HOWTO-attributions.xml
 
 # Pseudo targets 
-all: $(TARGETS)
-everything: manpages3 pdf html-single html htmlman3 txt ps fo htmlhelp pearson 
-release: manpages3 htmlman3 html pdf 
-clean:
+all:: $(TARGETS)
+everything:: manpages3 pdf html-single html htmlman3 txt ps fo htmlhelp 
pearson 
+release:: manpages3 htmlman3 html pdf 
+clean::
@echo Cleaning up... 
rm -rf $(OUTPUTDIR)/* $(DOCBOOKDIR)
rm -f $(patsubst %.svg,%.png,$(foreach 
DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) \
@@ -67,32 +67,37 @@ clean:
rm -f $(addsuffix .*,$(MAIN_DOCS))
 
 # Output format targets
-pdf: $(patsubst %,$(PDFDIR)/%.pdf,$(MAIN_DOCS))
-dvi: $(patsubst %,$(DVIDIR)/%.dvi,$(MAIN_DOCS))
-ps: $(patsubst %,$(PSDIR)/%.ps,$(MAIN_DOCS))
-txt: $(patsubst %,$(TXTDIR)/%.txt,$(MAIN_DOCS))
-txt-chunks: $(addsuffix -txt-chunks,$(MAIN_DOCS))
-fo: $(patsubst %,$(FODIR)/%.fo,$(MAIN_DOCS))
-fo-pdf: $(patsubst %,$(FOPDFDIR)/%.pdf,$(MAIN_DOCS))
-tex: $(addsuffix .tex,$(MAIN_DOCS))
-texi: $(patsubst %,$(TEXINFODIR)/%.texi,$(MAIN_DOCS))
-texiinfo: $(patsubst %,$(TEXINFODIR)/%.info,$(MAIN_DOCS))
-manpages3: $(patsubst 
$(MANPAGEDIR3)/%.xml,$(OUTPUTDIR)/manpages-3/%,$(MANPAGES3))
-pearson: $(PEARSONDIR)/Samba3-HOWTO.xml
-pearson-verify: $(PEARSONDIR)/Samba3-HOWTO.report.html
-plucker: $(patsubst %,$(PLUCKERDIR)/%.pdb,$(MAIN_DOCS))
-htmlman3: $(patsubst 
$(MANPAGEDIR3)/%.xml,$(HTMLDIR)/manpages-3/%.html,$(MANPAGES3)) 
$(HTMLDIR)/manpages-3/index.html
-html-single: $(patsubst %,$(HTMLDIR)/%.html,$(MAIN_DOCS))
-html: $(patsubst %,$(HTMLDIR)/%/index.html,$(MAIN_DOCS)) $(HTMLDIR)/index.html
-htmlhelp: $(addprefix $(HTMLHELPDIR)/,$(MAIN_DOCS))
-validate: $(addsuffix -validate,$(MAIN_DOCS))
+pdf:: $(patsubst %,$(PDFDIR)/%.pdf,$(MAIN_DOCS))
+dvi:: $(patsubst %,$(DVIDIR)/%.dvi,$(MAIN_DOCS))
+ps:: $(patsubst %,$(PSDIR)/%.ps,$(MAIN_DOCS))
+txt:: $(patsubst %,$(TXTDIR)/%.txt,$(MAIN_DOCS))
+txt-chunks:: $(addsuffix -txt-chunks,$(MAIN_DOCS))
+fo:: $(patsubst %,$(FODIR)/%.fo,$(MAIN_DOCS))
+fo-pdf:: $(patsubst %,$(FOPDFDIR)/%.pdf,$(MAIN_DOCS))
+tex:: $(addsuffix .tex,$(MAIN_DOCS))
+texi:: $(patsubst %,$(TEXINFODIR)/%.texi,$(MAIN_DOCS))
+texiinfo:: $(patsubst %,$(TEXINFODIR)/%.info,$(MAIN_DOCS))
+manpages3:: $(patsubst 
$(MANPAGEDIR3)/%.xml,$(OUTPUTDIR)/manpages-3/%,$(MANPAGES3))
+pearson:: $(PEARSONDIR)/Samba3-HOWTO.xml
+pearson-verify:: $(PEARSONDIR)/Samba3-HOWTO.report.html
+plucker:: $(patsubst %,$(PLUCKERDIR)/%.pdb,$(MAIN_DOCS))
+htmlman3:: $(patsubst 
$(MANPAGEDIR3)/%.xml,$(HTMLDIR)/manpages-3/%.html,$(MANPAGES3)) 
$(HTMLDIR)/manpages-3/index.html
+html-single:: $(patsubst %,$(HTMLDIR)/%.html,$(MAIN_DOCS))
+html:: $(patsubst %,$(HTMLDIR)/%/index.html,$(MAIN_DOCS)) $(HTMLDIR)/index.html
+htmlhelp:: $(addprefix $(HTMLHELPDIR)/,$(MAIN_DOCS))

[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28a-1185-gb0b4bd2

2008-05-21 Thread Gerald Carter
The branch, v3-0-test has been updated
   via  b0b4bd2466658deacb1de3d58154bcc8d198d675 (commit)
  from  a39d9ab9c68932c15f5b42d8539aab6dfbc4d57a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test


- Log -
commit b0b4bd2466658deacb1de3d58154bcc8d198d675
Author: Gerald (Jerry) Carter [EMAIL PROTECTED]
Date:   Wed May 21 12:54:43 2008 -0500

Work around iconv conversion failure from generated smb.conf.5 on Ubuntu 
8.04.

Have no idea why the previous sequence of characters was causing
iconv to choke on my Ubuntu 8.04.  Reword the entry some
for clarity and to advoid this failure.

---

Summary of changes:
 docs-xml/smbdotconf/filename/maxstatcachesize.xml |   13 +++--
 1 files changed, 7 insertions(+), 6 deletions(-)


Changeset truncated at 500 lines:

diff --git a/docs-xml/smbdotconf/filename/maxstatcachesize.xml 
b/docs-xml/smbdotconf/filename/maxstatcachesize.xml
index 607fe58..590b216 100644
--- a/docs-xml/smbdotconf/filename/maxstatcachesize.xml
+++ b/docs-xml/smbdotconf/filename/maxstatcachesize.xml
@@ -5,12 +5,13 @@
  xmlns:samba=http://www.samba.org/samba/DTD/samba-doc;
 description
paraThis parameter limits the size in memory of any 
-parameter moreinfo=nonestat cache/parameter being used
-   to speed up case insensitive name mappings. This parameter is
-   the number of kilobyte (1024) units the stat cache can use.
-   A value of zero means unlimited which is not advised aѕ it can
-   use a lot of memory.
-   You should not need to change this parameter./para
+ parameter moreinfo=nonestat cache/parameter being used
+ to speed up case insensitive name mappings. It represents
+ the number of kilobyte (1024) units the stat cache can use.
+ A value of zero, meaning unlimited, is not advisable due to
+ increased memory useage.  You should not need to change this
+ parameter.
+   /para
 /description
 relatedstat cache/related
 value type=default256/value


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1675-gc0a84c2

2008-05-21 Thread Jelmer Vernooij
The branch, v4-0-test has been updated
   via  c0a84c2b4698f6ac9b555cc74bed52e5930804d9 (commit)
   via  28e04f751f1d509da2c821f33df79b2a0c2d5a1a (commit)
  from  f29e9009310e4a6d575651dd9ba41ffc90bfb386 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit c0a84c2b4698f6ac9b555cc74bed52e5930804d9
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 20:46:16 2008 +0200

Refuse to install autogenerated proto header files.

commit 28e04f751f1d509da2c821f33df79b2a0c2d5a1a
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 20:44:36 2008 +0200

Ignore generated netlogon headers.

---

Summary of changes:
 .gitignore |2 ++
 source/script/installheader.pl |2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/.gitignore b/.gitignore
index 5ed4eed..75949c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -194,3 +194,5 @@ source/apidocs
 source/mkconfig.mk
 source/data.mk
 source/librpc/idl-deps
+source/libcli/netlogon_proto.h
+source/libcli/ndr_netlogon_proto.h
diff --git a/source/script/installheader.pl b/source/script/installheader.pl
index d1f96b2..6b10bde 100755
--- a/source/script/installheader.pl
+++ b/source/script/installheader.pl
@@ -60,6 +60,8 @@ sub install_header($$)
 
while (IN) {
$lineno++;
+   die(Will not install autogenerated header $src) if (/This 
file was automatically generated by mkproto.pl. DO NOT EDIT/);
+
if (/^#include \(.*)\/) {
print OUT #include  . 
rewrite_include($src:$lineno, $1) . \n;
} else {


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28a-1186-gd1223dd

2008-05-21 Thread Gerald Carter
The branch, v3-0-test has been updated
   via  d1223dd331841c2482301a9418e3a8607c81a8e9 (commit)
  from  b0b4bd2466658deacb1de3d58154bcc8d198d675 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test


- Log -
commit d1223dd331841c2482301a9418e3a8607c81a8e9
Author: Gerald W. Carter [EMAIL PROTECTED]
Date:   Wed May 21 14:20:17 2008 -0500

Remove -test from version string for release

---

Summary of changes:
 source/VERSION |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/VERSION b/source/VERSION
index 6d69d39..04974ad 100644
--- a/source/VERSION
+++ b/source/VERSION
@@ -95,5 +95,5 @@ SAMBA_VERSION_IS_GIT_SNAPSHOT=
 # e.g. SAMBA_VERSION_VENDOR_SUFFIX=vendor_version()#
 #  -  CVS 3.0.0rc2-VendorVersion#
 
-SAMBA_VERSION_VENDOR_SUFFIX=test
+SAMBA_VERSION_VENDOR_SUFFIX=
 SAMBA_VERSION_VENDOR_PATCH=


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2393-g03a1b79

2008-05-21 Thread Jeremy Allison
The branch, v3-2-test has been updated
   via  03a1b791f1ce41f67bf134024bbc8d116b42ea48 (commit)
  from  2d06726b7b65a9071a872ac71a09a614270c6b2c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -
commit 03a1b791f1ce41f67bf134024bbc8d116b42ea48
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Wed May 21 12:39:08 2008 -0700

Fix bug #5479, print spool shares require max_xmit to
be adhered to.
Jeremy.

---

Summary of changes:
 source/libsmb/clireadwrite.c |7 ++-
 1 files changed, 6 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/clireadwrite.c b/source/libsmb/clireadwrite.c
index 12ba4b7..515471e 100644
--- a/source/libsmb/clireadwrite.c
+++ b/source/libsmb/clireadwrite.c
@@ -704,7 +704,12 @@ ssize_t cli_write(struct cli_state *cli,
/* Only do massive writes if we can do them direct
 * with no signing or encrypting - not on a pipe. */
writesize = CLI_SAMBA_MAX_POSIX_LARGE_WRITEX_SIZE;
-   } else if (cli-capabilities  CAP_LARGE_WRITEX) {
+   } else if ((cli-capabilities  CAP_LARGE_WRITEX) 
+   (strcmp(cli-dev, LPT1:) != 0)) {
+
+   /* Printer devices are restricted to max_xmit
+* writesize in Vista and XPSP3. */
+
if (cli-is_samba) {
writesize = CLI_SAMBA_MAX_LARGE_WRITEX_SIZE;
} else if (!client_is_signing_on(cli)) {


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2544-g478a359

2008-05-21 Thread Jeremy Allison
The branch, v3-3-test has been updated
   via  478a359edead0677281a3ca4e64db6521941b0f3 (commit)
  from  01987778a123f853fccdcb7fe9566143e2d7c490 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -
commit 478a359edead0677281a3ca4e64db6521941b0f3
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Wed May 21 12:39:08 2008 -0700

Fix bug #5479, print spool shares require max_xmit to
be adhered to.
Jeremy.

---

Summary of changes:
 source/libsmb/clireadwrite.c |7 ++-
 1 files changed, 6 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/libsmb/clireadwrite.c b/source/libsmb/clireadwrite.c
index 12ba4b7..515471e 100644
--- a/source/libsmb/clireadwrite.c
+++ b/source/libsmb/clireadwrite.c
@@ -704,7 +704,12 @@ ssize_t cli_write(struct cli_state *cli,
/* Only do massive writes if we can do them direct
 * with no signing or encrypting - not on a pipe. */
writesize = CLI_SAMBA_MAX_POSIX_LARGE_WRITEX_SIZE;
-   } else if (cli-capabilities  CAP_LARGE_WRITEX) {
+   } else if ((cli-capabilities  CAP_LARGE_WRITEX) 
+   (strcmp(cli-dev, LPT1:) != 0)) {
+
+   /* Printer devices are restricted to max_xmit
+* writesize in Vista and XPSP3. */
+
if (cli-is_samba) {
writesize = CLI_SAMBA_MAX_LARGE_WRITEX_SIZE;
} else if (!client_is_signing_on(cli)) {


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28a-1187-g9c5c3ea

2008-05-21 Thread Jeremy Allison
The branch, v3-0-test has been updated
   via  9c5c3eadf5aaf9821c0ebe1d2bb533eff22aab63 (commit)
  from  d1223dd331841c2482301a9418e3a8607c81a8e9 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test


- Log -
commit 9c5c3eadf5aaf9821c0ebe1d2bb533eff22aab63
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Wed May 21 13:02:40 2008 -0700

Don't error out on xflush if there's no buffer.
Jeremy.

---

Summary of changes:
 source/lib/xfile.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/xfile.c b/source/lib/xfile.c
index d5b1731..9f83483 100644
--- a/source/lib/xfile.c
+++ b/source/lib/xfile.c
@@ -256,6 +256,8 @@ int x_fflush(XFILE *f)
 {
int ret;
 
+   if (f-bufused == 0 || !f-buf) return 0;
+
if (f-flags  X_FLAG_ERROR) return -1;
 
if ((f-open_flags  O_ACCMODE) != O_WRONLY) {
@@ -263,8 +265,6 @@ int x_fflush(XFILE *f)
return -1;
}
 
-   if (f-bufused == 0 || !f-buf) return 0;
-
ret = write(f-fd, f-buf, f-bufused);
if (ret == -1) return -1;



-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-28a-1188-g5c83e5f

2008-05-21 Thread Jeremy Allison
The branch, v3-0-test has been updated
   via  5c83e5f9d5f672817e64c7c8c0865d3a3e2eaf14 (commit)
  from  9c5c3eadf5aaf9821c0ebe1d2bb533eff22aab63 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-0-test


- Log -
commit 5c83e5f9d5f672817e64c7c8c0865d3a3e2eaf14
Author: Jeremy Allison [EMAIL PROTECTED]
Date:   Wed May 21 13:06:46 2008 -0700

Make 3.0.x in sync with 3.2 here.
Jeremy.

---

Summary of changes:
 source/lib/xfile.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/xfile.c b/source/lib/xfile.c
index 9f83483..1ecaaa0 100644
--- a/source/lib/xfile.c
+++ b/source/lib/xfile.c
@@ -256,10 +256,10 @@ int x_fflush(XFILE *f)
 {
int ret;
 
-   if (f-bufused == 0 || !f-buf) return 0;
-
if (f-flags  X_FLAG_ERROR) return -1;
 
+   if (f-bufused == 0 || !f-buf) return 0;
+
if ((f-open_flags  O_ACCMODE) != O_WRONLY) {
errno = EINVAL;
return -1;


-- 
Samba Shared Repository


[SCM] CTDB repository - branch master updated - 92be23dbd6a5bf32d4d1af4a41437fbcd7d8eaf2

2008-05-21 Thread Ronnie Sahlberg
The branch, master has been updated
   via  92be23dbd6a5bf32d4d1af4a41437fbcd7d8eaf2 (commit)
   via  a953a0fb450955b62d747bdc82c5b968fe0ed378 (commit)
   via  1ad0295f86370979d0537f7290f5e9c7d1ff6e94 (commit)
  from  c8181476748395fe6ec5284c49e9d37b882d15ea (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -
commit 92be23dbd6a5bf32d4d1af4a41437fbcd7d8eaf2
Author: Ronnie Sahlberg [EMAIL PROTECTED]
Date:   Thu May 22 06:08:38 2008 +1000

move CTDB_MANAGES_NFS from /etc/sysconfig/nfs to /etc/sysconfig/ctdb

commit a953a0fb450955b62d747bdc82c5b968fe0ed378
Author: Ronnie Sahlberg [EMAIL PROTECTED]
Date:   Thu May 22 06:04:36 2008 +1000

move the CTDB_MANAGES_ISCSI setting from /etc/sysconfig/iscsi to 
/etc/sysconfig/ctdb

commit 1ad0295f86370979d0537f7290f5e9c7d1ff6e94
Author: Ronnie Sahlberg [EMAIL PROTECTED]
Date:   Thu May 22 06:01:17 2008 +1000

move the config optoin CTDB_MANAGES_VSFTPD from /etc/sysconfig/vsftpd to 
/etc/sysconfig/ctdb

---

Summary of changes:
 config/ctdb.sysconfig|   10 ++
 config/events.d/40.vsftpd|1 +
 config/events.d/60.nfs   |1 +
 config/events.d/61.nfstickle |1 +
 config/events.d/70.iscsi |1 +
 web/ftp.html |4 ++--
 web/iscsi.html   |   16 
 web/nfs.html |   15 ++-
 8 files changed, 38 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/config/ctdb.sysconfig b/config/ctdb.sysconfig
index 58edbff..25b3f28 100644
--- a/config/ctdb.sysconfig
+++ b/config/ctdb.sysconfig
@@ -46,6 +46,16 @@
 # if left comented out then it will be autodetected based on smb.conf
 # CTDB_MANAGES_WINBIND=yes
 
+# should ctdb manage starting/stopping the VSFTPD service
+# CTDB_MANAGES_VSFTPD=yes
+
+# should ctdb manage starting/stopping the ISCSI service
+# CTDB_MANAGES_ISCSI=yes
+
+# should ctdb manage starting/stopping the NFS service
+# CTDB_MANAGES_NFS=yes
+
+
 # you may wish to raise the file descriptor limit for ctdb
 # use a ulimit command here. ctdb needs one file descriptor per
 # connected client (ie. one per connected client in Samba)
diff --git a/config/events.d/40.vsftpd b/config/events.d/40.vsftpd
index bc420fd..29f6fee 100755
--- a/config/events.d/40.vsftpd
+++ b/config/events.d/40.vsftpd
@@ -2,6 +2,7 @@
 # event strict to manage vsftpd in a cluster environment
 
 . $CTDB_BASE/functions
+loadconfig ctdb
 loadconfig vsftpd
 
 [ $CTDB_MANAGES_VSFTPD = yes ] || exit 0
diff --git a/config/events.d/60.nfs b/config/events.d/60.nfs
index 5aaf693..c62eed3 100755
--- a/config/events.d/60.nfs
+++ b/config/events.d/60.nfs
@@ -2,6 +2,7 @@
 # script to manage nfs in a clustered environment
 
 . $CTDB_BASE/functions
+loadconfig ctdb
 loadconfig nfs
 
 [ $CTDB_MANAGES_NFS = yes ] || exit 0
diff --git a/config/events.d/61.nfstickle b/config/events.d/61.nfstickle
index ab33cf1..5335595 100755
--- a/config/events.d/61.nfstickle
+++ b/config/events.d/61.nfstickle
@@ -4,6 +4,7 @@
 PATH=/bin:/usr/bin:$PATH
 
 . $CTDB_BASE/functions
+loadconfig ctdb
 loadconfig nfs
 
 cmd=$1
diff --git a/config/events.d/70.iscsi b/config/events.d/70.iscsi
index cd43553..426e412 100755
--- a/config/events.d/70.iscsi
+++ b/config/events.d/70.iscsi
@@ -4,6 +4,7 @@
 PATH=/bin:/usr/bin:$PATH
 
 . $CTDB_BASE/functions
+loadconfig ctdb
 loadconfig iscsi
 
 cmd=$1
diff --git a/web/ftp.html b/web/ftp.html
index 29947d4..82acd1d 100644
--- a/web/ftp.html
+++ b/web/ftp.html
@@ -13,9 +13,9 @@ Setting up a vsftpd cluster is really easy.br
 Configure vsftpd on each node on the cluster.brbr
 Set up vsftpd to export directories from the shared cluster filesystem.
 
-h2/etc/sysconfig/vsftpd/h2
+h2/etc/sysconfig/ctdb/h2
 
-Create the file /etc/sysconfig/vsftpd with the content :
+Add the following line to the /etc/sysconfig/ctdb configuration file.
 pre
   CTDB_MANAGES_VSFTPD=yes
 /pre
diff --git a/web/iscsi.html b/web/iscsi.html
index 7640937..1385e18 100644
--- a/web/iscsi.html
+++ b/web/iscsi.html
@@ -41,17 +41,25 @@ onnode all chkconfig tgtd off
 Create this file and add the following three lines to it :
 
 pre
-   CTDB_MANAGES_ISCSI=yes
CTDB_START_ISCSI_SCRIPTS=/gpfs/iscsi/
 /pre
 
 p
-CTDB_MANAGES_ISCSI=yes just tells CTDB event script for iSCSI that CTDB should 
start and stop the iSCSI target service as required.
+CTDB_START_ISCSI_SCRIPTS=directory on shared storage
+This is a directory on shared storage where the scripts to start and configure 
the iscsi service are held. There is one script for each public address named 
public address.sh .
 /p
 
+
+h2/etc/sysconfig/ctdb/h2
+
+Add the following line to /etc/sysconfig/ctdb :
+
+pre
+   CTDB_MANAGES_ISCSI=yes
+/pre
+
 p
-CTDB_START_ISCSI_SCRIPTS=directory on shared storage
-This is a directory on shared storage where the scripts to start and 

[SCM] CTDB repository - branch master updated - 2908e092710d7fa2245161b3315747e17e4226c0

2008-05-21 Thread Ronnie Sahlberg
The branch, master has been updated
   via  2908e092710d7fa2245161b3315747e17e4226c0 (commit)
  from  92be23dbd6a5bf32d4d1af4a41437fbcd7d8eaf2 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -
commit 2908e092710d7fa2245161b3315747e17e4226c0
Author: Ronnie Sahlberg [EMAIL PROTECTED]
Date:   Thu May 22 06:22:25 2008 +1000

update version to .39

---

Summary of changes:
 packaging/RPM/ctdb.spec |7 ++-
 1 files changed, 6 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/packaging/RPM/ctdb.spec b/packaging/RPM/ctdb.spec
index 41fcc59..4cd9a54 100644
--- a/packaging/RPM/ctdb.spec
+++ b/packaging/RPM/ctdb.spec
@@ -5,7 +5,7 @@ Vendor: Samba Team
 Packager: Samba Team [EMAIL PROTECTED]
 Name: ctdb
 Version: 1.0
-Release: 38
+Release: 39
 Epoch: 0
 License: GNU GPL version 3
 Group: System Environment/Daemons
@@ -120,6 +120,11 @@ fi
 %{_includedir}/ctdb_private.h
 
 %changelog
+* Thu May 22 2008 : Version 1.0.39
+ - Moved a CTDB_MANAGES_NFS, CTDB_MANAGES_ISCSI and CTDB_MANAGES_CSFTPD
+   into /etc/sysconfig/ctdb
+ - Lowered some debug messages to not fill the logfile with entries
+   that normally occur in the default configuration.
 * Fri May 16 2008 : Version 1.0.38
  - Add machine readable output support to ctdb getmonmode
  - Lots of tweaks and enhancements if the event scripts are slow


-- 
CTDB repository


[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1677-g76be51d

2008-05-21 Thread Stefan Metzmacher
The branch, v4-0-test has been updated
   via  76be51d3a08e2239a137b8abe3f2df722f69ddb2 (commit)
   via  e835e7eebcc064ce0813814796828f15ad112fbd (commit)
  from  c0a84c2b4698f6ac9b555cc74bed52e5930804d9 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 76be51d3a08e2239a137b8abe3f2df722f69ddb2
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Wed May 21 21:28:59 2008 +0200

lib/socket: use HAVE_IPV6 test from LIBREPLACE_NETWORK_CHECKS

metze

commit e835e7eebcc064ce0813814796828f15ad112fbd
Author: Stefan Metzmacher [EMAIL PROTECTED]
Date:   Wed May 21 21:27:45 2008 +0200

libreplace: add test for HAVE_IPV6

Samba can later just check libreplace_cv_HAVE_IPV6 = yes.

metze

---

Summary of changes:
 source/lib/replace/libreplace_network.m4 |   29 +
 source/lib/socket/config.m4  |   16 +---
 2 files changed, 34 insertions(+), 11 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/replace/libreplace_network.m4 
b/source/lib/replace/libreplace_network.m4
index f2d177b..6cde6b9 100644
--- a/source/lib/replace/libreplace_network.m4
+++ b/source/lib/replace/libreplace_network.m4
@@ -339,6 +339,35 @@ if test x$libreplace_cv_HAVE_IFACE_IFREQ = xyes; then
 fi
 fi
 
+dnl test for ipv6
+AC_CACHE_CHECK([for ipv6 support],libreplace_cv_HAVE_IPV6,[
+   AC_TRY_COMPILE([
+#include stdlib.h /* for NULL */
+#include sys/socket.h
+#include sys/types.h
+#include netdb.h
+   ],
+   [
+struct sockaddr_storage sa_store;
+struct addrinfo *ai = NULL;
+struct in6_addr in6addr;
+int idx = if_nametoindex(iface1);
+int s = socket(AF_INET6, SOCK_STREAM, 0);
+int ret = getaddrinfo(NULL, NULL, NULL, ai);
+if (ret != 0) {
+   const char *es = gai_strerror(ret);
+}
+freeaddrinfo(ai);
+   ],[
+   libreplace_cv_HAVE_IPV6=yes
+   ],[
+   libreplace_cv_HAVE_IPV6=no
+   ])
+])
+if test x$libreplace_cv_HAVE_IPV6 = xyes; then
+AC_DEFINE(HAVE_IPV6,1,[Whether the system has IPv6 support])
+fi
+
 LIBS=$old_LIBS
 CPPFLAGS=$SAVE_CPPFLAGS
 
diff --git a/source/lib/socket/config.m4 b/source/lib/socket/config.m4
index 871c57f..9c0072d 100644
--- a/source/lib/socket/config.m4
+++ b/source/lib/socket/config.m4
@@ -1,5 +1,6 @@
 AC_CHECK_FUNCS(writev)
 AC_CHECK_FUNCS(readv)
+AC_CHECK_FUNCS(gethostbyname2)
 
 
 # check for unix domain sockets
@@ -9,17 +10,10 @@ if test x$libreplace_cv_HAVE_UNIXSOCKET = xyes; then
SMB_ENABLE(socket_unix, YES)
 fi
 
-dnl test for ipv6 using the gethostbyname2() function. That should be 
sufficient
-dnl for now
-AC_CHECK_FUNCS(gethostbyname2, have_ipv6=true, have_ipv6=false)
+
+# check for ipv6
+# done by AC_LIBREPLACE_NETWORK_CHECKS
 SMB_ENABLE(socket_ipv6, NO)
-if $have_ipv6 = true; then
+if test x$libreplace_cv_HAVE_IPV6 = xyes; then
 SMB_ENABLE(socket_ipv6, YES)
-AC_DEFINE(HAVE_IPV6,1,[Whether the system has ipv6 support])
 fi
-dnl don't build ipv6 by default, unless the above test enables it, or
-dnl the configure uses --with-static-modules=socket_ipv6
-
-
-
-


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2546-gc81d553

2008-05-21 Thread Michael Adam
The branch, v3-3-test has been updated
   via  c81d5537420ea305d995eaedb68e65f4864b331c (commit)
   via  1cbb46e2e282a9044bd343b65e4f0269e2afac36 (commit)
  from  478a359edead0677281a3ca4e64db6521941b0f3 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -
commit c81d5537420ea305d995eaedb68e65f4864b331c
Author: Michael Adam [EMAIL PROTECTED]
Date:   Mon May 19 11:31:18 2008 +0200

packaging: disable cups in the RHEL-CTDB build.

Michael
(cherry picked from commit de76543b45a97e41939b50ba7efdc6e4e66ea737)

commit 1cbb46e2e282a9044bd343b65e4f0269e2afac36
Author: Michael Adam [EMAIL PROTECTED]
Date:   Fri May 16 23:36:26 2008 +0200

packaging: we are at release ctdb.27 in RHEL-CTDB.

Michael
(cherry picked from commit 6e66a0017f9429fb8b3d1757969074be260215e1)

---

Summary of changes:
 packaging/RHEL-CTDB/samba.spec |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/packaging/RHEL-CTDB/samba.spec b/packaging/RHEL-CTDB/samba.spec
index 8600e05..bae4112 100644
--- a/packaging/RHEL-CTDB/samba.spec
+++ b/packaging/RHEL-CTDB/samba.spec
@@ -6,7 +6,7 @@ Vendor: Samba Team
 Packager: Samba Team [EMAIL PROTECTED]
 Name: samba
 Version:  3.2.0
-Release:  ctdb.1
+Release:  ctdb.27
 Epoch:0
 License: GNU GPL version 3
 Group: System Environment/Daemons
@@ -160,7 +160,7 @@ CFLAGS=$RPM_OPT_FLAGS $EXTRA -D_GNU_SOURCE ./configure \
--with-privatedir=%{_sysconfdir}/samba \
 --with-sambabook=%{_datadir}/swat/using_samba \
 --with-swatdir=%{_datadir}/swat \
-   --enable-cups \
+   --disable-cups \
 --with-acl-support \
--with-ads \
 --with-automount \


-- 
Samba Shared Repository


[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-2552-gfe8f9e4

2008-05-21 Thread Michael Adam
The branch, v3-3-test has been updated
   via  fe8f9e427af3eb42d63fde96c4fe20a255facb95 (commit)
   via  a0bdd56c75ca6f6c6068995647c0dc1ba89aef12 (commit)
   via  24ac40518f79fd480baaedc1d42f3b6fe8ea1c94 (commit)
   via  be5d54a363a57113e494202a2d22dd9bbcf13b41 (commit)
   via  2ff908a902ec857856518eaddb5246dd5067063d (commit)
   via  8ae39c1339758795a91c6a168e210357e7f29eae (commit)
  from  c81d5537420ea305d995eaedb68e65f4864b331c (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -
commit fe8f9e427af3eb42d63fde96c4fe20a255facb95
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Thu Apr 24 22:45:28 2008 +0200

Compile endpoint mapper pidl output

commit a0bdd56c75ca6f6c6068995647c0dc1ba89aef12
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Tue May 20 18:25:42 2008 +0200

rpc_client: add a destructor to close the socket for pipes over tcp.

used in rpc_pipe_open_tcp() and rpc_pipe_open_ncalrpc().

commit 24ac40518f79fd480baaedc1d42f3b6fe8ea1c94
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Mon May 12 23:37:07 2008 +0200

Add client support for NCACN_UNIX_STREAM

commit be5d54a363a57113e494202a2d22dd9bbcf13b41
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Mon May 12 23:35:27 2008 +0200

rpccli_schannel_bind_data only needs the schannel key

commit 2ff908a902ec857856518eaddb5246dd5067063d
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Mon May 12 17:07:37 2008 +0200

Rename rpc_pipe_client.tcp.sock to rpc_pipe_client.sock.fd

commit 8ae39c1339758795a91c6a168e210357e7f29eae
Author: Volker Lendecke [EMAIL PROTECTED]
Date:   Mon May 12 17:05:42 2008 +0200

Fix a comment

---

Summary of changes:
 source/Makefile.in   |2 +
 source/include/client.h  |4 +-
 source/include/proto.h   |5 ++-
 source/include/rpc_client.h  |1 +
 source/include/smb.h |5 ++-
 source/rpc_client/cli_pipe.c |  123 -
 source/rpc_parse/parse_rpc.c |1 +
 7 files changed, 122 insertions(+), 19 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/Makefile.in b/source/Makefile.in
index 21b4b1c..6899faf 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -291,6 +291,7 @@ LIBNDR_GEN_OBJ = librpc/gen_ndr/ndr_wkssvc.o \
 librpc/gen_ndr/ndr_dssetup.o \
 librpc/gen_ndr/ndr_notify.o \
 librpc/gen_ndr/ndr_xattr.o \
+librpc/gen_ndr/ndr_epmapper.o \
 librpc/gen_ndr/ndr_ntsvcs.o
 
 RPC_PARSE_OBJ0 = rpc_parse/parse_prs.o rpc_parse/parse_misc.o
@@ -467,6 +468,7 @@ LIBMSRPC_GEN_OBJ = librpc/gen_ndr/cli_lsa.o \
   librpc/gen_ndr/cli_samr.o \
   librpc/gen_ndr/cli_dssetup.o \
   librpc/gen_ndr/cli_ntsvcs.o \
+  librpc/gen_ndr/cli_epmapper.o \
   $(LIBNDR_GEN_OBJ) \
   $(RPCCLIENT_NDR_OBJ)
 
diff --git a/source/include/client.h b/source/include/client.h
index 7d76b8e..c5882e3 100644
--- a/source/include/client.h
+++ b/source/include/client.h
@@ -72,8 +72,8 @@ struct rpc_pipe_client {
uint16 fnum;
} np;
struct {
-   int sock;
-   } tcp;
+   int fd;
+   } sock;
} trans ;
 
const struct ndr_syntax_id *abstract_syntax;
diff --git a/source/include/proto.h b/source/include/proto.h
index a0354a3..f76e43a 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -7053,7 +7053,7 @@ NTSTATUS rpccli_ntlmssp_bind_data(TALLOC_CTX *mem_ctx,
  struct cli_pipe_auth_data **presult);
 NTSTATUS rpccli_schannel_bind_data(TALLOC_CTX *mem_ctx, const char *domain,
   enum pipe_auth_level auth_level,
-  const struct dcinfo *pdc,
+  const uint8_t sess_key[16],
   struct cli_pipe_auth_data **presult);
 NTSTATUS rpccli_kerberos_bind_data(TALLOC_CTX *mem_ctx,
   enum pipe_auth_level auth_level,
@@ -7065,6 +7065,9 @@ NTSTATUS rpc_pipe_open_tcp(TALLOC_CTX *mem_ctx, const 
char *host,
   uint16_t port,
   const struct ndr_syntax_id *abstract_syntax,
   struct rpc_pipe_client **presult);
+NTSTATUS rpc_pipe_open_ncalrpc(TALLOC_CTX *mem_ctx, const char *socket_path,
+  const struct ndr_syntax_id *abstract_syntax,
+  struct rpc_pipe_client **presult);
 struct rpc_pipe_client *cli_rpc_pipe_open_noauth(struct cli_state *cli, int 
pipe_idx, NTSTATUS *perr);
 struct rpc_pipe_client *cli_rpc_pipe_open_ntlmssp(struct cli_state *cli,
  

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1686-g30f8d58

2008-05-21 Thread Jelmer Vernooij
The branch, v4-0-test has been updated
   via  30f8d581aa339b37b27011e65355937590df10b9 (commit)
   via  453206665677821b254c18cc67192e007b892f04 (commit)
   via  cd8c8226784c96d7f1dbae006a4853eb50c7b2e2 (commit)
   via  0fae6f11081cff7846319175cfec95fa3911571c (commit)
   via  37ef86f8de9039b8226b190254d842e92b5faad7 (commit)
   via  9b39e99f48266a54ed0b8890c2efde218b4b118a (commit)
   via  ed38c668cdbe10966e46bad97301122eea8001d0 (commit)
   via  58665a8a8e4b10435aebbf2c95b6a8e50db232d6 (commit)
   via  b865249efaa58d0fc87fa25491fda3b970af81c3 (commit)
  from  76be51d3a08e2239a137b8abe3f2df722f69ddb2 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 30f8d581aa339b37b27011e65355937590df10b9
Merge: 453206665677821b254c18cc67192e007b892f04 
76be51d3a08e2239a137b8abe3f2df722f69ddb2
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu May 22 01:48:20 2008 +0200

Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 
v4-0-test

commit 453206665677821b254c18cc67192e007b892f04
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu May 22 01:47:36 2008 +0200

Fix python imports.

commit cd8c8226784c96d7f1dbae006a4853eb50c7b2e2
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu May 22 01:47:22 2008 +0200

use one blackbox script per executable.

commit 0fae6f11081cff7846319175cfec95fa3911571c
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu May 22 01:17:30 2008 +0200

Fix events test.

commit 37ef86f8de9039b8226b190254d842e92b5faad7
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu May 22 00:56:36 2008 +0200

Fix dependencies and imports.

commit 9b39e99f48266a54ed0b8890c2efde218b4b118a
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 23:59:34 2008 +0200

Move more modules inside of the samba package.

commit ed38c668cdbe10966e46bad97301122eea8001d0
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 21:50:56 2008 +0200

Move some python files into the samba package.

commit 58665a8a8e4b10435aebbf2c95b6a8e50db232d6
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 21:32:53 2008 +0200

Move CFLAGS overrides for SWIG modules to Makefile.

commit b865249efaa58d0fc87fa25491fda3b970af81c3
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Wed May 21 21:24:48 2008 +0200

Remove support for .py files from smb_build - deal with it only in the 
makefiles.

---

Summary of changes:
 source/auth/config.mk  |6 ++-
 source/auth/credentials/config.mk  |6 ++-
 source/auth/credentials/credentials.py |2 +-
 source/auth/credentials/credentials_wrap.c |   65 ++--
 source/auth/credentials/tests/bindings.py  |2 +-
 source/auth/tests/bindings.py  |2 +-
 source/build/smb_build/config_mk.pm|2 +-
 source/build/smb_build/input.pm|   20 +-
 source/build/smb_build/main.pl |1 -
 source/build/smb_build/makefile.pm |9 ---
 source/lib/events/config.mk|6 ++-
 source/lib/events/tests.py |2 +-
 source/lib/ldb/python.mk   |6 ++-
 source/lib/ldb/tests/python/ldap.py|4 +-
 source/lib/registry/config.mk  |6 ++-
 source/lib/registry/tests/bindings.py  |2 +-
 source/lib/tdb/python.mk   |7 ++-
 source/libcli/config.mk|   13 +++-
 source/libcli/security/config.mk   |6 ++-
 source/libcli/security/tests/bindings.py   |2 +-
 source/libnet/config.mk|1 +
 source/librpc/config.mk|   41 +---
 source/librpc/rpc/dcerpc.py|4 +-
 source/librpc/rpc/dcerpc_wrap.c|   65 ++--
 source/param/config.mk |6 ++-
 source/param/tests/bindings.py |2 +-
 source/scripting/bin/subunitrun|2 +-
 source/scripting/python/config.mk  |   13 +++-
 .../python/samba/tests/dcerpc/registry.py  |2 +-
 .../scripting/python/samba/tests/dcerpc/rpcecho.py |2 +-
 source/scripting/python/samba/tests/dcerpc/sam.py  |2 +-
 source/scripting/python/samba/tests/dcerpc/unix.py |2 +-
 source/selftest/samba4_tests.sh|2 +
 source/setup/enableaccount |2 +-
 source/setup/newuser   |2 +-
 source/setup/provision |4 +-
 source/setup/setpassword   |7 ++-
 

Build status as of Thu May 22 00:00:02 2008

2008-05-21 Thread build
URL: http://build.samba.org/

--- /home/build/master/cache/broken_results.txt.old 2008-05-21 
00:00:23.0 +
+++ /home/build/master/cache/broken_results.txt 2008-05-22 00:00:23.0 
+
@@ -1,4 +1,4 @@
-Build status as of Wed May 21 00:00:02 2008
+Build status as of Thu May 22 00:00:02 2008
 
 Build counts:
 Tree Total  Broken Panic 
@@ -7,7 +7,7 @@
 ctdb 0  0  0 
 distcc   1  0  0 
 ldb  29 12 0 
-libreplace   28 11 0 
+libreplace   28 10 0 
 lorikeet-heimdal 26 22 0 
 pidl 17 11 0 
 ppp  12 0  0 


[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1688-g8ee4f07

2008-05-21 Thread Jelmer Vernooij
The branch, v4-0-test has been updated
   via  8ee4f075046e0b181ec8a4ac1eaf3ea5621a56bf (commit)
   via  937456c69d23ece85bdb7415f52d722c2aa6b6b5 (commit)
  from  30f8d581aa339b37b27011e65355937590df10b9 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 8ee4f075046e0b181ec8a4ac1eaf3ea5621a56bf
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu May 22 02:13:26 2008 +0200

Fix CFLAGS for SWIG files.

commit 937456c69d23ece85bdb7415f52d722c2aa6b6b5
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu May 22 01:50:38 2008 +0200

Make sure the default ldb modules dir gets initialized.

---

Summary of changes:
 source/auth/config.mk |2 +-
 source/lib/events/config.mk   |2 +-
 source/lib/ldb/python.mk  |2 +-
 source/lib/registry/config.mk |2 +-
 source/lib/tdb/python.mk  |2 +-
 source/libcli/config.mk   |4 ++--
 source/libcli/security/config.mk  |2 +-
 source/param/config.mk|2 +-
 source/scripting/python/config.mk |2 +-
 source/scripting/python/samba/__init__.py |2 ++
 10 files changed, 12 insertions(+), 10 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/auth/config.mk b/source/auth/config.mk
index 0f8b23e..f13c2e5 100644
--- a/source/auth/config.mk
+++ b/source/auth/config.mk
@@ -45,4 +45,4 @@ $(eval $(call 
python_py_module_template,samba/auth.py,$(authsrcdir)/auth.py))
 
 swig_auth_OBJ_FILES = $(authsrcdir)/auth_wrap.o
 
-$(swig_auth_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
+$(swig_auth_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
diff --git a/source/lib/events/config.mk b/source/lib/events/config.mk
index ca47f0d..9d57980 100644
--- a/source/lib/events/config.mk
+++ b/source/lib/events/config.mk
@@ -59,4 +59,4 @@ swig_events_OBJ_FILES = $(libeventssrcdir)/events_wrap.o
 
 $(eval $(call 
python_py_module_template,samba/events.py,$(libeventssrcdir)/events.py))
 
-$(swig_events_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
+$(swig_events_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
diff --git a/source/lib/ldb/python.mk b/source/lib/ldb/python.mk
index 7b430f4..89aba8f 100644
--- a/source/lib/ldb/python.mk
+++ b/source/lib/ldb/python.mk
@@ -7,4 +7,4 @@ swig_ldb_OBJ_FILES = lib/ldb/ldb_wrap.o
 
 $(eval $(call python_py_module_template,ldb.py,lib/ldb/ldb.py))
 
-$(swig_ldb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
+$(swig_ldb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
diff --git a/source/lib/registry/config.mk b/source/lib/registry/config.mk
index 90618ff..44adc53 100644
--- a/source/lib/registry/config.mk
+++ b/source/lib/registry/config.mk
@@ -112,4 +112,4 @@ swig_registry_OBJ_FILES = 
$(libregistrysrcdir)/registry_wrap.o
 
 $(eval $(call 
python_py_module_template,samba/registry.py,lib/registry/registry.py))
 
-$(swig_registry_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
+$(swig_registry_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
diff --git a/source/lib/tdb/python.mk b/source/lib/tdb/python.mk
index e71a60f..83336e7 100644
--- a/source/lib/tdb/python.mk
+++ b/source/lib/tdb/python.mk
@@ -6,5 +6,5 @@ swig_tdb_OBJ_FILES = lib/tdb/tdb_wrap.o
 
 $(eval $(call python_py_module_template,tdb.py,lib/tdb/tdb.py))
 
-$(swig_tdb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
+$(swig_tdb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)
 
diff --git a/source/libcli/config.mk b/source/libcli/config.mk
index ee8d6b2..b24f3eb 100644
--- a/source/libcli/config.mk
+++ b/source/libcli/config.mk
@@ -82,7 +82,7 @@ python_libcli_nbt_OBJ_FILES = 
$(libclisrcdir)/swig/libcli_nbt_wrap.o
 
 $(eval $(call 
python_py_module_template,samba/nbt.py,$(libclisrcdir)/swig/libcli_nbt.py))
 
-$(python_libcli_nbt_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
+$(python_libcli_nbt_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
 
 [PYTHON::python_libcli_smb]
 LIBRARY_REALNAME = samba/_libcli_smb.$(SHLIBEXT)
@@ -92,7 +92,7 @@ python_libcli_smb_OBJ_FILES = 
$(libclisrcdir)/swig/libcli_smb_wrap.o
 
 $(eval $(call 
python_py_module_template,samba/smb.py,$(libclisrcdir)/swig/libcli_smb.py))
 
-$(python_libcli_smb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
+$(python_libcli_smb_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
 
 
 [SUBSYSTEM::LIBCLI_DGRAM]
diff --git a/source/libcli/security/config.mk b/source/libcli/security/config.mk
index 82fe8f1..f2883d1 100644
--- a/source/libcli/security/config.mk
+++ b/source/libcli/security/config.mk
@@ -15,4 

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1689-g8dafd4c

2008-05-21 Thread Jelmer Vernooij
The branch, v4-0-test has been updated
   via  8dafd4ce40b7348fd5f2b1f2f5d2106ef4cc0dd1 (commit)
  from  8ee4f075046e0b181ec8a4ac1eaf3ea5621a56bf (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 8dafd4ce40b7348fd5f2b1f2f5d2106ef4cc0dd1
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu May 22 02:21:25 2008 +0200

Move DCE/RPC python bindings into samba package.

---

Summary of changes:
 source/librpc/config.mk|   34 ++--
 .../python/samba/tests/dcerpc/registry.py  |2 +-
 .../scripting/python/samba/tests/dcerpc/rpcecho.py |2 +-
 source/scripting/python/samba/tests/dcerpc/sam.py  |2 +-
 source/scripting/python/samba/tests/dcerpc/unix.py |2 +-
 5 files changed, 21 insertions(+), 21 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/librpc/config.mk b/source/librpc/config.mk
index 2a5a1fa..cbb0d19 100644
--- a/source/librpc/config.mk
+++ b/source/librpc/config.mk
@@ -722,101 +722,101 @@ PRIVATE_DEPENDENCIES = dcerpc NDR_IRPC EJSRPC
 RPC_EJS_IRPC_OBJ_FILES = $(gen_ndrsrcdir)/ndr_irpc_ejs.o
 
 [PYTHON::swig_dcerpc]
-LIBRARY_REALNAME = dcerpc/_dcerpc.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/_dcerpc.$(SHLIBEXT)
 PUBLIC_DEPENDENCIES = LIBCLI_SMB NDR_MISC LIBSAMBA-UTIL LIBSAMBA-HOSTCONFIG 
dcerpc_samr RPC_NDR_LSA DYNCONFIG
 
 swig_dcerpc_OBJ_FILES = $(dcerpcsrcdir)/dcerpc_wrap.o
 
-$(eval $(call 
python_py_module_template,dcerpc/__init__.py,$(dcerpcsrcdir)/dcerpc.py))
+$(eval $(call 
python_py_module_template,samba/dcerpc/__init__.py,$(dcerpcsrcdir)/dcerpc.py))
 
 $(swig_dcerpc_OBJ_FILES): CFLAGS+=$(CFLAG_NO_UNUSED_MACROS) 
$(CFLAG_NO_CAST_QUAL)
 
 [PYTHON::python_echo]
-LIBRARY_REALNAME = dcerpc/echo.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/echo.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = RPC_NDR_ECHO PYTALLOC param swig_credentials 
 
 python_echo_OBJ_FILES = $(gen_ndrsrcdir)/py_echo.o
 
 [PYTHON::python_winreg]
-LIBRARY_REALNAME = dcerpc/winreg.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/winreg.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = RPC_NDR_WINREG python_misc PYTALLOC param 
swig_credentials python_dcerpc_misc python_lsa
 
 python_winreg_OBJ_FILES = $(gen_ndrsrcdir)/py_winreg.o
 
 [PYTHON::python_dcerpc_misc]
-LIBRARY_REALNAME = dcerpc/misc.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/misc.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = PYTALLOC
 
 python_dcerpc_misc_OBJ_FILES = $(gen_ndrsrcdir)/py_misc.o
 
 [PYTHON::python_initshutdown]
-LIBRARY_REALNAME = dcerpc/initshutdown.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/initshutdown.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = RPC_NDR_INITSHUTDOWN PYTALLOC param swig_credentials 
python_lsa python_dcerpc_security
 
 python_initshutdown_OBJ_FILES = $(gen_ndrsrcdir)/py_initshutdown.o
 
 [PYTHON::python_epmapper]
-LIBRARY_REALNAME = dcerpc/epmapper.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/epmapper.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES =  dcerpc PYTALLOC param swig_credentials 
python_dcerpc_misc
 
 python_epmapper_OBJ_FILES = $(gen_ndrsrcdir)/py_epmapper.o
 
 [PYTHON::python_mgmt]
-LIBRARY_REALNAME = dcerpc/mgmt.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/mgmt.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = PYTALLOC param swig_credentials dcerpc 
python_dcerpc_misc
 
 python_mgmt_OBJ_FILES = $(gen_ndrsrcdir)/py_mgmt.o
 
 [PYTHON::python_atsvc]
-LIBRARY_REALNAME = dcerpc/atsvc.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/atsvc.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = dcerpc_atsvc PYTALLOC param swig_credentials 
 
 python_atsvc_OBJ_FILES = $(gen_ndrsrcdir)/py_atsvc.o
 
 [PYTHON::python_samr]
-LIBRARY_REALNAME = dcerpc/samr.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/samr.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = dcerpc_samr PYTALLOC python_dcerpc_security python_lsa 
python_dcerpc_misc swig_credentials param
 
 python_samr_OBJ_FILES = $(gen_ndrsrcdir)/py_samr.o
 
 [PYTHON::python_svcctl]
-LIBRARY_REALNAME = dcerpc/svcctl.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/svcctl.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = RPC_NDR_SVCCTL PYTALLOC param swig_credentials 
python_dcerpc_misc
 
 python_svcctl_OBJ_FILES = $(gen_ndrsrcdir)/py_svcctl.o
 
 [PYTHON::python_lsa]
-LIBRARY_REALNAME = dcerpc/lsa.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/lsa.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = RPC_NDR_LSA PYTALLOC param swig_credentials 
python_dcerpc_security
 
 python_lsa_OBJ_FILES = $(gen_ndrsrcdir)/py_lsa.o
 
 [PYTHON::python_wkssvc]
-LIBRARY_REALNAME = dcerpc/wkssvc.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/wkssvc.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = RPC_NDR_WKSSVC PYTALLOC param swig_credentials 
python_lsa python_dcerpc_security
 
 python_wkssvc_OBJ_FILES = $(gen_ndrsrcdir)/py_wkssvc.o
 
 [PYTHON::python_dfs]
-LIBRARY_REALNAME = dcerpc/dfs.$(SHLIBEXT)
+LIBRARY_REALNAME = samba/dcerpc/dfs.$(SHLIBEXT)
 PRIVATE_DEPENDENCIES = RPC_NDR_DFS PYTALLOC param 

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1690-g96501be

2008-05-21 Thread Jelmer Vernooij
The branch, v4-0-test has been updated
   via  96501be38da947f02ad57217e0bc23f7a66d36f9 (commit)
  from  8dafd4ce40b7348fd5f2b1f2f5d2106ef4cc0dd1 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 96501be38da947f02ad57217e0bc23f7a66d36f9
Author: Jelmer Vernooij [EMAIL PROTECTED]
Date:   Thu May 22 03:09:40 2008 +0200

Fix import in provision test.

---

Summary of changes:
 source/scripting/python/samba/tests/provision.py |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/scripting/python/samba/tests/provision.py 
b/source/scripting/python/samba/tests/provision.py
index b9e0e16..76c1014 100644
--- a/source/scripting/python/samba/tests/provision.py
+++ b/source/scripting/python/samba/tests/provision.py
@@ -21,7 +21,7 @@ import os
 from samba.provision import setup_secretsdb, secretsdb_become_dc, findnss
 import samba.tests
 from ldb import Dn
-import param
+from samba import param
 import unittest
 
 lp = samba.tests.cmdline_loadparm


-- 
Samba Shared Repository


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

2008-05-21 Thread jerry
Author: jerry
Date: 2008-05-22 02:05:13 + (Thu, 22 May 2008)
New Revision: 1188

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

Log:
Commit the 3.0.29 release announcement to the web site
Added:
   trunk/history/samba-3.0.29.html


Changeset:
Added: trunk/history/samba-3.0.29.html
===
--- trunk/history/samba-3.0.29.html 2008-05-19 18:46:26 UTC (rev 1187)
+++ trunk/history/samba-3.0.29.html 2008-05-22 02:05:13 UTC (rev 1188)
@@ -0,0 +1,149 @@
+!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
+http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
+html xmlns=http://www.w3.org/1999/xhtml;
+
+head
+titleSamba - Release Notes Archive/title
+/head
+
+body
+
+   H2Samba 3.0.29 Available for Download/H2
+
+p
+pre
+   ===
+   Release Notes for Samba 3.0.29
+May 20, 2008
+   ===
+
+This is a bug fix release of the Samba 3.0 production series and is the
+version that servers should be run for all current Samba 3.0 bug fixes.  
+
+Major bug fixes included in Samba 3.0.29 are:
+
+  o Problems following domain trusts on a Samba DC.
+  o SMB Signing errors.
+  o Interoperability issues with Windows 2008 domains.
+
+
+##
+Changes
+###
+
+Changes since 3.0.28a
+-
+
+o   Michael Adam [EMAIL PROTECTED]
+* Fix build for pam_smbpass.
+* Fix a crash in tdb_wrap_log().
+
+
+o   Jeremy Allison [EMAIL PROTECTED]
+* BUG 5267: Fix for nmbd termination problems when no interfaces 
+  found.
+* BUG 5326: OS/2 servers give strange high word replies for 
+  print jobs.
+* Remove MS-DFS check that required the target host be ourself.
+* BUG 5372: Fix high CPU usage of cupsd on large print servers
+  by using more efficient CUPS queries in smbd.
+* Rewrite integer wrap checks to deal with gcc 4.x optimizations.
+* BUG 5095: Fix the enforcement of the Manage Documents access right.
+* Don't free memory from getpass() in mount.cifs.
+* BUG 5460: Fix MS-DFS referral problem in server code.
+* Fix bug in Winbind that caused the parent to ignore dead children.
+* Fix compile warnings.
+
+
+o   Alexander Bokovoy [EMAIL PROTECTED]
+* Fix build for pam_smbpass.
+* Document build fixes.
+
+
+o   Kai Blin [EMAIL PROTECTED]
+* BUG 4235: Improve compliance to the Squid helper protocol.
+  Original patch from Pawel Worach [EMAIL PROTECTED].
+
+
+o   Gerald (Jerry) Carter [EMAIL PROTECTED]
+* BUG 5107: Fix handling of large DNS replies on AIX and Solaris.
+
+
+o   Glenn Curtis [EMAIL PROTECTED]
+* Prevent cycle in Wibind's list of children when reaping dead processes.
+
+
+o   Steven Danneman [EMAIL PROTECTED]
+* BUG 5419: Fix memory leak in ads_do_search_all_args() (merge from v3-2).
+
+
+o   Guenther Deschner [EMAIL PROTECTED]
+* Fix winbind NETLOGON credential chain on a samba dc for w2k8 trusts.
+* Fix client connections and negotiation with Windows 2008 DCs
+  in member server code.
+* Add NT_STATUS_DOWNGRADE_DETECTED error code (merge from v3-2).
+* BUG 5430: Fix pam_winbind.so on Solaris (requires -lsocket).
+* Re-add samr getdispinfoindex parsing which got lost in the glue commit.
+* BUG 5461: Implement a very basic _samr_GetDisplayEnumerationIndex().
+  Corrects interop problem between Citrix PM and a Samba DC.
+
+
+o   Bryan Kolodziej [EMAIL PROTECTED]
+* BUG 3840: Fix smbclient connecting to NetApp filers when using
+  whitespace in the user's password.
+
+
+o   Volker Lendecke [EMAIL PROTECTED]
+* BUG 4901: Fix behavior of ldap passwd sync = only.
+* BUG 5317: Fix debug output from domain_client_validate().
+* BUG 5338: Fix format string bug in rpcclient.
+* Ensure that wbinfo -a trusted\\user%password works correctly
+  on a Samba DC with trusts.
+* BUG 5336: Fix SetUsetrInfo(level 25) to update the pwdLastSet 
+  attribute.
+* BUG 5350: Fallback to anonymous sessions if not trust password
+  could be obtained on Samba DCs and member servers.
+* BUG 5366: Fix password chat on Sun OpenSolaris (Nevada).
+* Fix signing problem in the client with trans requests.
+
+
+o   Björn Jacke [EMAIL PROTECTED]
+* Fix alignment bug hitting Solaris with reset in zero vc activated.
+
+
+o   Jim McDonough [EMAIL PROTECTED]
+* Fix build with glibc 2.8.
+* Enable winbind child processes to do something with signals, in 
+  particular closing and reopening logs on SIGHUP.
+
+
+o   Karolin Seeger [EMAIL PROTECTED]
+* Documentation cleanup after r emerging docs from svn to git and 
+  back-porting from the v3-2 branch.
+
+
+o   Rafal Szczesniak [EMAIL PROTECTED]
+* Add implementation of machine-authenticated 

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

2008-05-21 Thread jerry
Author: jerry
Date: 2008-05-22 02:10:13 + (Thu, 22 May 2008)
New Revision: 1189

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

Log:
Announce 3.0.29 release
Modified:
   trunk/header_columns.html
   trunk/index.html


Changeset:
Modified: trunk/header_columns.html
===
--- trunk/header_columns.html   2008-05-22 02:05:13 UTC (rev 1188)
+++ trunk/header_columns.html   2008-05-22 02:10:13 UTC (rev 1189)
@@ -130,9 +130,9 @@
   div class=releases
 h4Current Stable Release/h4
 ul
-lia href=/samba/ftp/stable/samba-3.0.28a.tar.gzSamba 3.0.28a 
(gzipped)/a/li
-lia href=/samba/history/samba-3.0.28a.htmlRelease Notes/a/li
-lia href=/samba/ftp/stable/samba-3.0.28a.tar.ascSignature/a/li
+lia href=/samba/ftp/stable/samba-3.0.29.tar.gzSamba 3.0.29 
(gzipped)/a/li
+lia href=/samba/history/samba-3.0.29.htmlRelease Notes/a/li
+lia href=/samba/ftp/stable/samba-3.0.29.tar.ascSignature/a/li
 /ul
 
 h4Historical/h4

Modified: trunk/index.html
===
--- trunk/index.html2008-05-22 02:05:13 UTC (rev 1188)
+++ trunk/index.html2008-05-22 02:10:13 UTC (rev 1189)
@@ -19,6 +19,22 @@
 
 h2Current Release/h2
 
+h4a name=stable21 May 2008/a/h4
+p class=headlineSamba 3.0.29 Available for Download/p
+
+pThis is the latest bug fix release for Samba 3.0 and is the
+version recommended for all production Samba servers.  Among other 
+fixes and enhancements, this release address some interoperability
+problems with Windows 2008, interdomain trusts, and SMB/CIFS
+protocol correctness issues./p
+
+pThe uncompressed tarballs and patch files have been signed
+using GnuPG (ID 6568B7EA).  The source code can be 
+a href=/samba/ftp/stable/samba-3.0.29.tar.gzdownloaded
+now/a.  See a href=/samba/history/samba-3.0.29.htmlthe
+release notes for more info/a./p
+
+
 h4a name=latest25 April 2008/a/h4
 p class=headlineSamba 3.2.0pre3 Available for Download/p
 
@@ -61,20 +77,6 @@
 a href=/samba/history/samba-4.0.0alpha3.htmlrelease notes/a
 for more information./p
 
-h4a name=stable8 March 2008/a/h4
-p class=headlineSamba 3.0.28a Available for Download/p
-
-pThis is the latest bug fix release for Samba 3.0 and is the
-version recommended for all production Samba servers.  Among other 
-fixes and enhancements, this release address some interoperability
-problems with Windows Vista (including Service Pack 1 Release 
Candidates)./p
-
-pThe uncompressed tarballs and patch files have been signed
-using GnuPG (ID 6568B7EA).  The source code can be 
-a href=/samba/ftp/stable/samba-3.0.28a.tar.gzdownloaded
-now/a.  See a href=/samba/history/samba-3.0.28a.htmlthe
-release notes for more info/a./p
-
  div class=request
   phttp://samba.org/ is automatically redirected to one of our US 
   mirrors.  To change to a mirror closer to your location, choose a 



[SCM] CTDB repository - branch master updated - 3d85d2cf669686f89cacdc481eaa97aef1ba62c0

2008-05-21 Thread Ronnie Sahlberg
The branch, master has been updated
   via  3d85d2cf669686f89cacdc481eaa97aef1ba62c0 (commit)
   via  7fb6cf549de1b5e9ac5a3e4483c7591850ea2464 (commit)
  from  2908e092710d7fa2245161b3315747e17e4226c0 (commit)

http://gitweb.samba.org/?p=sahlberg/ctdb.git;a=shortlog;h=master


- Log -
commit 3d85d2cf669686f89cacdc481eaa97aef1ba62c0
Author: Ronnie Sahlberg [EMAIL PROTECTED]
Date:   Thu May 22 13:12:53 2008 +1000

cleanup of the previous patch.

With these patches, ctdbd will enforce and (by default) always use
tdb_transactions when updating/writing records to a persistent database.

This might come with a small performance degratation  since transactions
are slower than no transactions at all.

If a client, such as samba wants to use a persistent database but does NOT
want to pay the performance penalty, it can specify TDB_NOSYNC  as the
srvid parameter in the ctdb_control() for CTDB_CONTROL_DB_ATTACH_PERSISTENT.

In this case CTDBD will remember that this database is not that important
so I can use unsafe (no transaction) tdb_stores to write the updates.
It will be faster than the default (always use transaction) but less crash 
safe.

commit 7fb6cf549de1b5e9ac5a3e4483c7591850ea2464
Author: Ronnie Sahlberg [EMAIL PROTECTED]
Date:   Thu May 22 12:47:33 2008 +1000

second try for safe transaction stores into persistend tdb databases

for stores into persistent databases, ALWAYS use a lockwait child take out 
the lock for the record and never the daemon itself.

---

Summary of changes:
 common/ctdb_ltdb.c   |   64 -
 include/ctdb_private.h   |2 +
 lib/tdb/common/transaction.c |2 +-
 server/ctdb_persistent.c |   14 ++--
 4 files changed, 63 insertions(+), 19 deletions(-)


Changeset truncated at 500 lines:

diff --git a/common/ctdb_ltdb.c b/common/ctdb_ltdb.c
index a3df65e..886115a 100644
--- a/common/ctdb_ltdb.c
+++ b/common/ctdb_ltdb.c
@@ -121,9 +121,7 @@ int ctdb_ltdb_fetch(struct ctdb_db_context *ctdb_db,
 
 
 /*
-  fetch a record from the ltdb, separating out the header information
-  and returning the body of the record. A valid (initial) header is
-  returned if the record is not present
+  write a record to a normal database
 */
 int ctdb_ltdb_store(struct ctdb_db_context *ctdb_db, TDB_DATA key, 
struct ctdb_ltdb_header *header, TDB_DATA data)
@@ -150,25 +148,64 @@ int ctdb_ltdb_store(struct ctdb_db_context *ctdb_db, 
TDB_DATA key,
memcpy(rec.dptr, header, sizeof(*header));
memcpy(rec.dptr + sizeof(*header), data.dptr, data.dsize);
 
+   ret = tdb_store(ctdb_db-ltdb-tdb, key, rec, TDB_REPLACE);
+   if (ret != 0) {
+   DEBUG(DEBUG_ERR, (__location__  Failed to store dynamic 
data\n));
+   }
+
+   talloc_free(rec.dptr);
+
+   return ret;
+}
+
+/*
+  write a record to a persistent database
+  at this stage the the record is locked by a lockwait child.
+*/
+int ctdb_ltdb_persistent_store(struct ctdb_db_context *ctdb_db, TDB_DATA key, 
+   struct ctdb_ltdb_header *header, TDB_DATA data)
+{
+   struct ctdb_context *ctdb = ctdb_db-ctdb;
+   TDB_DATA rec;
+   int ret;
+
+   if (ctdb-flags  CTDB_FLAG_TORTURE) {
+   struct ctdb_ltdb_header *h2;
+   rec = tdb_fetch(ctdb_db-ltdb-tdb, key);
+   h2 = (struct ctdb_ltdb_header *)rec.dptr;
+   if (rec.dptr  rec.dsize = sizeof(h2)  h2-rsn  
header-rsn) {
+   DEBUG(DEBUG_CRIT,(RSN regression! %llu %llu\n,
+(unsigned long long)h2-rsn, (unsigned long 
long)header-rsn));
+   }
+   if (rec.dptr) free(rec.dptr);
+   }
+
+   rec.dsize = sizeof(*header) + data.dsize;
+   rec.dptr = talloc_size(ctdb, rec.dsize);
+   CTDB_NO_MEMORY(ctdb, rec.dptr);
+
+   memcpy(rec.dptr, header, sizeof(*header));
+   memcpy(rec.dptr + sizeof(*header), data.dptr, data.dsize);
+
/* if this is a persistent database without NOSYNC then we
   will do this via a transaction */
-   if (ctdb_db-persistent  !(ctdb_db-client_tdb_flags  TDB_NOSYNC)) {
-   bool transaction_started = true;
-
+   if (!(ctdb_db-client_tdb_flags  TDB_NOSYNC)) {
ret = tdb_transaction_start(ctdb_db-ltdb-tdb);
if (ret != 0) {
-   transaction_started = false;
-   DEBUG(DEBUG_NOTICE, (Failed to start local 
transaction\n));
+   DEBUG(DEBUG_ERR, (__location__  Failed to start local 
transaction\n));
+   goto failed;
}
ret = tdb_store(ctdb_db-ltdb-tdb, key, rec, TDB_REPLACE);
if (ret != 0) {
-   if 

[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha3-1695-g761e667

2008-05-21 Thread Andrew Bartlett
The branch, v4-0-test has been updated
   via  761e667e45475d3a7d5a41558b400ba4c94c4650 (commit)
   via  4ca8f32a37196c81547679b2ee8d00cb77a01269 (commit)
   via  ebf130e9e57b640129cf0d05dbd7d210b71ea371 (commit)
   via  617d4b666514f997510a942c6f8aba6a4ae5e40e (commit)
   via  c0234d13192c1871971b45121249395ef15c5ae5 (commit)
  from  96501be38da947f02ad57217e0bc23f7a66d36f9 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test


- Log -
commit 761e667e45475d3a7d5a41558b400ba4c94c4650
Author: Andrew Kroeger [EMAIL PROTECTED]
Date:   Wed May 21 21:14:06 2008 -0500

GPO: Do not provision Default Domain Policy as initially enforced. (bz 
#5480)

This only solves part of bz #5480.  The settings for Enforced  Link Enabled
now match the default settings of a Windows DC, but they are still locked
and cannot be changed via the GUI.

commit 4ca8f32a37196c81547679b2ee8d00cb77a01269
Author: Andrew Kroeger [EMAIL PROTECTED]
Date:   Wed May 21 18:54:15 2008 -0500

enableaccount: Use correct command name in usage output.

commit ebf130e9e57b640129cf0d05dbd7d210b71ea371
Author: Andrew Kroeger [EMAIL PROTECTED]
Date:   Wed May 21 18:12:36 2008 -0500

provision: Generate krb5.conf template separate from named.conf template.

commit 617d4b666514f997510a942c6f8aba6a4ae5e40e
Author: Andrew Kroeger [EMAIL PROTECTED]
Date:   Wed May 21 02:18:23 2008 -0500

gitignore: Ignore some output files from make test.

commit c0234d13192c1871971b45121249395ef15c5ae5
Author: Andrew Kroeger [EMAIL PROTECTED]
Date:   Wed May 21 02:07:45 2008 -0500

subunit.sh: Properly capture and pass on the command output.

Previously, the output from $cmdline was never captured.  In case of a
failure, there was no output being passed to the subunit_fail_test() 
function,
but that function contains a call to cat -.  This caused the script to 
hang
indefinitely waiting for input.

We now capture $cmdline output (including mapping stderr to stdout) using
backticks, and then pipe that output to the subunit_fail_test() if there is
a failure.

---

Summary of changes:
 .gitignore |4 ++
 source/scripting/python/samba/provision.py |   74 +++
 source/setup/enableaccount |2 +-
 source/setup/krb5.conf |   17 ++
 source/setup/named.conf|   14 -
 source/setup/provision_basedn_modify.ldif  |2 +-
 testprogs/blackbox/subunit.sh  |4 +-
 7 files changed, 77 insertions(+), 40 deletions(-)
 create mode 100644 source/setup/krb5.conf


Changeset truncated at 500 lines:

diff --git a/.gitignore b/.gitignore
index 75949c6..1e574f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -196,3 +196,7 @@ source/data.mk
 source/librpc/idl-deps
 source/libcli/netlogon_proto.h
 source/libcli/ndr_netlogon_proto.h
+source/foo.tdb
+source/gentest_seeds.dat
+source/templates.ldb
+source/torture.tdb
diff --git a/source/scripting/python/samba/provision.py 
b/source/scripting/python/samba/provision.py
index 4818a79..69c7e88 100644
--- a/source/scripting/python/samba/provision.py
+++ b/source/scripting/python/samba/provision.py
@@ -237,6 +237,7 @@ def provision_paths_from_lp(lp, dnsdomain):
 paths.templates = os.path.join(paths.private_dir, templates.ldb)
 paths.dns = os.path.join(paths.private_dir, dnsdomain + .zone)
 paths.namedconf = os.path.join(paths.private_dir, named.conf)
+paths.krb5conf = os.path.join(paths.private_dir, krb5.conf)
 paths.winsdb = os.path.join(paths.private_dir, wins.ldb)
 paths.s4_ldapi_path = os.path.join(paths.private_dir, ldapi)
 paths.phpldapadminconfig = os.path.join(paths.private_dir, 
@@ -1059,16 +1060,23 @@ def provision(setup_dir, message, session_info,

expression=((objectClass=computer)(cn=%s)) % names.hostname,
scope=SCOPE_SUBTREE)
 assert isinstance(hostguid, str)
-
-create_zone_file(paths.dns, paths.namedconf, setup_path, samdb, 
- hostname=names.hostname, hostip=hostip,
- hostip6=hostip6, dnsdomain=names.dnsdomain,
- domaindn=names.domaindn, dnspass=dnspass, 
realm=names.realm, 
- domainguid=domainguid, hostguid=hostguid,
- private_dir=paths.private_dir, 
keytab_name=paths.dns_keytab)
+
+create_zone_file(paths.dns, setup_path, dnsdomain=names.dnsdomain,
+ domaindn=names.domaindn, hostip=hostip,
+ hostip6=hostip6, hostname=names.hostname,
+ dnspass=dnspass, realm=names.realm,
+